cve.bz

CVE-2018-11805 OS Command Injection

6.7 mediumEPSS 0.9%

Medium (6.7). EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
In Apache SpamAssassin before 3.4.3, nefarious CF files can be configured to run system commands without any output or errors. With this, exploits can be injected in a number of scenarios. In addition to upgrading to SA 3.4.3, we recommend that users should only use update channels or 3rd party .cf files from trusted places.

Severity

CVSS 3.1

6.7 medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-11805 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-11805?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-11805?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-11805 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:spamassassinbefore 3.4.3
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8spamassassin3.4.2-0+deb8u2DLA-2037-1
Debian9spamassassin3.4.2-1~deb9u2DSA-4584-1
Debian10spamassassin3.4.2-1+deb10u1DSA-4584-1
Debian12, 13, 14spamassassin3.4.3~rc6-1DEBIAN-CVE-2018-11805
Ubuntu16.04:LTSspamassassin3.4.2-0ubuntu0.16.04.2UBUNTU-CVE-2018-11805 USN-4237-1
Ubuntu18.04:LTSspamassassin3.4.2-0ubuntu0.18.04.2UBUNTU-CVE-2018-11805 USN-4237-1
UbuntuPro:14.04:LTSspamassassin3.4.2-0ubuntu0.14.04.1+esm1UBUNTU-CVE-2018-11805 USN-4237-2
Red Hatenterprise_linux:8::appstreamspamassassin, spamassassin-debuginfo, spamassassin-debugsource0:3.4.2-10.el8RHSA-2020:4625
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP1-LTSS and 14 morespamassassin3.4.2-44.8.1SUSE-SU-2020:0810-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morespamassassin3.4.2-7.9.1SUSE-SU-2020:0813-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Development Tools 15 SP1spamassassin3.4.2-12.5.1SUSE-SU-2020:0811-1
openSUSELeap 15.1spamassassin3.4.2-lp151.8.3.1openSUSE-SU-2020:0446-1
openSUSETumbleweedspamassassin3.4.6-71.3openSUSE-SU-2024:11395-1
Alpinev3.8, v3.9, v3.10 and 14 morespamassassin3.4.3-r0ALPINE-CVE-2018-11805

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The attack is triggered by malicious specially crafted .cf files which are basically configuration files for spamassasin. These files can be located at:

1. /usr/share/spamassassin

2. /etc/mail/spamassassin

3. user's home directory, in a directory called .spamassassin

All of these locations can only be accessed by either the system administrator or by a user having a local shell account on the machine. In order to successfully exploit this flaw, the attacker needs to convince the user to place the malicious configuration files in one of the above locations.

Red Hat's mitigation

The attack is triggered by malicious specially crafted .cf files which are configuration files for spamassasin. Do not use untrusted configuration files for spamassisin

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8spamassassin-0:3.4.2-10.el8Fixed 2020-11-04RHSA-2020:4625
Red Hat Enterprise Linux 5spamassassinOut of support scope
Red Hat Enterprise Linux 6spamassassinOut of support scope
Red Hat Enterprise Linux 7spamassassinWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-11805.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON