CVE Vulnerabilities

CVE-2021-46784

Reachable Assertion

Published: Jul 17, 2022 | Modified: Oct 22, 2023
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

In Squid 3.x through 3.5.28, 4.x through 4.17, and 5.x before 5.6, due to improper buffer management, a Denial of Service can occur when processing long Gopher server responses.

Weakness

The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.

Affected Software

Name Vendor Start Version End Version
Squid Squid-cache 3.0 (including) 3.5.28 (including)
Squid Squid-cache 4.0 (including) 4.17 (including)
Squid Squid-cache 5.0 (including) 5.6 (excluding)
Red Hat Enterprise Linux 7 RedHat squid-7:3.5.20-17.el7_9.7 *
Red Hat Enterprise Linux 8 RedHat squid:4-8060020220628135610.ad008a3a *
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions RedHat squid:4-8010020220628152104.c27ad7f8 *
Red Hat Enterprise Linux 8.2 Extended Update Support RedHat squid:4-8020020220628150849.4cda2c84 *
Red Hat Enterprise Linux 8.4 Extended Update Support RedHat squid:4-8040020220628150130.522a0ee4 *
Red Hat Enterprise Linux 9 RedHat squid-7:5.2-1.el9_0.1 *
Squid Ubuntu devel *
Squid Ubuntu focal *
Squid Ubuntu impish *
Squid Ubuntu jammy *
Squid Ubuntu kinetic *
Squid Ubuntu lunar *
Squid Ubuntu mantic *
Squid Ubuntu noble *
Squid Ubuntu oracular *
Squid Ubuntu trusty *
Squid Ubuntu upstream *
Squid3 Ubuntu bionic *
Squid3 Ubuntu esm-infra/xenial *
Squid3 Ubuntu trusty *
Squid3 Ubuntu xenial *

Extended Description

While assertion is good for catching logic errors and reducing the chances of reaching more serious vulnerability conditions, it can still lead to a denial of service. For example, if a server handles multiple simultaneous connections, and an assert() occurs in one single connection that causes all other connections to be dropped, this is a reachable assertion that leads to a denial of service.

Potential Mitigations

References