Skip to main content
Public proof of conceptFix available

CVE-2021-31806

A public proof of concept exists; no exploitation attested.

  • Published2021-05-27
  • WeaknessCWE-116

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-05-2713:15CVE publishedNVD

Versions per branch

NVD
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
33.x= 33no fix published
34.x= 34no fix published
Squid-cache squid
BranchAffectedFixed in
5.0≥ 5.0, < 5.0.65.0.6
4.15< 4.154.15

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libecapTuxCare:CentOS:8.4all versions · fixed in 1.0.1-2.module_el8.4.0+2010+24c223d9and 1 other package
  • libecapRocky Linux:8all versions · fixed in 0:1.0.1-2.module+el8.4.0+404+316a0dc5
  • libecapRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:1.0.1-2.module+el8.1.0+4044+36416a77and 3 other packages
  • libecapAlmaLinux:8all versions · fixed in 1.0.1-2.module_el8.6.0+2741+01592ae8and 1 other package
  • squidUbuntu:20.04:LTSall versions · fixed in 4.10-1ubuntu1.4
  • squidTuxCare:RHEL:7all versions · fixed in 7:3.5.20-17.0.3.el7_9.10.tuxcare.els1and 2 other packages
  • squidTuxCare:CentOS:8.4all versions · fixed in 7:4.11-4.module_el8.4.0+2010+24c223d9.2.tuxcare.els1
  • squidSUSE:Manager Server 4.0all versions · fixed in 4.15-5.26.1

49 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-31806 Red Hat Product Security30 products fixed · 8 known affected

    squid: improper input validation in HTTP Range header

    squid as a component of Red Hat Enterprise Linux 6 · squid.src as a component of Red Hat Enterprise Linux 6 · squid34 as a component of Red Hat Enterprise Linux 6 · +5 more

  • RHSA-2021:4292 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: squid:4 security, bug fix, and enhancement update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2021:4292 · 30 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the squid service will be restarted automatically.
  2. Workaround from the vendor Red Hat Product Security RHSA-2021:4292 · 30 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  3. No fix planned, says the vendor Red Hat Product Security CVE-2021-31806 · 8 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
1 moduleauxiliary/dos/http/squid_range_dosrank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published
2021-05-27
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-3v8m-hgx9-fgh9

Frequently asked questions

What is CVE-2021-31806?

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.

Is CVE-2021-31806 actively exploited?

Active exploitation of CVE-2021-31806 has not been confirmed. Its EPSS score was 95.3% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-31806?

CVE-2021-31806 has a CVSS v3 base score of 6.5 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

Running squid? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record