CVE-2011-1154 Command injection in n/a

Medium 6.9 Published Updated

Attackers can execute arbitrary commands via shell metacharacters in log filenames processed by logrotate, potentially compromising the system.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2011-1154?

CVE-2011-1154 is a medium-severity command injection vulnerability in n/a, published on 30 Mar 2011. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2011-1154?

It affects 1 product.

Products include Gentoo Logrotate.

How do I fix CVE-2011-1154?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2011-1154 being exploited?

There is no known exploitation of CVE-2011-1154 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2011-1154, GHSA-57xq-cfp9-365f.

Is CVE-2011-1154 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free