Skip to content
Fencer Vulns
medium 6.5

CVE-2021-31808 json

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

published 2021-05-27 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-18686

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
5.3%
EPSS 5.3% chance of exploitation in 30 days, percentile 92%
public exploits
0
none known

Summary

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.

Patch / fix

  • squid-cache squid 4.15, 5.0.6
  • squid Debian 14, Debian 13, Debian 12 4.13-10

debian advisories DEBIAN-CVE-2021-31808

  • squid Ubuntu 20.04 LTS 4.10-1ubuntu1.4
  • squid3 Ubuntu 18.04 LTS 3.5.27-1ubuntu1.11

ubuntu advisories UBUNTU-CVE-2021-31808

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • squid RHEL 8 7:4.15-1.module+el8.5.0+11469+24c223d9
  • libecap RHEL 8 1.0.1-2.module+el8.1.0+4044+36416a77

red hat advisories RHSA-2021:4292

  • squid AlmaLinux 8 7:4.15-3.module_el8.6.0+3010+383bc947.1
  • libecap AlmaLinux 8 1.0.1-2.module_el8.6.0+2741+01592ae8

almalinux advisories ALSA-2021:4292

  • squid Rocky Linux 8 7:4.15-1.module+el8.5.0+705+218dec94
  • libecap Rocky Linux 8 1.0.1-2.module+el8.4.0+404+316a0dc5

rocky linux advisories RLSA-2021:4292

  • squid Alpine 3.12, Alpine 3.11, Alpine 3.10 4.15-r0
  • squid Alpine 3.24, Alpine 3.23, Alpine 3.22 +9 more 5.0.6-r0

alpine advisories ALPINE-CVE-2021-31808

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • squid Arch Linux 4.15-1

arch linux advisories AVG-1975

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-31808 updated cvss 6.5

squid: integer overflow in HTTP Range header

  • Red Hat Enterprise Linux 6 squid, squid34 Red Hat Enterprise Linux 7 squid, squid-sysvinit, squid-migration-script
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux AppStream (v. 8) squid 4.15-1.module+el8.5.0+11469+24c223d9, libecap 1.0.1-2.module+el8.1.0+4044+36416a77
    fixed: vendor fix RHSA-2021:4292
  • Red Hat Enterprise Linux 9 squid
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

5.34% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • squid-cache.org http://www.squid-cache.org/Versions/v4/changesets/squid-4-e7cf864f938f24eea8af0692c04d16790983c823.patch referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 4.0 AV:N/AC:L/Au:S/C:N/I:N/A:P

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.