Every CVE Search/ Get API key

CVE-2021-31807

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem...

6.5 MediumFix available

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

15.6%Up 14.8 points since Jun 9, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Record
CVE-2021-31807
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
4.0 MediumAV:N/AC:L/Au:S/C:N/I:N/A:P
Weakness
CWE-190
Updated
2026-11-02
CVE List No score

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Record
CVE-2021-31807
Updated
2026-11-02
EUVDEUVD-2021-18685 No score

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Record
EUVD-2021-18685
Updated
2026-11-03
GitHub AdvisoriesGHSA-34v2-m9jr-2wg3 6.5

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem...

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Record
GHSA-34v2-m9jr-2wg3
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-190
Updated
2026-11-02
OSVALPINE-CVE-2021-31807 6.5

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Record
ALPINE-CVE-2021-31807
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCVE-2021-31806 6.5

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.

Record
CVE-2021-31806
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 11 moreShow less
OSV 6.5

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Record
CVE-2021-31807
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCVE-2021-31808 6.5

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. Due to an input-validation bug, it is vulnerable to a Denial of Service attack (against all clients using the proxy). A client sends an HTTP Range request to trigger this.

Record
CVE-2021-31808
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-31807 6.5

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Record
DEBIAN-CVE-2021-31807
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2021:4292 7.4

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

Record
RHSA-2021:4292
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Updated
2026-11-02
OSVRLSA-2021:4292 7.4

Moderate: squid:4 security, bug fix, and enhancement update

Squid is a high-performance proxy caching server for web clients, supporting FTP, Gopher, and HTTP data objects.

