cve.bz

CVE-2011-1154 gentoo logrotate: Improper Input Validation

no score yetEPSS 0.4%Fix available

gentoo logrotate: no CVSS score yet. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2011-1154 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2011-1154?via=ask-ai-copy and https://cve.bz/cve/CVE-2011-1154?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2011-1154 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gentoo:logrotatethrough 3.7.9
gentoo:logrotate3.3:r2
gentoo:logrotate3.5.9
gentoo:logrotate3.5.9:r1
gentoo:logrotate3.6.5
gentoo:logrotate3.6.5:r1
gentoo:logrotate3.7
gentoo:logrotate3.7.1
gentoo:logrotate3.7.1:r1
gentoo:logrotate3.7.1:r2
gentoo:logrotate3.7.2
gentoo:logrotate3.7.6
gentoo:logrotate3.7.7
gentoo:logrotate3.7.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14logrotate3.8.0-1DEBIAN-CVE-2011-1154
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 morelogrotate, logrotate-debuginfo0:3.7.8-12.el6_0.1RHSA-2011:0407
openSUSETumbleweedlogrotate3.10.0-4.1openSUSE-SU-2024:10231-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Not vulnerable. This issue did not affect the versions of logrotate as

shipped with Red Hat Enterprise Linux 4 and 5, as they did not support

'shred' logrotate configuration directive yet.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6logrotate-0:3.7.8-12.el6_0.1Fixed 2011-03-31RHSA-2011:0407
Red Hat Enterprise Linux 4logrotateNot affected
Red Hat Enterprise Linux 5logrotateNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2011-1154.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON