{"schemaVersion":3,"id":"CVE-2019-12520","aliases":["UBUNTU-CVE-2019-12520","DEBIAN-CVE-2019-12520"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2020-04-15T19:14:25.000Z","modified":"2024-08-04T23:24:38.487Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.03924,"percentile":0.9023,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03924},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03924,"percentile":0.9023}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03924,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03924,"percentile":0.9023}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"18.04","noFixRecorded":false,"fixedIn":null}],"versionsText":"16.04 | 18.04","eol":{"isEol":true,"eolDate":"2021-04-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"16.04","label":"16.04 'Xenial Xerus' (LTS)","eolFrom":"2021-04-02T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"16.04.7"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"squid","name":"squid","label":"squid","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/squid","purlType":"deb","versions":[{"text":"< 4.8-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.8-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"squid3","name":"squid3","label":"squid3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/squid3","purlType":"deb","versions":[{"text":"< 3.5.27-1ubuntu1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.5.27-1ubuntu1.7","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null},{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0 | 10.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"squid-cache","product":"squid","name":"squid","label":"squid","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 4.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.7","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"squid","label":"Squid","category":"server-app"}},"hubHref":"/vendor/squid-cache/squid"}],"affectedCount":5,"eol":{"hasEol":true,"count":2},"references":[{"url":"http://www.squid-cache.org/Versions/v4/","label":"www.squid-cache.org/Versions/v4/","hostname":"www.squid-cache.org","tags":["X Refsource MISC","Release Notes","Vendor Advisory","REPORT"]},{"url":"http://www.squid-cache.org/Versions/v4/changesets/","label":"www.squid-cache.org/Versions/v4/changesets/","hostname":"www.squid-cache.org","tags":["X Refsource MISC","Release Notes","Vendor Advisory","REPORT"]},{"url":"https://github.com/squid-cache/squid/commits/v4","label":"github.com/squid-cache/squid/commits/v4","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT"]},{"url":"https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12520.txt","label":"gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12520.txt","hostname":"gitlab.com","tags":["X Refsource MISC","Third Party Advisory","REPORT"]},{"url":"https://www.debian.org/security/2020/dsa-4682","label":"www.debian.org/security/2020/dsa-4682","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html","label":"lists.debian.org/debian-lts-announce/2020/07/msg00009.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/4446-1/","label":"usn.ubuntu.com/4446-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210205-0006/","label":"security.netapp.com/advisory/ntap-20210205-0006/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-12520","label":"ubuntu.com/security/CVE-2019-12520","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"http://www.squid-cache.org/Advisories/SQUID-2019_4.txt","label":"www.squid-cache.org/Advisories/SQUID-2019_4.txt","hostname":"www.squid-cache.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4446-1","label":"ubuntu.com/security/notices/USN-4446-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-12520","label":"www.cve.org/CVERecord?id=CVE-2019-12520","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-12520","label":"security-tracker.debian.org/tracker/CVE-2019-12520","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2278-1","DSA-4682-1","RHSA-2020:4743","SUSE-SU-2020:1227-1","SUSE-SU-2020:14460-1","USN-4446-1"],"duplicates":[],"related":["SUSE-SU-2020:1227-1","SUSE-SU-2020:14460-1","USN-4446-1"]},"timeline":[{"kind":"published","date":"2020-04-15T19:14:25.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T23:24:38.487Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:58:21.273Z","stale":false,"partial":false}}