Squid 2.x / 3.x < 3.5.17 / 4.x < 4.0.9 cachemgr.cgi RCE

Medium Nessus Plugin ID 91194


The remote proxy server is affected by a remote code execution vulnerability.


According to its banner, the version of Squid running on the remote host is 2.x or 3.x prior to 3.5.17, or 4.x prior to 4.0.9. It is, therefore, affected by a buffer overflow condition in the cachemgr.cgi tool due to improper validation of user-supplied input when processing the length of content lines in reports by the cachemgr.cgi tool. An unauthenticated, remote attacker can exploit this issue, via specially crafted data in manager reports, to cause a denial of service condition or the execution of arbitrary code.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number. Furthermore, the patch released to address this issue does not update the version given in the banner. If the patch has been applied properly, and the service has been restarted, then consider this to be a false positive.


Upgrade to Squid version 3.5.17 / 4.0.9 or later. Alternatively, apply the vendor-supplied patch.

See Also



Plugin Details

Severity: Medium

ID: 91194

File Name: squid_4_0_9_cachemgr_cgi.nasl

Version: 1.5

Type: remote

Family: Firewalls

Published: 2016/05/17

Updated: 2019/11/19

Dependencies: 49692

Configuration: Enable paranoid mode

Risk Information

Risk Factor: Medium

CVSS Score Source: CVE-2016-4051

CVSS v2.0

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

CVSS v3.0

Base Score: 8.8

Temporal Score: 7.7

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:squid-cache:squid

Required KB Items: www/squid, Settings/ParanoidReport

Exploit Available: false

Exploit Ease: No known exploits are available

Patch Publication Date: 2016/04/20

Vulnerability Publication Date: 2016/04/20

Reference Information

CVE: CVE-2016-4051