The following packages have been upgraded to a later upstream version: squid (4.15). (BZ#1964384)

Security Fix(es):

  • squid: denial of service in URN processing (CVE-2021-28651)

  • squid: denial of service issue in Cache Manager (CVE-2021-28652)

  • squid: denial of service in HTTP response processing (CVE-2021-28662)

  • squid: improper input validation in HTTP Range header (CVE-2021-31806)

  • squid: incorrect memory management in HTTP Range header (CVE-2021-31807)

  • squid: integer overflow in HTTP Range header (CVE-2021-31808)

  • squid: denial of service in HTTP response processing (CVE-2021-33620)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.

Record
RLSA-2021:4292
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-31807 6.5

An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. An integer overflow problem allows a remote server to achieve Denial of Service when delivering responses to HTTP Range requests. The issue trigger is a header that can be expected to exist in HTTP traffic without any malicious intent.

Record
UBUNTU-CVE-2021-31807
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVALSA-2021:4292 No score

Moderate: squid:4 security, bug fix, and enhancement update

Squid is a high-performance proxy caching server for web clients, supporting FTP, Gopher, and HTTP data objects.

The following packages have been upgraded to a later upstream version: squid (4.15). (BZ#1964384)

Security Fix(es):

  • squid: denial of service in URN processing (CVE-2021-28651)

  • squid: denial of service issue in Cache Manager (CVE-2021-28652)

  • squid: denial of service in HTTP response processing (CVE-2021-28662)

  • squid: improper input validation in HTTP Range header (CVE-2021-31806)

  • squid: incorrect memory management in HTTP Range header (CVE-2021-31807)

  • squid: integer overflow in HTTP Range header (CVE-2021-31808)

  • squid: denial of service in HTTP response processing (CVE-2021-33620)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Record
ALSA-2021:4292
Updated
2026-11-02
OSVCLSA-2022-1646060698 No score

Fix of CVE: CVE-2021-31807, CVE-2021-28662, CVE-2021-33620, CVE-2021-28652, CVE-2021-28651, CVE-2021-31808, CVE-2021-31806

  • CVE-2021-28651: Fix memory leak that perform DoS via buffer-management bug
  • CVE-2021-28652: Fix cache manager URL parsing that perform DoS via incorrect parser validation
  • CVE-2021-28662: Add limit HeaderLookupTable_t::lookup() to BadHdr and specific IDs that perform DoS via certain response header
  • CVE-2021-31806: Add handling more partial responses that perform DoS via HTTP Range request
  • CVE-2021-31807: Add handling more partial responses that perform DoS via HTTP Range request
  • CVE-2021-31808: Add handling more partial responses that perform DoS via HTTP Range request
  • CVE-2021-33620: Add handling more partial responses that perform DoS via HTTP response
Record
CLSA-2022-1646060698
Updated
2026-11-02
OSVCLSA-2025-1747855403 No score

squid: Fix of 6 CVEs

  • CVE-2021-28651: fix memory leak in RFC 2169 response parsing
  • CVE-2021-28652: fix broken cache manager URL parsing
  • CVE-2021-31806: fix memory management bug
  • CVE-2021-31807: fix integer overflow problem
  • CVE-2021-31808: fix input validation bug
  • CVE-2021-33620: handle more partial responses
Record
CLSA-2025-1747855403
Updated
2026-11-02
OSVMGASA-2021-0237 No score

Updated squid packages fix security vulnerabilities

Updated squid packages fix security vulnerabilities:

Due to improper input validation Squid is vulnerable to an HTTP Request Smuggling attack. This problem allows a trusted client to perform HTTP Request Smuggling and access services otherwise forbidden by Squid security controls (CVE-2020-25097).

Joshua Rogers discovered that Squid incorrectly handled requests with the urn: scheme. A remote attacker could possibly use this issue to causeSquid to consume resources, leading to a denial of service (CVE-2021-28651).

Joshua Rogers discovered that Squid incorrectly handled requests to the Cache Manager API. A remote attacker with access privileges could possibly use this issue to cause Squid to consume resources, leading to a denial of service (CVE-2021-28652).

Joshua Rogers discovered that Squid incorrectly handled certain response headers. A remote attacker could possibly use this issue to cause Squid to crash, resulting in a denial of service (CVE-2021-28662).

Joshua Rogers discovered that Squid incorrectly handled range request processing. A remote attacker could possibly use this issue to cause Squid to crash, resulting in a denial of service (CVE-2021-31806, CVE-2021-31807, CVE-2021-31808).

Joshua Rogers discovered that Squid incorrectly handled certain HTTP responses. A remote attacker could possibly use this issue to cause Squid to crash, resulting in a denial of service (CVE-2021-33620).

The squid package has been updated to version 4.15, fixing theese issues and other bugs.

Record
MGASA-2021-0237
Updated
2026-11-02
OSVUSN-4981-1 No score

squid, squid3 vulnerabilities

Joshua Rogers discovered that Squid incorrectly handled requests with the urn: scheme. A remote attacker could possibly use this issue to cause Squid to consume resources, leading to a denial of service. (CVE-2021-28651)

Joshua Rogers discovered that Squid incorrectly handled requests to the Cache Manager API. A remote attacker with access privileges could possibly use this issue to cause Squid to consume resources, leading to a denial of service. This issue was only addressed in Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-28652)

Joshua Rogers discovered that Squid incorrectly handled certain response headers. A remote attacker could possibly use this issue to cause Squid to crash, resulting in a denial of service. This issue was only affected Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-28662)

Joshua Rogers discovered that Squid incorrectly handled range request processing. A remote attacker could possibly use this issue to cause Squid to crash, resulting in a denial of service. (CVE-2021-31806, CVE-2021-31807, CVE-2021-31808)

Joshua Rogers discovered that Squid incorrectly handled certain HTTP responses. A remote attacker could possibly use this issue to cause Squid to crash, resulting in a denial of service. (CVE-2021-33620)

