VulnarioBlogsystemd vulnerabilities

systemd Vulnerabilities: The 10 Most Critical systemd Security Bugs (CVEs)

systemd vulnerabilities are security flaws in systemd that attackers can abuse to steal data, take over a server or interrupt a service. systemd is the init system and service manager on most Linux distributions. The National Vulnerability Database (NVD) lists 55 CVEs for systemd, 4 of them rated critical, and 7 were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.

This guide lists the 10 most critical systemd security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers systemd security basics and a free way to be told about the next systemd CVE as soon as it is published.

Key takeaways

  • No systemd CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
  • 4 systemd CVEs are rated critical (CVSS v3), and 7 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2023-26604, published Mar 3, 2023.
  • You can monitor systemd for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these systemd CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical systemd CVEs at a glance

Most critical systemd vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2022-25269.8 Critical2022-09-09Use after freeNo
2CVE-2018-210299.8 Critical2019-10-30Improper certificate validationNo
3CVE-2015-75109.8 Critical2017-09-25Memory buffer overflowNo
4CVE-2017-10000829.8 Critical2017-07-07Improper privilege managementNo
5CVE-2018-156888.8 High2018-10-26Buffer overflowNo
6CVE-2023-266047.8 High2023-03-03Improper privilege managementNo
7CVE-2020-17127.8 High2020-03-31Use after freeNo
8CVE-2019-38437.8 High2019-04-26Improper privilege managementNo
9CVE-2019-38447.8 High2019-04-26Security flawNo
10CVE-2018-168647.8 High2019-01-11Allocation without limitsNo

Each systemd CVE explained

1. CVE-2022-2526: Use after free

  • CVSS 9.8 Critical
  • Published 2022-09-09
  • CWE-416
What NVD says
A use-after-free vulnerability was found in systemd. This issue occurs due to the on_stream_io() function and dns_stream_complete() function in 'resolved-dns-stream.c' not incrementing the reference counting for the DnsStream object. Therefore, other functions and callbacks called can dereference the DNSStream object, causing the use-after-free when the reference is still used later.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
240
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2022-2526 (opens in a new tab)

2. CVE-2018-21029: Improper certificate validation

  • CVSS 9.8 Critical
  • Published 2019-10-30
  • CWE-295
What NVD says
systemd 239 through 245 accepts any certificate signed by a trusted certificate authority for DNS Over TLS. Server Name Indication (SNI) is not sent, and there is no hostname validation with the GnuTLS backend. NOTE: This has been disputed by the developer as not a vulnerability since hostname validation does not have anything to do with this issue (i.e. there is no hostname to be sent)
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
239 to before 244
What to do
Upgrade to 244 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2018-21029 (opens in a new tab)

3. CVE-2015-7510: Memory buffer overflow

  • CVSS 9.8 Critical
  • Published 2017-09-25
  • CWE-119
What NVD says
Stack-based buffer overflow in the getpwnam and getgrnam functions of the NSS module nss-mymachines in systemd.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
223
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2015-7510 (opens in a new tab)

4. CVE-2017-1000082: Improper privilege management

  • CVSS 9.8 Critical
  • Published 2017-07-07
  • CWE-269
What NVD says
systemd v233 and earlier fails to safely parse usernames starting with a numeric digit (e.g. "0day"), running the service in question with root privileges rather than the user intended.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
229 to before 234
What to do
Upgrade to 234 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2017-1000082 (opens in a new tab)

5. CVE-2018-15688: Buffer overflow

  • CVSS 8.8 High
  • Published 2018-10-26
  • CWE-120
What NVD says
A buffer overflow vulnerability in the dhcp6 client of systemd allows a malicious dhcp6 server to overwrite heap memory in systemd-networkd. Affected releases are systemd: versions up to and including 239.
How it can be attacked
Can be exploited from an adjacent network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 239
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2018-15688 (opens in a new tab)

6. CVE-2023-26604: Improper privilege management

  • CVSS 7.8 High
  • Published 2023-03-03
  • CWE-269
