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
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2022-2526 | 9.8 Critical | 2022-09-09 | Use after free | No |
| 2 | CVE-2018-21029 | 9.8 Critical | 2019-10-30 | Improper certificate validation | No |
| 3 | CVE-2015-7510 | 9.8 Critical | 2017-09-25 | Memory buffer overflow | No |
| 4 | CVE-2017-1000082 | 9.8 Critical | 2017-07-07 | Improper privilege management | No |
| 5 | CVE-2018-15688 | 8.8 High | 2018-10-26 | Buffer overflow | No |
| 6 | CVE-2023-26604 | 7.8 High | 2023-03-03 | Improper privilege management | No |
| 7 | CVE-2020-1712 | 7.8 High | 2020-03-31 | Use after free | No |
| 8 | CVE-2019-3843 | 7.8 High | 2019-04-26 | Improper privilege management | No |
| 9 | CVE-2019-3844 | 7.8 High | 2019-04-26 | Security flaw | No |
| 10 | CVE-2018-16864 | 7.8 High | 2019-01-11 | Allocation without limits | No |
Each systemd CVE explained
1. CVE-2022-2526: Use after free
- 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).
2. CVE-2018-21029: Improper certificate validation
- 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)
3. CVE-2015-7510: Memory buffer overflow
- 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).
4. CVE-2017-1000082: Improper privilege management
- 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)
5. CVE-2018-15688: Buffer overflow
- 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).
6. CVE-2023-26604: Improper privilege management
- 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.
7. CVE-2020-1712: Use after free
- 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).
8. CVE-2019-3843: Improper privilege management
- 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)
9. CVE-2019-3844: Security flaw
- 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)
10. CVE-2018-16864: Allocation without limits
- 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).
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
- Update through your distribution's package manager and restart services that load the library.
- Do not feed untrusted input to the tool without validation or sandboxing.
- Track where it is embedded in your software, since many applications bundle their own copy.
- 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.
Related security guides
Few stacks run systemd alone. These guides cover the technologies it is most often deployed with.
- Linux Kernel vulnerabilities: The Linux kernel is the core of every Linux distribution.
- Ubuntu vulnerabilities: Ubuntu is the most popular Linux distribution for cloud servers and VPS.
- Debian vulnerabilities: Debian is a long-established community Linux distribution used widely on servers.
- curl vulnerabilities: curl and libcurl transfer data over HTTP and dozens of other protocols, and ship in almost every operating system.
- FFmpeg vulnerabilities: FFmpeg is the open-source framework for processing audio and video.
- Ghostscript vulnerabilities: Ghostscript is an interpreter for PostScript and PDF used by many document pipelines.
- glibc vulnerabilities: glibc is the GNU C library that nearly every Linux program depends on.
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
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
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.