squid-cache Squid heap use-after-free in ICP handling enables remote denial of service

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-33526?

CVE-2026-33526 is a vulnerability classified as Use After Free and Premature Release of Resource During Expected Lifetime, affecting squid (affected versions: < 7.5). This vulnerability is rated Critical, with a CVSS score of 9.2. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Squid is a caching proxy for the Web. Prior to version 7.5, due to heap Use-After-Free, Squid is vulnerable to Denial of Service when handling ICP traffic. This problem allows a remote attacker to perform a reliable and repeatable Denial of Service attack against the Squid service using ICP protocol. This attack is limited to Squid deployments that explicitly enable ICP support (i.e. configure non-zero icp_port). This problem cannot be mitigated by denying ICP queries using icp_access rules. Version 7.5 contains a patch.

Affected products and scope

  • Squid 3.x through and including 3.5.28 is affected when the deployment enables ICP.
  • Squid 4.x through and including 4.17 is affected when the deployment enables ICP.
  • Squid 5.x through and including 5.9 is affected when the deployment enables ICP.
  • Squid 6.x through and including 6.14 is affected when the deployment enables ICP.
  • Squid 7.x through and including 7.4 is affected when the deployment enables ICP.
  • The CNA record expresses the upstream affected scope as < 7.5, while the Squid advisory confirms that Squid 7.5 is fixed.
  • The advisory identifies Squid configurations with port 0 as not vulnerable. For Squid 3.2 through 7.4, it also says that configurations with no port value may be assumed not vulnerable.
  • Red Hat's VEX confirms that applicability depends on ICP being explicitly enabled with a non-zero icp_port and lists fixed product builds through separate errata. The inspected evidence does not establish one universal package-version boundary for all Red Hat branches.

Technical details

The affected component is Squid's ICP request and error handling path. The flaw is a heap Use-After-Free, mapped in the record to CWE-416 and CWE-826. An attacker can send ICP traffic to a reachable Squid service; the supplied structured assessment records no authentication and no user interaction, while the advisory describes the attack as reliable and repeatable. The public fix changes src/icp_v2.cc to avoid escaping a malformed URI twice when sending ICP errors, indicating that malformed-URI error processing is involved in the corrected code path. The advisory does not disclose the freed object, the exact allocation and lifetime sequence, or the precise request shape, so those implementation details remain unknown. Exposure is limited to deployments that explicitly enable ICP, and denying queries with icp_access rules does not remove the vulnerability.

Exploitability

Exploitation is remotely reachable over the network through Squid's ICP service. The required precondition is that the deployment enables ICP with a non-zero icp_port and that the endpoint is reachable from the attacker's position. The supplied structured assessment records no authentication, no user interaction, and low attack complexity. The advisory describes a reliable and repeatable denial of service attack. The supplied record marks public_exploit as false and does not set a known-exploited status; neither the record nor the inspected authoritative advisory documents a public exploit or observed exploitation. This does not prove that no undisclosed exploit exists.

Technical impact

The confirmed technical outcome is denial of service against Squid when the vulnerable ICP handling path is triggered. This can interrupt proxy availability and the clients that depend on it. The structured record reports no confidentiality or integrity impact and does not establish privilege escalation, code execution, or data disclosure. The primary consequence is therefore loss of availability, conditional on ICP being enabled and reachable.

Business impact

A successful attack can make Squid unavailable, disrupting Web access routed through the proxy and services that depend on it. The exposure is concentrated in organizations that enable ICP and allow access to the ICP listener from untrusted networks. An incident may require failover, restart, or service recovery work, although the advisory does not define specific recovery behavior or duration. Deployments with ICP disabled do not meet the stated attack precondition. The record does not establish a breach, data disclosure, or data modification.

Remediation

  1. Upgrade Squid to upstream 7.5, or install a vendor package that contains the corresponding fix. Do not assume that every parallel branch or backported package is fixed unless its vendor advisory confirms that status.
  2. If an update cannot be applied immediately, disable ICP by not enabling ICP support or by configuring icp_port 0. This workaround is stated in the Squid advisory.
  3. For packaged installations, obtain the update from the package vendor and verify it against the applicable product erratum or advisory before deployment.
  4. Do not rely on denying queries with icp_access as a mitigation, because the advisory explicitly states that this does not prevent the attack.
  5. After updating or changing configuration, recheck the effective configuration and the network reachability of the ICP listener.

Detection

  1. Inventory Squid instances and their package or source versions, then compare them with the affected and fixed branches in affected_summary, including verification of any vendor backport.
  2. Check the effective ICP configuration with the command supplied by the advisory: squid -k parse 2>&1 | grep -E "(icp|udp)_port" | tail -n1.
  3. Identify affected-branch instances with a non-zero port, then verify network ACLs and firewall rules to determine whether the ICP listener is reachable from untrusted networks.
  4. Review the icp_access configuration, but do not treat query-deny rules as sufficient protection because the advisory states that they do not mitigate this flaw.
  5. Review crash, restart, and service-availability telemetry correlated with ICP traffic as a precaution. No specific IOC or log signature is provided, and the absence of such evidence does not prove that a system is safe.
Sources (34)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.