CVE-2011-1154: Input Validation

Published Feb 27, 2011
·
Updated

A shell command injection flaw was found in the way the logrotate utility handled shred configuration directive (intended to ensure the log files are not readable after their scheduled deletion). A local attacker could use this flaw to execute arbitrary system commands (if the logrotate was run under privileged system user account, root) when the logrotate utility was run on a log file, within attacker controllable directory.

Other sources

The shredfile 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.

MITRE

Affected Software

14 affected components
Gentoo logrotate=3.6.5
Gentoo logrotate=3.7.8
Gentoo logrotate=3.5.9-r1
Gentoo logrotate=3.7.6
Gentoo logrotate=3.3-r2
Gentoo logrotate=3.7.2
Gentoo logrotate=3.7
Gentoo logrotate=3.7.1-r2
Gentoo logrotate=3.6.5-r1
Gentoo logrotate=3.5.9
Gentoo logrotate=3.7.1-r1
Gentoo logrotate<=3.7.9
Gentoo logrotate=3.7.1
Gentoo logrotate=3.7.7

Event History

Feb 27, 2011
Data Sourced
07:36 PM
DescriptionSeverityAffected Software
Mar 30, 2011
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2011-1154?

CVE-2011-1154 is considered to have a high severity due to the potential for arbitrary command execution by a local attacker.

2

How do I fix CVE-2011-1154?

To fix CVE-2011-1154, update the logrotate software to a version that has patched the vulnerability.

3

Which versions of logrotate are affected by CVE-2011-1154?

CVE-2011-1154 affects logrotate versions 3.3 to 3.7.9, particularly from Gentoo.

4

Can CVE-2011-1154 be exploited remotely?

No, CVE-2011-1154 requires local access to exploit the command injection vulnerability.

5

What is a shell command injection vulnerability in the context of CVE-2011-1154?

A shell command injection vulnerability allows an attacker to execute arbitrary commands on the system by manipulating the input to vulnerable software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203