CVEfocus › CVE database › CVE-2018-15686

CVE-2018-15686systemd: reexec state injection: fgets() on overlong lines leads to line splitting

CVSS 7.0 HighEPSS 2.3% (higher than 83% of CVEs)Published 2018-10-26Updated 2025-06-09Assigner: canonical

A vulnerability in unit_deserialize of systemd allows an attacker to supply arbitrary state across systemd re-execution via NotifyAccess. This can be used to improperly influence systemd execution and possibly lead to root privilege escalation. Affected releases are systemd versions up to and including 239.

CWE-502

What to do

Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04systemdFixed237-3ubuntu10.6UBUNTU-CVE-2018-15686
Ubuntu 16.04systemdFixed229-4ubuntu21.8UBUNTU-CVE-2018-15686
Debian 14systemdFixed239-12DEBIAN-CVE-2018-15686
Debian 13systemdFixed239-12DEBIAN-CVE-2018-15686
Debian 12systemdFixed239-12DEBIAN-CVE-2018-15686
Red Hat Enterprise Linux 8systemdNot affected
Red Hat Enterprise Linux 8systemd-containerNot affected
Red Hat Enterprise Linux 8systemd-develNot affected
Red Hat Enterprise Linux 8systemd-journal-remoteNot affected
Red Hat Enterprise Linux 8systemd-libsNot affected
Red Hat Enterprise Linux 8systemd-pamNot affected
Red Hat Enterprise Linux 8systemd-testsNot affected
Red Hat Enterprise Linux 8systemd-udevNot affected
Red Hat Enterprise Linux 7libgudev1Fixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7libgudev1-develFixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7systemdFixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7systemd-develFixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7systemd-journal-gatewayFixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7systemd-libsFixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7systemd-networkdFixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7systemd-pythonFixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7systemd-resolvedFixed0:219-67.el7RHSA-2019:2091
Red Hat Enterprise Linux 7systemd-sysvFixed0:219-67.el7RHSA-2019:2091

What the vendor says

As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.