Record
USN-4981-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
squid
Alpine:v3.10
3.0 up to 4.15-r0
4.15-r0
squid
Alpine:v3.11
3.0 up to 4.15-r0
4.15-r0
squid
Alpine:v3.12
3.0 up to 4.15-r0
4.15-r0
squid
Alpine:v3.13
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.14
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.15
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.16
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.17
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.18
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.19
3.0 up to 5.0.6-r0
5.0.6-r0
Show 35 moreShow less
Affected packages
PackageAffectedFixed
squid
Alpine:v3.20
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.21
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.22
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.23
3.0 up to 5.0.6-r0
5.0.6-r0
squid
Alpine:v3.24
3.0 up to 5.0.6-r0
5.0.6-r0
libecap
AlmaLinux:8
From an advisory covering 7 CVEs
before 1.0.1-2.module_el8.6.0+2741+01592ae8
1.0.1-2.module_el8.6.0+2741+01592ae8
libecap-devel
AlmaLinux:8
From an advisory covering 7 CVEs
before 1.0.1-2.module_el8.6.0+2741+01592ae8
1.0.1-2.module_el8.6.0+2741+01592ae8
squid
AlmaLinux:8
From an advisory covering 7 CVEs
before 7:4.15-3.module_el8.6.0+3010+383bc947.1
7:4.15-3.module_el8.6.0+3010+383bc947.1
libecap
TuxCare:CentOS:8.4
From an advisory covering 7 CVEs
before 1.0.1-2.module_el8.4.0+2010+24c223d9
1.0.1-2.module_el8.4.0+2010+24c223d9
libecap-devel
TuxCare:CentOS:8.4
From an advisory covering 7 CVEs
before 1.0.1-2.module_el8.4.0+2010+24c223d9
1.0.1-2.module_el8.4.0+2010+24c223d9
squid
TuxCare:CentOS:8.4
From an advisory covering 7 CVEs
before 7:4.11-4.module_el8.4.0+2010+24c223d9.2.tuxcare.els1
7:4.11-4.module_el8.4.0+2010+24c223d9.2.tuxcare.els1
squid
TuxCare:RHEL:7
From an advisory covering 6 CVEs
before 7:3.5.20-17.0.3.el7_9.10.tuxcare.els1
7:3.5.20-17.0.3.el7_9.10.tuxcare.els1
squid-migration-script
TuxCare:RHEL:7
From an advisory covering 6 CVEs
before 7:3.5.20-17.0.3.el7_9.10.tuxcare.els1
7:3.5.20-17.0.3.el7_9.10.tuxcare.els1
squid-sysvinit
TuxCare:RHEL:7
From an advisory covering 6 CVEs
before 7:3.5.20-17.0.3.el7_9.10.tuxcare.els1
7:3.5.20-17.0.3.el7_9.10.tuxcare.els1
squid
Debian:12
before 4.13-10
4.13-10
squid
Debian:13
before 4.13-10
4.13-10
squid
Debian:14
before 4.13-10
4.13-10
squid3
Debian:9
From an advisory covering 6 CVEs
before 3.5.23-5+deb9u7, plus listed versions
3.5.23-53.5.23-5+deb9u13.5.23-5+deb9u23.5.23-5+deb9u33.5.23-5+deb9u43.5.23-5+deb9u53.5.23-5+deb9u6
3.5.23-5+deb9u7
squid
Debian:10
From an advisory covering 7 CVEs
before 4.6-1+deb10u6, plus listed versions
4.6-14.6-1+deb10u14.6-1+deb10u24.6-1+deb10u34.6-1+deb10u44.6-1+deb10u5
4.6-1+deb10u6
squid
Mageia:7
From an advisory covering 8 CVEs
before 4.15-1.mga7
4.15-1.mga7
squid
Mageia:8
From an advisory covering 8 CVEs
before 4.15-1.mga8
4.15-1.mga8
libecap
Red Hat:enterprise_linux:8::appstream
From an advisory covering 7 CVEs
before 0:1.0.1-2.module+el8.1.0+4044+36416a77
0:1.0.1-2.module+el8.1.0+4044+36416a77
libecap-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 7 CVEs
before 0:1.0.1-2.module+el8.1.0+4044+36416a77
0:1.0.1-2.module+el8.1.0+4044+36416a77
libecap-debugsource
Red Hat:enterprise_linux:8::appstream
From an advisory covering 7 CVEs
before 0:1.0.1-2.module+el8.1.0+4044+36416a77
0:1.0.1-2.module+el8.1.0+4044+36416a77
libecap-devel
Red Hat:enterprise_linux:8::appstream
From an advisory covering 7 CVEs
before 0:1.0.1-2.module+el8.1.0+4044+36416a77
0:1.0.1-2.module+el8.1.0+4044+36416a77
squid
Red Hat:enterprise_linux:8::appstream
From an advisory covering 7 CVEs
before 7:4.15-1.module+el8.5.0+11469+24c223d9
7:4.15-1.module+el8.5.0+11469+24c223d9
squid-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 7 CVEs
before 7:4.15-1.module+el8.5.0+11469+24c223d9
7:4.15-1.module+el8.5.0+11469+24c223d9
squid-debugsource
Red Hat:enterprise_linux:8::appstream
From an advisory covering 7 CVEs
before 7:4.15-1.module+el8.5.0+11469+24c223d9
7:4.15-1.module+el8.5.0+11469+24c223d9
libecap
Rocky Linux:8
From an advisory covering 7 CVEs
before 0:1.0.1-2.module+el8.4.0+404+316a0dc5
0:1.0.1-2.module+el8.4.0+404+316a0dc5
squid
Rocky Linux:8
From an advisory covering 7 CVEs
before 7:4.15-1.module+el8.5.0+705+218dec94
7:4.15-1.module+el8.5.0+705+218dec94
squid3
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
3.3.8-1ubuntu163.3.8-1ubuntu173.5.12-1ubuntu63.5.12-1ubuntu73.5.12-1ubuntu7.1
Show 22 moreShow less
3.5.12-1ubuntu7.23.5.12-1ubuntu7.33.5.12-1ubuntu7.43.5.12-1ubuntu7.53.5.12-1ubuntu7.63.5.12-1ubuntu7.73.5.12-1ubuntu7.83.5.12-1ubuntu7.93.5.12-1ubuntu7.103.5.12-1ubuntu7.113.5.12-1ubuntu7.123.5.12-1ubuntu7.133.5.12-1ubuntu7.143.5.12-1ubuntu7.153.5.12-1ubuntu7.163.5.12-1ubuntu7.16+esm13.5.12-1ubuntu7.16+esm23.5.12-1ubuntu7.16+esm33.5.12-1ubuntu7.16+esm43.5.12-1ubuntu7.16+esm53.5.12-1ubuntu7.16+esm63.5.12-1ubuntu7.16+esm7
None known
squid3
Ubuntu:18.04:LTS
before 3.5.27-1ubuntu1.11, plus listed versions
3.5.23-5ubuntu13.5.23-5ubuntu23.5.27-1ubuntu13.5.27-1ubuntu1.13.5.27-1ubuntu1.2
Show 8 moreShow less
3.5.27-1ubuntu1.33.5.27-1ubuntu1.43.5.27-1ubuntu1.53.5.27-1ubuntu1.63.5.27-1ubuntu1.73.5.27-1ubuntu1.83.5.27-1ubuntu1.93.5.27-1ubuntu1.10
3.5.27-1ubuntu1.11
squid
Ubuntu:20.04:LTS
before 4.10-1ubuntu1.4, plus listed versions
4.8-1ubuntu24.8-1ubuntu34.9-2ubuntu14.9-2ubuntu24.9-2ubuntu3
Show 5 moreShow less
4.9-2ubuntu44.10-1ubuntu14.10-1ubuntu1.14.10-1ubuntu1.24.10-1ubuntu1.3
4.10-1ubuntu1.4
squid3
Ubuntu:18.04:LTS
From an advisory covering 7 CVEs
before 3.5.27-1ubuntu1.11, plus listed versions
3.5.23-5ubuntu13.5.23-5ubuntu23.5.27-1ubuntu13.5.27-1ubuntu1.13.5.27-1ubuntu1.2
Show 8 moreShow less
3.5.27-1ubuntu1.33.5.27-1ubuntu1.43.5.27-1ubuntu1.53.5.27-1ubuntu1.63.5.27-1ubuntu1.73.5.27-1ubuntu1.83.5.27-1ubuntu1.93.5.27-1ubuntu1.10
3.5.27-1ubuntu1.11
squid
Ubuntu:20.04:LTS
From an advisory covering 7 CVEs
before 4.10-1ubuntu1.4, plus listed versions
4.8-1ubuntu24.8-1ubuntu34.9-2ubuntu14.9-2ubuntu24.9-2ubuntu3
Show 5 moreShow less
4.9-2ubuntu44.10-1ubuntu14.10-1ubuntu1.14.10-1ubuntu1.24.10-1ubuntu1.3
4.10-1ubuntu1.4

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
MetasploitSquid Proxy Range Header DoS2021-05-27

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, Metasploit, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-31807 is a medium vulnerability (CVSS 6.5) in Squid-cache Squid, published May 27, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 15.6%, the 96th percentile. Fixed in squid 4.15-r0.

References

Show 69 moreShow less
MoveEnter Open