{"id":"CVE-2018-15686","state":"PUBLISHED","title":"systemd: reexec state injection: fgets() on overlong lines leads to line splitting","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.","publishedAt":"2018-10-26T14:00:00.000Z","updatedAt":"2025-06-09T15:50:48.760Z","severity":{"score":7,"label":"High","version":"3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"canonical"},"assigner":"canonical","products":["systemd systemd"],"affected":[{"vendor":"systemd","product":"systemd","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"239","versionType":"custom"}]}],"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"],"weaknesses":["CWE-502"],"ingestedAt":"2026-10-29T19:44:22.805Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2018/15xxx/CVE-2018-15686.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2018-15686","state":"PUBLISHED","datePublished":"2018-10-26T14:00:00.000Z","dateUpdated":"2025-06-09T15:50:48.760Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2018-08-22T00:00:00.000Z"},"containers":{"cna":{"title":"systemd: reexec state injection: fgets() on overlong lines leads to line splitting","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"systemd","product":"systemd","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"239","versionType":"custom"}]}],"references":[{"url":"https://security.gentoo.org/glsa/201810-10","name":"GLSA-201810-10","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/11/msg00017.html","name":"[debian-lts-announce] 20181119 [SECURITY] [DLA 1580-1] systemd security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securityfocus.com/bid/105747","name":"105747","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.exploit-db.com/exploits/45714/","name":"45714","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://usn.ubuntu.com/3816-1/","name":"USN-3816-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2091","name":"RHSA-2019:2091","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3222","name":"RHSA-2019:3222","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0593","name":"RHSA-2020:0593","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a0%40%3Cissues.bookkeeper.apache.org%3E","name":"[bookkeeper-issues] 20200729 [GitHub] [bookkeeper] padma81 opened a new issue #2387: Security vulnerabilities in the apache/bookkeeper-4.9.2 image","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/systemd/systemd/pull/10519","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_0":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"}}],"problemTypes":[{"descriptions":[{"description":"fgets() can be confused by overly-long input strings. The first read will return a partial string and subsequent reads will begin as if it were a new line.","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"canonical","dateUpdated":"2021-07-20T22:53:12.000Z","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc"},"credits":[{"lang":"en","value":"Jann Horn"}],"datePublic":"2018-10-25T00:00:00.000Z","source":{"defect":["https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1796402"],"discovery":"EXTERNAL"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","DATE_PUBLIC":"2018-10-25T00:00:00.000Z","ID":"CVE-2018-15686","STATE":"PUBLIC","TITLE":"systemd: reexec state injection: fgets() on overlong lines leads to line splitting"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"systemd","version":{"version_data":[{"affected":"<=","version_affected":"<=","version_value":"239"}]}}]},"vendor_name":"systemd"}]}},"credit":[{"lang":"eng","value":"Jann Horn"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"fgets() can be confused by overly-long input strings. The first read will return a partial string and subsequent reads will begin as if it were a new line."}]}]},"references":{"reference_data":[{"name":"GLSA-201810-10","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201810-10"},{"name":"[debian-lts-announce] 20181119 [SECURITY] [DLA 1580-1] systemd security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2018/11/msg00017.html"},{"name":"105747","refsource":"BID","url":"http://www.securityfocus.com/bid/105747"},{"name":"45714","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/45714/"},{"name":"USN-3816-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3816-1/"},{"name":"RHSA-2019:2091","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:2091"},{"name":"RHSA-2019:3222","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:3222"},{"name":"RHSA-2020:0593","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2020:0593"},{"name":"[bookkeeper-issues] 20200729 [GitHub] [bookkeeper] padma81 opened a new issue #2387: Security vulnerabilities in the apache/bookkeeper-4.9.2 image","refsource":"MLIST","url":"https://lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a0@%3Cissues.bookkeeper.apache.org%3E"},{"name":"https://www.oracle.com//security-alerts/cpujul2021.html","refsource":"MISC","url":"https://www.oracle.com//security-alerts/cpujul2021.html"},{"name":"https://github.com/systemd/systemd/pull/10519","refsource":"MISC","url":"https://github.com/systemd/systemd/pull/10519"}]},"source":{"defect":["https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1796402"],"discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://security.gentoo.org/glsa/201810-10","name":"GLSA-201810-10","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/11/msg00017.html","name":"[debian-lts-announce] 20181119 [SECURITY] [DLA 1580-1] systemd security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.securityfocus.com/bid/105747","name":"105747","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://www.exploit-db.com/exploits/45714/","name":"45714","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"]},{"url":"https://usn.ubuntu.com/3816-1/","name":"USN-3816-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2091","name":"RHSA-2019:2091","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3222","name":"RHSA-2019:3222","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0593","name":"RHSA-2020:0593","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a0%40%3Cissues.bookkeeper.apache.org%3E","name":"[bookkeeper-issues] 20200729 [GitHub] [bookkeeper] padma81 opened a new issue #2387: Security vulnerabilities in the apache/bookkeeper-4.9.2 image","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/systemd/systemd/pull/10519","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T10:01:54.314Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-06-09T15:50:23.789109Z","id":"CVE-2018-15686","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-502","type":"CWE","lang":"en","description":"CWE-502 Deserialization of Untrusted Data"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-09T15:50:48.760Z"}}]}}}