{"schemaVersion":3,"id":"CVE-2021-31806","aliases":["ALPINE-CVE-2021-31806","UBUNTU-CVE-2021-31806","DEBIAN-CVE-2021-31806"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. Due to a memory-management bug, it is vulnerable to a Denial of Service attack (against all clients using the proxy) via HTTP Range request processing.","dates":{"published":"2021-05-27T00:00:00.000Z","modified":"2024-08-03T23:10:30.236Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.95333,"percentile":0.99868,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":-0.45199999999999685,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.95785},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.95333,"percentile":0.99868}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.95785,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.95333,"percentile":0.99868}]},"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":[{"id":"MSF_AUXILIARY_DOS_HTTP_SQUID_RANGE_DOS","name":"Squid Proxy Range Header DoS","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/dos/http/squid_range_dos.rb","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"auxiliary/dos/http/squid_range_dos","rank":"300","rankName":"normal","postAuth":false,"check":false,"stability":["crash-service-down"],"sideEffects":["ioc-in-logs"],"reliability":[]}}],"exploitCount":1,"weaknesses":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output","description":"The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/116.html"}],"affected":[{"vendor":"alpine","product":"squid","name":"squid","label":"squid","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/squid","purlType":"apk","versions":[{"text":"≥ 5.0, < 4.15-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0, < 5.0.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0, < 4.15-r0 | ≥ 5.0, < 5.0.6-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"squid","name":"squid","label":"squid","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/squid","purlType":"deb","versions":[{"text":"< 4.13-10","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.13-10","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"squid","name":"squid","label":"squid","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/squid","purlType":"deb","versions":[{"text":"< 4.10-1ubuntu1.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.10-1ubuntu1.4","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":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.5.27-1ubuntu1.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.5.27-1ubuntu1.11","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":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"33 | 34","eol":{"isEol":true,"eolDate":"2021-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"33","label":"33","eolFrom":"2021-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"netapp","product":"cloud_manager","name":"cloud manager","label":"cloud_manager","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/cloud_manager"},{"vendor":"squid-cache","product":"squid","name":"squid","label":"squid","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0, < 5.0.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.15 | ≥ 5.0, < 5.0.6","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"squid","label":"Squid","category":"server-app"}},"hubHref":"/vendor/squid-cache/squid"}],"affectedCount":8,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://github.com/squid-cache/squid/security/advisories/GHSA-pxwq-f3qr-w2xf","label":"github.com/squid-cache/squid/security/advisories/GHSA-pxwq-f3qr-w2xf","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"http://www.squid-cache.org/Versions/v4/changesets/squid-4-e7cf864f938f24eea8af0692c04d16790983c823.patch","label":"www.squid-cache.org/Versions/v4/changesets/squid-4-e7cf864f938f24eea8af0692c04d16790983c823.patch","hostname":"www.squid-cache.org","tags":["Patch","Vendor Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4924","label":"www.debian.org/security/2021/dsa-4924","hostname":"www.debian.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSQ3U54ZCNXR44QRPW3AV2VCS6K3TKCF/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T4EPIWUZDJAXADDHVOPKRBTQHPBR6H66/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/06/msg00014.html","label":"lists.debian.org/debian-lts-announce/2021/06/msg00014.html","hostname":"lists.debian.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210716-0007/","label":"security.netapp.com/advisory/ntap-20210716-0007/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2023/10/11/3","label":"www.openwall.com/lists/oss-security/2023/10/11/3","hostname":"www.openwall.com","tags":["Mailing List","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2023/Oct/14","label":"seclists.org/fulldisclosure/2023/Oct/14","hostname":"seclists.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-31806","label":"security.alpinelinux.org/vuln/CVE-2021-31806","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-31806","label":"ubuntu.com/security/CVE-2021-31806","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4981-1","label":"ubuntu.com/security/notices/USN-4981-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31806","label":"www.cve.org/CVERecord?id=CVE-2021-31806","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31806","label":"security-tracker.debian.org/tracker/CVE-2021-31806","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2685-1","DSA-4924-1","MGASA-2021-0237","OPENSUSE-SU-2021:0879-1","OPENSUSE-SU-2021:1961-1","OPENSUSE-SU-2024:11403-1","RHSA-2021:4292","SUSE-SU-2021:1838-1","SUSE-SU-2021:1961-1","USN-4981-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:0879-1","OPENSUSE-SU-2021:1961-1","OPENSUSE-SU-2024:11403-1","SUSE-SU-2021:1838-1","SUSE-SU-2021:1961-1","USN-4981-1"]},"timeline":[{"kind":"published","date":"2021-05-27T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:10:30.236Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":55,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T07:22:37.887Z","stale":false,"partial":false}}