CVE-2019-12525 Memory corruption in n/a

Critical 9.8 Published Updated

A buffer overflow in Squid's Digest authentication parser allows attackers to execute arbitrary code or cause a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-12525?

CVE-2019-12525 is a critical memory corruption vulnerability in Canonical Ubuntu Linux, published on 11 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Squid 3.3.9 through 3.5.28 and 4.x through 4.7. When Squid is configured to use Digest authentication, it parses the header Proxy-Authorization. It searches for certain tokens such as domain, uri, and qop. Squid checks if this token's value starts with a quote and ends with one. If so, it performs a memcpy of its length minus 2. Squid never checks whether the value is just a single quote (which would satisfy its requirements), leading to a memcpy of its length minus 1.

Weakness: CWE-787

Which versions are affected by CVE-2019-12525?

It affects 5 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Opensuse Leap, Squid-Cache Squid.

How do I fix CVE-2019-12525?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-12525 being exploited?

There is no known exploitation of CVE-2019-12525 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-12525, DEBIAN-CVE-2019-12525, GHSA-wxh3-97xf-wv5x, UBUNTU-CVE-2019-12525.

Is CVE-2019-12525 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free