{"id":"CVE-2011-1154","aliases":["DEBIAN-CVE-2011-1154","EUVD-2011-1167","GHSA-57xq-cfp9-365f","RHSA-2011:0407","openSUSE-SU-2024:10231-1"],"status":"published","title":"The shred_file function in logrotate.c in logrotate 3.7.9 and earlier might allow context...","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.","severity":{"version":"2.0","score":6.9,"vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00412,"percentile":0.35739,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2011-03-30T22:00:00Z","modified":"2026-10-23T17:47:29Z","fixes":[{"ecosystem":"Debian:12","package":"logrotate","fixed_in":["3.8.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"logrotate","fixed_in":["3.8.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"logrotate","fixed_in":["3.8.0-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.0-1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.7.8-12.el6_0.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"logrotate-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.7.8-12.el6_0.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.7.8-12.el6_0.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"logrotate-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.7.8-12.el6_0.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.7.8-12.el6_0.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"logrotate-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.7.8-12.el6_0.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.7.8-12.el6_0.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"logrotate-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.7.8-12.el6_0.1"}]}],"bundled":3},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"logrotate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.0-4.1"}]}],"bundled":3}],"products":[{"vendor":"gentoo","product":"logrotate"}],"references":[{"url":"http://openwall.com/lists/oss-security/2011/03/04/19","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/16","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/25","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/30","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/26","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/10/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/28","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/08/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://secunia.com/advisories/43955","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://openwall.com/lists/oss-security/2011/03/07/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/31","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.vupen.com/english/advisories/2011/0961","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","advisory"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/17","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=680796","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","report"]},{"url":"http://openwall.com/lists/oss-security/2011/03/10/6","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/06/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/29","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/07/6","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/05/6","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-April/057845.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/05/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.vupen.com/english/advisories/2011/0791","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2011:065","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://openwall.com/lists/oss-security/2011/03/07/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix"]},{"url":"http://openwall.com/lists/oss-security/2011/03/23/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/06/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/18","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-March/056992.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","fix"]},{"url":"http://openwall.com/lists/oss-security/2011/03/10/2","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.redhat.com/support/errata/RHSA-2011-0407.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/11/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/10/7","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/05/8","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/22","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/11/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/27","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.vupen.com/english/advisories/2011/0872","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","advisory"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/32","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/14/26","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/24","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/06/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/06/6","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/03/04/33","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-1154","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-57xq-cfp9-365f"},{"url":"https://security-tracker.debian.org/tracker/CVE-2011-1154","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2011:0407","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=680797","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=680798","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2011/rhsa-2011_0407.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2011-1098","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2011-1098","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-1098","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2011-1154","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2011-1154","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2011-1155","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2011-1155","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-1155","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2011-1098","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2011-1154","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2011-1155","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2011-1154","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.","status":"published","published":"2011-03-30T22:00:00Z","modified":"2024-08-06T22:14:27.899Z","updated_at":"2026-11-02T14:35:38.321377Z"}],"euvd":[{"id":"EUVD-2011-1167","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.","status":"published","published":"2011-03-30T22:00:00Z","modified":"2024-08-06T22:14:27Z","updated_at":"2026-11-03T01:55:57.729923Z"}],"ghsa":[{"id":"GHSA-57xq-cfp9-365f","title":"The shred_file function in logrotate.c in logrotate 3.7.9 and earlier might allow context...","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.","status":"published","published":"2022-05-17T05:41:39Z","modified":"2023-01-28T05:04:15Z","cwes":["CWE-20"],"updated_at":"2026-11-02T14:44:08.177015Z"}],"nvd":[{"id":"CVE-2011-1154","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.","status":"published","published":"2011-03-30T22:55:02.36Z","modified":"2026-06-16T23:28:49.83Z","cvss":[{"version":"2.0","score":6.9,"vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:02:07.221228Z"}],"osv":[{"id":"CVE-2011-1154","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.","status":"published","published":"2011-03-30T22:55:02Z","modified":"2026-04-10T03:41:40.997626Z","updated_at":"2026-11-02T15:43:57.991581Z"},{"id":"DEBIAN-CVE-2011-1154","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.","status":"published","published":"2011-03-30T22:55:02.36Z","modified":"2026-10-23T17:47:29.619852913Z","updated_at":"2026-11-02T15:45:24.612044Z"},{"id":"openSUSE-SU-2024:10231-1","title":"logrotate-3.10.0-4.1 on GA media","description":"These are all security issues fixed in the logrotate-3.10.0-4.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:58:34.216984Z","updated_at":"2026-11-02T16:58:33.135986Z"},{"id":"RHSA-2011:0407","title":"Red Hat Security Advisory: logrotate security update","status":"published","published":"2024-09-15T19:03:49Z","modified":"2026-06-26T10:15:48Z","updated_at":"2026-11-02T15:53:01.003286Z"}]}}
