CVE-2019-12521

MEDIUMCVSS 5.9/10EPSS 5.76%

Last modified

CVE-2019-12521 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. An issue was discovered in Squid through 4.7. When Squid is parsing ESI, it keeps the ESI elements in ESIContext. EPSS estimates a 5.76% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
5.9/10

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Probability
5.76%

92.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
Squid-CacheSquid>= 3.0, <= 3.5.28
Squid-CacheSquid>= 4.0, <= 4.7
Squid-CacheSquid>= 5.0, <= 5.0.1
CanonicalUbuntu Linux16.04
CanonicalUbuntu Linux18.04
CanonicalUbuntu Linux19.10
CanonicalUbuntu Linux20.04
DebianDebian Linux9.0
DebianDebian Linux10.0
OpensuseLeap15.1

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2019-12521?
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.
How severe is CVE-2019-12521?
CVE-2019-12521 has a CVSS score of 5.9/10 (MEDIUM severity). The EPSS model estimates a 5.76% probability of exploitation in the next 30 days.
How do I fix CVE-2019-12521?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2019-12521?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST