← Vulnerability feed

Vulnerability record · CVE-2016-4054 · published 25 April 2016

CVE-2016-4054: Squid proxy buffer overflow via crafted ESI responses

Canonical · Ubuntu Linux

Squid 3.x before 3.5.17 and 4.x before 4.0.9 contain a buffer overflow (CWE-119) triggered by crafted Edge Side Includes (ESI) responses. A remote attacker can corrupt memory in the proxy process, which matters because Squid is typically an internet-facing caching proxy. The record does not state whether ESI processing must be enabled for the flaw to be reachable.

8.1 CVSS 3.0 High EPSS 78% · top 0.5% CWE-119 · Memory buffer overflow
8.1CVSS 3.0 base score, v2 6.8
78%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
30References
17 Jun 2026Last modified by NVD

Description

Buffer overflow in Squid 3.x before 3.5.17 and 4.x before 4.0.9 allows remote attackers to execute arbitrary code via crafted Edge Side Includes (ESI) responses.

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: medium.

high priorityRemote, unauthenticated code execution in an internet-facing proxy with a very high EPSS score, though the High attack complexity and absence of KEV listing temper it below critical.

What it is

Squid 3.x before 3.5.17 and 4.x before 4.0.9 contain a buffer overflow (CWE-119) triggered by crafted Edge Side Includes (ESI) responses. A remote attacker can corrupt memory in the proxy process, which matters because Squid is typically an internet-facing caching proxy. The record does not state whether ESI processing must be enabled for the flaw to be reachable.

Impact

Successful exploitation can lead to arbitrary code execution in the context of the Squid process, giving the attacker control of the proxy. The CVSS 3.0 vector rates confidentiality, integrity and availability impact all High.

Attack surface

Reachable over the network (AV:N) with no privileges and no user interaction (PR:N, UI:N), via a crafted ESI response delivered to the proxy. The High attack complexity (AC:H) indicates conditions beyond the attacker's control must align for the overflow to succeed.

Exploitation

Not listed in CISA KEV and no ransomware associations are documented, but EPSS is very high at 0.776 (99.5th percentile), indicating substantial predicted exploitation activity. Reference tags are advisory and release-note only; no public exploit or PoC is cited in the record.

What to do

  • Upgrade Squid to 3.5.17 or later in the 3.x line, or 4.0.9 or later in the 4.x line, per the vendor advisory SQUID-2016_6.
  • Apply distribution backports (Ubuntu USN-2995-1, Debian DSA-3625, Red Hat RHSA-2016:1138/1139/1140, Gentoo GLSA 201607-01, openSUSE advisories) where a full upgrade is not possible.
  • Disable ESI processing if it is not required, since the flaw is reached through ESI responses.
  • Restrict who can supply responses to the proxy and limit proxy exposure to untrusted networks where feasible.

Detection

  • Monitor Squid process crashes or restarts and correlate them with ESI-containing responses in proxy logs.
  • Search proxy and upstream logs for ESI markup in responses from untrusted or unexpected origins.
  • Alert on anomalous child process exits or core dumps from the Squid service.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00010.html
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00040.html
http://lists.opensuse.org/opensuse-updates/2016-08/msg00069.html
http://www.debian.org/security/2016/dsa-3625
http://www.openwall.com/lists/oss-security/2016/04/20/6 Release NotesThird Party Advisory
http://www.openwall.com/lists/oss-security/2016/04/20/9 Release NotesThird Party Advisory
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html Third Party Advisory
http://www.securityfocus.com/bid/86788
http://www.securitytracker.com/id/1035647 Third Party AdvisoryVDB Entry
http://www.squid-cache.org/Advisories/SQUID-2016_6.txt Vendor Advisory
http://www.ubuntu.com/usn/USN-2995-1 Third Party Advisory
https://access.redhat.com/errata/RHSA-2016:1138
https://access.redhat.com/errata/RHSA-2016:1139
https://access.redhat.com/errata/RHSA-2016:1140
https://security.gentoo.org/glsa/201607-01
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00010.html
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00040.html
http://lists.opensuse.org/opensuse-updates/2016-08/msg00069.html
http://www.debian.org/security/2016/dsa-3625
http://www.openwall.com/lists/oss-security/2016/04/20/6 Release NotesThird Party Advisory
http://www.openwall.com/lists/oss-security/2016/04/20/9 Release NotesThird Party Advisory
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html Third Party Advisory
http://www.securityfocus.com/bid/86788
http://www.securitytracker.com/id/1035647 Third Party AdvisoryVDB Entry
http://www.squid-cache.org/Advisories/SQUID-2016_6.txt Vendor Advisory
http://www.ubuntu.com/usn/USN-2995-1 Third Party Advisory
https://access.redhat.com/errata/RHSA-2016:1138
https://access.redhat.com/errata/RHSA-2016:1139
https://access.redhat.com/errata/RHSA-2016:1140
https://security.gentoo.org/glsa/201607-01

Track CVE-2016-4054 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2020-11651SaltStack Salt master authentication bypass in ClearFuncsSaltStack Salt before 2019.2.4 and 3000 before 3000.2 fails to properly validate method calls in the salt-master ClearFuncs class, allowing remote un…KEVEPSS 97%analysed9.8CVE-2020-7247OpenSMTPD MAIL FROM command injection allows remote root code executionOpenSMTPD 6.6, as shipped in OpenBSD 6.6 and other products, mishandles input validation in smtp_mailaddr in smtp_session.c, returning an incorrect v…KEVEPSS 99%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2019-16928Exim heap buffer overflow in string_vformat via long EHLO commandExim 4.92 through 4.92.2 contains a heap-based buffer overflow in string_vformat in string.c triggered by a long EHLO command, allowing remote code e…KEVEPSS 42%analysed9.8CVE-2019-10149Exim MTA improper recipient validation leads to remote command executionExim versions 4.87 through 4.91 fail to properly validate recipient addresses in the deliver_message() function in /src/deliver.c, allowing command i…KEVEPSS 100%analysed9.8CVE-2018-6789Exim SMTP base64d buffer overflow allows remote code executionExim before 4.90.1 contains a buffer overflow in the base64d function of its SMTP listener. A handcrafted message can trigger the overflow, and the f…KEVEPSS 82%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed9.8CVE-2016-3427Oracle Java SE JMX Improper Access Control VulnerabilityCVE-2016-3427 is an unspecified vulnerability in Oracle Java SE 6u113, 7u99, 8u77, Java SE Embedded 8u77, and JRockit R28.3.9, reached through vector…KEVEPSS 92%analysed

Source: NIST National Vulnerability Database (record CVE-2016-4054), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.