CVE-2018-16888
published 2019-01-14CVE-2018-16888: It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes. When a service is run from an unprivileged…
PriorityP417medium4.7CVSS 3.1
AVLACHPRLUINSUCNINAH
EPSS
0.30%
22.0th percentile
It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes. When a service is run from an unprivileged user (e.g. User field set in the service file), a local attacker who is able to write to the PIDFile of the mentioned service may use this flaw to trick systemd into killing other services and/or privileged processes. Versions before v237 are vulnerable.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | systemd | < systemd 237-1 (bookworm) | systemd 237-1 (bookworm) |
| redhat | enterprise_linux | — | — |
| systemd_project | systemd | < 237 | 237 |
| systemd_project | systemd | >= 0 < 237-1 | 237-1 |
| systemd_project | systemd | >= 0 < 237-1 | 237-1 |
| systemd_project | systemd | >= 0 < 237-1 | 237-1 |
| systemd_project | systemd | >= 0 < 237-1 | 237-1 |
| systemd_project | systemd | >= 0 < 229-4ubuntu21.27 | 229-4ubuntu21.27 |
| systemd_project | systemd | >= 0 < 237-3ubuntu10.38 | 237-3ubuntu10.38 |
| the_systemd_project | systemd | — | — |
CVSS provenance
nvdv3.14.7MEDIUMCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
nvdv3.04.4MEDIUMCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H
nvdv2.01.9LOWAV:L/AC:M/Au:N/C:N/I:N/A:P
osv4.7MEDIUM
vendor_debian4.7LOW
vendor_redhat4.7MEDIUM
vendor_ubuntu4.7MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-34mm-3fgq-qjxq: It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes
ghsa_unreviewed·2022-05-13
CVE-2018-16888 [MEDIUM] CWE-269 GHSA-34mm-3fgq-qjxq: It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes
It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes. When a service is run from an unprivileged user (e.g. User field set in the service file), a local attacker who is able to write to the PIDFile of the mentioned service may use this flaw to trick systemd into killing other services and/or privileged processes. Versions before v237 are vulnerable.
OSV
systemd vulnerabilities
osv·2020-02-05·CVSS 4.7
CVE-2018-16888 [MEDIUM] systemd vulnerabilities
systemd vulnerabilities
It was discovered that systemd incorrectly handled certain PIDFile files.
A local attacker could possibly use this issue to trick systemd into
killing privileged processes. This issue only affected Ubuntu 16.04 LTS.
(CVE-2018-16888)
It was discovered that systemd incorrectly handled certain udevadm trigger
commands. A local attacker could possibly use this issue to cause systemd
to consume resources, leading to a denial of service. (CVE-2019-20386)
Jann Horn discovered that systemd incorrectly handled services that use the
DynamicUser property. A local attacker could possibly use this issue to
access resources owned by a different service in the future. This issue
only affected Ubuntu 18.04 LTS. (CVE-2019-3843, CVE-2019-3844)
Tavis Ormandy discovered that system
OSV
CVE-2018-16888: It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes
osv·2019-01-14·CVSS 4.7
CVE-2018-16888 [MEDIUM] CVE-2018-16888: It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes
It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes. When a service is run from an unprivileged user (e.g. User field set in the service file), a local attacker who is able to write to the PIDFile of the mentioned service may use this flaw to trick systemd into killing other services and/or privileged processes. Versions before v237 are vulnerable.
Ubuntu
systemd vulnerabilities
vendor_ubuntu·2020-02-05·CVSS 4.7
CVE-2018-16888 [MEDIUM] systemd vulnerabilities
Title: systemd vulnerabilities
Summary: Several security issues were fixed in systemd.
It was discovered that systemd incorrectly handled certain PIDFile files.
A local attacker could possibly use this issue to trick systemd into
killing privileged processes. This issue only affected Ubuntu 16.04 LTS.
(CVE-2018-16888)
It was discovered that systemd incorrectly handled certain udevadm trigger
commands. A local attacker could possibly use this issue to cause systemd
to consume resources, leading to a denial of service. (CVE-2019-20386)
Jann Horn discovered that systemd incorrectly handled services that use the
DynamicUser property. A local attacker could possibly use this issue to
access resources owned by a different service in the future. This issue
only affected Ubuntu 18.04 LTS. (CVE
Red Hat
mongodb: Incorrect scoping in shipped sysV scripts allows arbitrary PID insertion to kill
vendor_redhat·2019-08-30·CVSS 4.7
CVE-2019-2389 [MEDIUM] CWE-732 mongodb: Incorrect scoping in shipped sysV scripts allows arbitrary PID insertion to kill
mongodb: Incorrect scoping in shipped sysV scripts allows arbitrary PID insertion to kill
Incorrect scoping of kill operations in MongoDB Server's packaged SysV init scripts allow users with write access to the PID file to insert arbitrary PIDs to be killed when the root user stops the MongoDB process via SysV init. This issue affects MongoDB Server v4.0 versions prior to 4.0.11; MongoDB Server v3.6 versions prior to 3.6.14; MongoDB Server v3.4 versions prior to 3.4.22.
Statement: This issue affects the mongodb packages as shipped in the Red Hat Enterprise Linux version 6 release of Red Hat Software Collections. For the Red Hat Enterprise Linux version 7 release of Red Hat Software Collections, refer to systemd CVE-2018-16888.
Red Hat Satellite 6 is using MongoDB, but is not considered v
Debian
CVE-2018-16888: systemd - It was discovered systemd does not correctly check the content of PIDFile files ...
vendor_debian·2018·CVSS 4.7
CVE-2018-16888 [MEDIUM] CVE-2018-16888: systemd - It was discovered systemd does not correctly check the content of PIDFile files ...
It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes. When a service is run from an unprivileged user (e.g. User field set in the service file), a local attacker who is able to write to the PIDFile of the mentioned service may use this flaw to trick systemd into killing other services and/or privileged processes. Versions before v237 are vulnerable.
Scope: local
bookworm: resolved (fixed in 237-1)
bullseye: resolved (fixed in 237-1)
forky: resolved (fixed in 237-1)
sid: resolved (fixed in 237-1)
trixie: resolved (fixed in 237-1)
Red Hat
systemd: kills privileged process if unprivileged PIDFile was tampered
vendor_redhat·2017-08-17·CVSS 4.7
CVE-2018-16888 [MEDIUM] CWE-250 systemd: kills privileged process if unprivileged PIDFile was tampered
systemd: kills privileged process if unprivileged PIDFile was tampered
It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes. When a service is run from an unprivileged user (e.g. User field set in the service file), a local attacker who is able to write to the PIDFile of the mentioned service may use this flaw to trick systemd into killing other services and/or privileged processes. Versions before v237 are vulnerable.
It was discovered systemd does not correctly check the content of PIDFile files before using it to kill processes. When a service is run from an unprivileged user (e.g. User field set in the service file), a local attacker who is able to write to the PIDFile of the mentioned service may use this flaw to trick sys
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-2389 mongodb: Incorrect scoping in shipped sysV scripts allows arbitrary PID insertion to kill
bugzilla·2019-10-24·CVSS 4.7
CVE-2019-2389 [MEDIUM] CVE-2019-2389 mongodb: Incorrect scoping in shipped sysV scripts allows arbitrary PID insertion to kill
CVE-2019-2389 mongodb: Incorrect scoping in shipped sysV scripts allows arbitrary PID insertion to kill
Incorrect scoping of kill operations in MongoDB Server's packaged SysV init scripts allow users with write access to the PID file to insert arbitrary PIDs to be killed when the root user stops the MongoDB process via SysV init. This issue affects: MongoDB Inc. MongoDB Server v4.0 versions prior to 4.0.11; v3.6 versions prior to 3.6.14; v3.4 versions prior to 3.4.22.
Upstream bug:
https://jira.mongodb.org/browse/SERVER-40563
Upstream patch:
https://github.com/mongodb/mongo/commit/443e8974d66a3ddd2ad89f8b3f9c2ebb7d8d9500 [master]
https://github.com/mongodb/mongo/commit/714895ea484019cf65380b94ad328e790a25e7fc [v4.0]
https://github.com/mongodb/mongo/commit/c1d1565780fa3c7fc18b591b3f1e8
Bugzilla
CVE-2018-16888 systemd: kills privileged process if unprivileged PIDFile was tampered
bugzilla·2019-01-02·CVSS 4.7
CVE-2018-16888 [MEDIUM] CVE-2018-16888 systemd: kills privileged process if unprivileged PIDFile was tampered
CVE-2018-16888 systemd: kills privileged process if unprivileged PIDFile was tampered
systemd up to version 237 does not perform any check on the content of the PIDFile file of a service, which may result in systemd killing a process owned by other services when the service the PIDFile belongs to is stopped. In case the PIDFile is owned by unprivileged users (e.g. a service run with a different User field), systemd may kill privileged processes. A local attacker who is able to tamper with the PIDFile of a service may trick systemd into killing processes he would not have permissions to kill, in the moment a privileged user tries to kill the mentioned service.
Upstream patches:
https://github.com/systemd/systemd/pull/7816
Upstream issue:
https://github.com/systemd/systemd/issues/6632
D
https://access.redhat.com/errata/RHSA-2019:2091https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16888https://lists.apache.org/thread.html/5960a34a524848cd722fd7ab7e2227eac10107b0f90d9d1e9c3caa74%40%3Cuser.cassandra.apache.org%3Ehttps://security.netapp.com/advisory/ntap-20190307-0007/https://usn.ubuntu.com/4269-1/https://access.redhat.com/errata/RHSA-2019:2091https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16888https://lists.apache.org/thread.html/5960a34a524848cd722fd7ab7e2227eac10107b0f90d9d1e9c3caa74%40%3Cuser.cassandra.apache.org%3Ehttps://security.netapp.com/advisory/ntap-20190307-0007/https://usn.ubuntu.com/4269-1/
2019-01-14
Published