---
title: "CVE-2011-1154\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2011-1154?format=md
keywords: index, follow
---

# CVE-2011-1154

Publication date 30 March 2011

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2011-1154?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| logrotate | 11.04 natty | Fixed 3.7.8-6ubuntu3.1 |
| 10.10 maverick | Fixed 3.7.8-6ubuntu1.1 |
| 10.04 LTS lucid | Fixed 3.7.8-4ubuntu2.2 |
| 9.10 karmic | Ignored end of life |
| 8.04 LTS hardy | Not affected |
| 6.06 LTS dapper | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2011-1154?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

issue #6
shred option was introduced in logrotate 3.7.5

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| logrotate | * Upstream:   <https://fedorahosted.org/logrotate/changeset/311> * Upstream:   <https://fedorahosted.org/logrotate/changeset/313> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1154)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2011-1154)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2011-1154)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2011-1154)

### Related Ubuntu Security Notices (USN)

+ [USN-1172-1](https://usn.ubuntu.com/USN-1172-1)
+ logrotate vulnerabilities
+ 21 July 2011

### Other references

* <http://openwall.com/lists/oss-security/2011/03/04/16>
* <https://www.cve.org/CVERecord?id=CVE-2011-1154>
