logrotate: Shell command injection by using the shred configuration directive
Published Mar 30, 2011
6.9
MEDIUMCVSS 2.0
EPSS 0.41%
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.
Affected products
No data.
- ≤ 3.7.9
- 3.3
- 3.5.9
- 3.5.9
- 3.6.5
- 3.6.5
- 3.7
- 3.7.1
- 3.7.1
- 3.7.1
- 3.7.2
- 3.7.6
- 3.7.7
- 3.7.8
No data.
Red Hat Enterprise Linux 6
logrotate-0:3.7.8-12.el6_0.1
Fixed · RHSA-2011:0407
Red Hat Enterprise Linux 4
logrotate
Not affected
Red Hat Enterprise Linux 5
logrotate
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | logrotate-0:3.7.8-12.el6_0.1 | Fixed | RHSA-2011:0407 |
| Red Hat Enterprise Linux 4 | logrotate | Not affected | n/a |
| Red Hat Enterprise Linux 5 | logrotate | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:L/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.41% (0.00412) | 33.08th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.41% (0.00412) | 32.63th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.07% (0.00065) | 17.38th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.07% (0.00068) | 31.91th | v3 (v2023.03.01) |
| Jun 12, 2024 | 0.07% (0.00068) | 29.72th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.07% (0.00068) | 27.71th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.55% (0.01547) | 74.98th | v2 (v2022.01.01) |
| Feb 13, 2023 | 1.55% (0.01547) | 74.46th | v2 (v2022.01.01) |
| Feb 3, 2023 | 1.75% (0.01754) | 75.64th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.55% (0.01547) | 72.92th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.55% (0.01547) | 51.82th | v2 (v2022.01.01) |
References (46)
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/057845.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/056992.html vendor-advisoryx_refsource_FEDORAPatch
- http://openwall.com/lists/oss-security/2011/03/04/16 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/17 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/18 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/19 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/22 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/24 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/25 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/26 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/27 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/28 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/29 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/30 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/31 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/32 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/04/33 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/05/4 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/05/6 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/05/8 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/06/3 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/06/4 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/06/5 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/06/6 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/07/11 mailing-listx_refsource_MLISTPatch
- http://openwall.com/lists/oss-security/2011/03/07/5 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/07/6 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/08/5 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/10/2 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/10/3 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/10/6 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/10/7 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/11/3 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/11/5 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/14/26 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2011/03/23/11 mailing-listx_refsource_MLIST
- http://secunia.com/advisories/43955 third-party-advisoryx_refsource_SECUNIA
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:065 vendor-advisoryx_refsource_MANDRIVA
- http://www.redhat.com/support/errata/RHSA-2011-0407.html vendor-advisoryx_refsource_REDHAT
- http://www.vupen.com/english/advisories/2011/0791 vdb-entryx_refsource_VUPENVendor Advisory
- http://www.vupen.com/english/advisories/2011/0872 vdb-entryx_refsource_VUPEN
- http://www.vupen.com/english/advisories/2011/0961 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2011-1154 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=680796 x_refsource_CONFIRMPatchIssue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2011-1154
- https://www.cve.org/CVERecord?id=CVE-2011-1154
Change history (0)
No recorded changes yet.