What NVD says
systemd before 247 does not adequately block local privilege escalation for some Sudo configurations, e.g., plausible sudoers files in which the "systemctl status" command may be executed. Specifically, systemd does not set LESSSECURE to 1, and thus other programs may be launched from the less program.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 246.7
What to do
Upgrade to 246.7 or a later release, then restart the service.

NVD record for CVE-2023-26604 (opens in a new tab)

7. CVE-2020-1712: Use after free

  • CVSS 7.8 High
  • Published 2020-03-31
  • CWE-416
What NVD says
A heap use-after-free vulnerability was found in systemd before version v245-rc1, where asynchronous Polkit queries are performed while handling dbus messages. A local unprivileged attacker can abuse this flaw to crash systemd services or potentially execute code and elevate their privileges, by sending specially crafted dbus messages.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 244
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2020-1712 (opens in a new tab)

8. CVE-2019-3843: Improper privilege management

  • CVSS 7.8 High
  • Published 2019-04-26
  • CWE-266
What NVD says
It was discovered that a systemd service that uses DynamicUser property can create a SUID/SGID binary that would be allowed to run as the transient service UID/GID even after the service is terminated. A local attacker may use this flaw to access resources that will be owned by a potentially different service in the future, when the UID/GID will be recycled.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 242
What to do
Upgrade to 242 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2019-3843 (opens in a new tab)

9. CVE-2019-3844: Security flaw

  • CVSS 7.8 High
  • Published 2019-04-26
  • CWE-268
What NVD says
It was discovered that a systemd service that uses DynamicUser property can get new privileges through the execution of SUID binaries, which would allow to create binaries owned by the service transient group with the setgid bit set. A local attacker may use this flaw to access resources that will be owned by a potentially different service in the future, when the GID will be recycled.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 242
What to do
Upgrade to 242 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2019-3844 (opens in a new tab)

10. CVE-2018-16864: Allocation without limits

  • CVSS 7.8 High
  • Published 2019-01-11
  • CWE-770
What NVD says
An allocation of memory without limits, that could result in the stack clashing with another memory region, was discovered in systemd-journald when a program with long command line arguments calls syslog. A local attacker may use this flaw to crash systemd-journald or escalate his privileges. Versions through v240 are vulnerable.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 240
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2018-16864 (opens in a new tab)

How to check if your systemd is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

systemctl --version

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

systemd security checklist

  1. Update through your distribution's package manager and restart services that load the library.
  2. Do not feed untrusted input to the tool without validation or sandboxing.
  3. Track where it is embedded in your software, since many applications bundle their own copy.
  4. Run processing jobs as an unprivileged user with limited resources.

Where you run systemd matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating systemd: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than systemd. A flaw anywhere in the chain can be the way in, so also review our guides to Linux Kernel vulnerabilities, Ubuntu vulnerabilities and Debian vulnerabilities.

How to get alerted about new systemd vulnerabilities

NVD received 7 new systemd CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose systemd and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run systemd alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about systemd vulnerabilities

What are the most critical systemd vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical systemd CVEs include CVE-2022-2526 (CVSS 9.8), CVE-2018-21029 (CVSS 9.8), CVE-2015-7510 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have systemd vulnerabilities been exploited in real attacks?

For the systemd product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep systemd patched.

How many vulnerabilities does systemd have?

As of Nov 3, 2026 the National Vulnerability Database lists 55 CVEs for systemd, with 4 rated critical by CVSS v3. 7 were published in the previous twelve months.

How do I check which systemd version I run?

Run systemctl --version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new systemd CVE is published?

Add systemd to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose systemd and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is systemd secure?

systemd is as secure as its patch level. NVD published 7 new systemd CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2022-2526?

CVE-2022-2526 is a critical systemd vulnerability with a CVSS score of 9.8, published Sep 9, 2022. A use-after-free vulnerability was found in systemd. This issue occurs due to the on_stream_io() function and dns_stream_complete() function in 'resolved-dns-stream.c' not incrementing the reference counting for the DnsStream object.

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.