CVE-2019-12520

HIGH
7.5
CVSS Score
Published: April 15, 2020 at 07:14 PM UTC
Updated: June 17, 2026 at 02:14 AM UTC
3 products affected across 3 vendorsDebian LinuxUbuntu LinuxCache Squid

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 4%

Description

An issue was discovered in Squid through 4.7 and 5. When receiving a request, Squid checks its cache to see if it can serve up a response. It does this by making a MD5 hash of the absolute URL of the request. If found, it servers the request. The absolute URL can include the decoded UserInfo (username and password) for certain protocols. This decoded info is prepended to the domain. This allows an attacker to provide a username that has special characters to delimit the domain, and treat the rest of the URL as a path or query string. An attacker could first make a request to their domain using an encoded username, then when a request for the target domain comes in that decodes to the exact URL, it will serve the attacker's HTML instead of the real HTML. On Squid servers that also act as reverse proxies, this allows an attacker to gain access to features that only reverse proxies can use, such as ESI.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

References (8)

x_refsource_MISCRelease NotesVendor Advisory
http://www.squid-cache.org/Versions/v4/
x_refsource_MISCx_refsource_CONFIRMRelease NotesVendor Advisory
http://www.squid-cache.org/Versions/v4/changesets/
x_refsource_MISCx_refsource_CONFIRMPatchThird Party Advisory
https://github.com/squid-cache/squid/commits/v4
Mailing Listx_refsource_MLISTThird Party Advisory
https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html
Vendor Advisoryx_refsource_UBUNTUThird Party Advisory
https://usn.ubuntu.com/4446-1/
Vendor Advisoryx_refsource_DEBIANThird Party Advisory
https://www.debian.org/security/2020/dsa-4682

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-20

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card