CVE-2011-1018
logwatch.pl in Logwatch 7.3.6 allows remote attackers to execute arbitrary commands via shell metacharacters in a log file name, as…
Check your servers for CVE-2011-1018
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2011-1018 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
logwatch.pl in Logwatch 7.3.6 allows remote attackers to execute arbitrary commands via shell metacharacters in a log file name, as demonstrated via a crafted username to a Samba server.
Exploitation
EPSS 18.3%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.8% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2011-1018 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2011-1018RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2011-1018Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2011-1018
trivy image --scanners vuln IMAGE | grep CVE-2011-1018
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- http://sourceforge.net/tracker/?func=detail&aid=3184223&group_id=312875&atid=1316824 sourceforge.net
- 43495 secunia.com · third party advisory
- FEDORA-2011-2318 lists.fedoraproject.org · vendor advisory
- DSA-2182 debian.org · vendor advisory
- FEDORA-2011-2396 lists.fedoraproject.org · vendor advisory
- 43356 secunia.com · third party advisory
- SUSE-SR:2011:005 lists.opensuse.org · vendor advisory
- 43644 secunia.com · third party advisory
- RHSA-2011:0324 redhat.com · vendor advisory
- 43622 secunia.com · third party advisory
- http://logwatch.svn.sourceforge.net/viewvc/logwatch/scripts/logwatch.pl?r1=3&r2=26&pathrev=26 logwatch.svn.sourceforge.net
- USN-1078-1 ubuntu.com · vendor advisory
- FEDORA-2011-2328 lists.fedoraproject.org · vendor advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=680237 bugzilla.redhat.com
- 43734 secunia.com · third party advisory
Other references
- [oss-security] 20110224 Re: CVE Request -- logwatch: Privilege escalation due improper sanitization of special… openwall.com · mailing list
- ADV-2011-0581 vupen.com · vdb entry
- ADV-2011-0533 vupen.com · vdb entry
- [oss-security] 20110224 CVE Request -- logwatch: Privilege escalation due improper sanitization of special… openwall.com · mailing list
- 46554 securityfocus.com · vdb entry
- ADV-2011-0596 vupen.com · vdb entry
- [Logwatch-devel] 20110216 Remote command execution issue with root privileges sourceforge.net · mailing list
- 1025165 securitytracker.com · vdb entry
Source: the record CVE-2011-1018 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse