Skip to content
OpenAdvisories
Unscored CVE-2011-1154 EUVD-2011-1167GHSA-57xq-cfp9-365f

The shred_file function in logrotate.c in logrotate 3.7.9 and earlier might allow context-dependent attackers to execute arbitrary commands…

Published Mar 30, 2011 · Updated Aug 6, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 logrotate 3.8.0-1 —
Debian 13 logrotate 3.8.0-1 —
Debian 12 logrotate 3.8.0-1 —
ReleasePackageFixed inAdvisory
RHEL 6 logrotate 3.7.8-12.el6_0.1 RHSA-2011:0407
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed logrotate 3.10.0-4.1 openSUSE-SU-2024:10231-1

Advisories 2

References