Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Web Server/CGI)  >   Squid Vendors:
(Red Hat Issues Fix) Squid Buffer Overflow in 'cachemgr.cgi' Tool Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1035987
SecurityTracker URL:
CVE Reference:   CVE-2016-4051, CVE-2016-5408   (Links to External Site)
Updated:  Aug 11 2016
Original Entry Date:  May 31 2016
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 2.x, 3.x prior to 3.5.17, 4.x prior to 4.0.9
Description:   A vulnerability was reported in Squid. A remote user can cause arbitrary code to be executed on the target system.

A remote user can send specially crafted data that will be presented in the Squid manager reports. When the target administrator processes the reports via the 'cachemgr.cgi' tool, a buffer overflow occurs and arbitrary code is executed on the target system.

CESG and Yuriy M. Kaminskiy independently reported this vulnerability.

Impact:   A remote user can create data that, when processed by the target administrative user, will execute arbitrary code on the target system.
Solution:   Red Hat has issued a fix.

[Editor's note: The original fix in RHSA-2016:1138 was incomplete and has been assigned CVE-2016-5408. A new fix was released in RHSA-2016:1573-1.]

The Red Hat advisories are available at:

Vendor URL: (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Red Hat Enterprise)
Underlying OS Comments:  6

Message History:   This archive entry is a follow-up to the message listed below.
Apr 21 2016 Squid Buffer Overflow in 'cachemgr.cgi' Tool Lets Remote Users Execute Arbitrary Code

 Source Message Contents

Subject:  [RHSA-2016:1138-01] Moderate: squid security update

Hash: SHA1

                   Red Hat Security Advisory

Synopsis:          Moderate: squid security update
Advisory ID:       RHSA-2016:1138-01
Product:           Red Hat Enterprise Linux
Advisory URL:
Issue date:        2016-05-31
CVE Names:         CVE-2016-4051 CVE-2016-4052 CVE-2016-4053 
                   CVE-2016-4054 CVE-2016-4554 CVE-2016-4556 

1. Summary:

An update for squid is now available for Red Hat Enterprise Linux 6.

Red Hat Product Security has rated this update as having a security impact
of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which
gives a detailed severity rating, is available for each vulnerability from
the CVE link(s) in the References section.

2. Relevant releases/architectures:

Red Hat Enterprise Linux Server (v. 6) - i386, ppc64, s390x, x86_64
Red Hat Enterprise Linux Workstation (v. 6) - i386, x86_64

3. Description:

Squid is a high-performance proxy caching server for web clients,
supporting FTP, Gopher, and HTTP data objects.

Security Fix(es):

* A buffer overflow flaw was found in the way the Squid cachemgr.cgi
utility processed remotely relayed Squid input. When the CGI interface
utility is used, a remote attacker could possibly use this flaw to execute
arbitrary code. (CVE-2016-4051)

* Buffer overflow and input validation flaws were found in the way Squid
processed ESI responses. If Squid was used as a reverse proxy, or for
TLS/HTTPS interception, a remote attacker able to control ESI components on
an HTTP server could use these flaws to crash Squid, disclose parts of the
stack memory, or possibly execute arbitrary code as the user running Squid.
(CVE-2016-4052, CVE-2016-4053, CVE-2016-4054)

* An input validation flaw was found in Squid's mime_get_header_field()
function, which is used to search for headers within HTTP requests. An
attacker could send an HTTP request from the client side with specially
crafted header Host header that bypasses same-origin security protections,
causing Squid operating as interception or reverse-proxy to contact the
wrong origin server. It could also be used for cache poisoning for client
not following RFC 7230. (CVE-2016-4554)

* An incorrect reference counting flaw was found in the way Squid processes
ESI responses. If Squid is configured as reverse-proxy, for TLS/HTTPS
interception, an attacker controlling a server accessed by Squid, could
crash the squid worker, causing a Denial of Service attack. (CVE-2016-4556)

4. Solution:

For details on how to apply this update, which includes the changes
described in this advisory, refer to:

After installing this update, the squid service will be restarted

5. Bugs fixed (

1329126 - CVE-2016-4051 squid: buffer overflow in cachemgr.cgi
1329136 - CVE-2016-4052 CVE-2016-4053 CVE-2016-4054 squid: multiple issues in ESI processing
1334241 - CVE-2016-4554 squid: Header Smuggling issue in HTTP Request processing
1334786 - CVE-2016-4556 squid: SIGSEGV in ESIContext response handling

6. Package List:

Red Hat Enterprise Linux Server (v. 6):






Red Hat Enterprise Linux Workstation (v. 6):




These packages are GPG signed by Red Hat for security.  Our key and
details on how to verify the signature are available from

7. References:

8. Contact:

The Red Hat security contact is <>. More contact
details at

Copyright 2016 Red Hat, Inc.
Version: GnuPG v1


RHSA-announce mailing list

Go to the Top of This SecurityTracker Archive Page

Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, LLC