BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2019-12521 in Canonical Ubuntu Linux and 3 more products

Medium 5.9 Fix available

An issue was discovered in Squid through 4.7. When Squid is parsing ESI, it keeps the ESI elements in ESIContext. ESIContext contains a buffer for holding a stack of ESIElements. When a new ESIElement is parsed, it is added via addStackElement. addStackElement has a check for the number of elements in this buffer, b...

Affects 4 products from 4 vendors. Facts below cite their sources.

CVSS 3.15.9
EPSS5.9%
EPSS percentile94th
FixAvailable

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Canonical Ubuntu Linux 16.04 18.04 19.10 20.04
Debian Debian Linux 9.0 10.0
Opensuse Leap 15.1
Squid-Cache Squid ≥ 3.0, ≤ 3.5.28 ≥ 4.0, ≤ 4.7 ≥ 5.0, ≤ 5.0.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

An issue was discovered in Squid through 4.7. When Squid is parsing ESI, it keeps the ESI elements in ESIContext. ESIContext contains a buffer for holding a stack of ESIElements. When a new ESIElement is parsed, it is added via addStackElement. addStackElement has a check for the number of elements in this buffer, but it's off by 1, leading to a Heap Overflow of 1 element. The overflow is within the same structure so it can't affect adjacent memory blocks, and thus just leads to a crash while processing.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2019-12521
BreachSpider IDBS-2020-GLOBAL-134396-M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2020-04-15
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-193: CWE-193

CWE-787: Out-of-Bounds Write

Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2020. A medium severity vulnerability affects Canonical systems (CVE-2019-12521). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: An issue was discovered in Squid through 4.7. When Squid is parsing ESI, it keeps the ESI elements in ESIContext. ESIContext contains a buffer for holding a stack of ESIElements. When a new ESIElement is parsed, it is added via addStackElement. addStackElement has a check for the number of elements in this buffer, but it's off by 1, leading to a Heap Overflow of 1 element. The overflow is within the same structure so it can't affect adjacent memory blocks, and thus just leads to a crash while pr CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.

Questions

What is CVE-2019-12521?

This vulnerability was disclosed in 2020. A medium severity vulnerability affects Canonical systems (CVE-2019-12521). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2019-12521?

CVE-2019-12521 has CVSS 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 5.9%.

Is CVE-2019-12521 actively exploited?

No confirmed active exploitation of CVE-2019-12521 as of 2026-05-30.

How do I remediate CVE-2019-12521?

Priority: MONITOR.

What systems are affected by CVE-2019-12521?

CVE-2019-12521 affects Canonical Ubuntu Linux; Debian Debian Linux; Opensuse Leap; Squid-Cache Squid.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.