Input validation error in logrotate - CVE-2011-1154

 

Input validation error in logrotate - CVE-2011-1154

Published: March 31, 2011 / Updated: August 11, 2020


Vulnerability identifier: #VU45152
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2011-1154
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: logrotate
Affected software:
logrotate

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The shred_file function in logrotate.c in logrotate 3.7.9 and earlier might allow context-dependent attackers to execute arbitrary commands via shell metacharacters in a log filename, as demonstrated by a filename that is automatically constructed on the basis of a hostname or virtual machine name.


How to mitigate CVE-2011-1154

Install update from vendor's website.

Sources