Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-31807 EUVD-2021-18685GHSA-34v2-m9jr-2wg3

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 …

Published Jun 8, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 squid 4.13-10 —
Debian 13 squid 4.13-10 —
Debian 12 squid 4.13-10 —
Debian 10 squid 4.6-1+deb10u6 DSA-4924-1
Debian 9 squid3 3.5.23-5+deb9u7 DLA-2685-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS squid 4.10-1ubuntu1.4 USN-4981-1
Ubuntu 18.04 LTS squid3 3.5.27-1ubuntu1.11 USN-4981-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS squid3 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 libecap +1 1.0.1-2.module+el8.1.0+4044+36416a77 RHSA-2021:4292
RHEL 8 squid 7:4.15-1.module+el8.5.0+11469+24c223d9 RHSA-2021:4292

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 libecap +1 1.0.1-2.module_el8.6.0+2741+01592ae8 ALSA-2021:4292
AlmaLinux 8 squid 7:4.15-3.module_el8.6.0+3010+383bc947.1 ALSA-2021:4292

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libecap 1.0.1-2.module+el8.4.0+404+316a0dc5 RLSA-2021:4292
Rocky Linux 8 squid 7:4.15-1.module+el8.5.0+705+218dec94 RLSA-2021:4292
ReleasePackageFixed inAdvisory
Alpine v3.24 squid 5.0.6-r0 —
Alpine v3.23 squid 5.0.6-r0 —
Alpine v3.22 squid 5.0.6-r0 —
Alpine v3.21 squid 5.0.6-r0 —
Alpine v3.20 squid 5.0.6-r0 —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 squid 5.0.6-r0 —
Alpine v3.18 squid 5.0.6-r0 —
Alpine v3.17 squid 5.0.6-r0 —
Alpine v3.16 squid 5.0.6-r0 —
Alpine v3.15 squid 5.0.6-r0 —
Alpine v3.14 squid 5.0.6-r0 —
Alpine v3.13 squid 5.0.6-r0 —
Alpine v3.12 squid 4.15-r0 —
Alpine v3.11 squid 4.15-r0 —
Alpine v3.10 squid 4.15-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 squid +2 7:3.5.20-17.amzn2.7.2 ALAS2-2023-1950

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libecap +1 1.0.1-2.module+el8.3.0+7819+eb7d4ef6 ELSA-2021-4292
Oracle Linux 8 squid 7:4.15-1.module+el8.5.0+20327+24c223d9 ELSA-2021-4292
Oracle Linux 7 squid +2 7:3.5.20-17.0.1.el7_9.6 ELSA-2021-9465

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 10

References