# CVE-2018-16865: An allocation of memory without limits, that could result in the stack clashing with another memory region, was discove…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.0, CNA) `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 3.02% (percentile 88, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2019-01-11T21:00:00.000Z
- **Modified:** 2026-06-17T01:44:56.603Z

## Who should check

- Anyone running The systemd Project systemd through v240

## Description

An allocation of memory without limits, that could result in the stack clashing with another memory region, was discovered in systemd-journald when many entries are sent to the journal socket. A local attacker, or a remote one if systemd-journal-remote is used, may use this flaw to crash systemd-journald or execute code with journald privileges. Versions through v240 are vulnerable.

## Affected and fixed versions

- The systemd Project systemd: through v240 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-16865. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-16865.md
Affected: The systemd Project systemd through v240
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for The systemd Project systemd: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-16865 being exploited?

There is no confirmed exploitation: CVE-2018-16865 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.02% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-16865?

High: CVSS 7.5 (v3.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2018-16865?

The systemd Project systemd through v240.

### Is there a fix for CVE-2018-16865?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2018-16865?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2019:0342>
- vendor: <https://www.debian.org/security/2019/dsa-4367>
- vendor: <https://access.redhat.com/errata/RHSA-2019:0204>
- vendor: <https://usn.ubuntu.com/3855-1/>
- vendor: <https://access.redhat.com/errata/RHSA-2019:0049>
- vendor: <https://access.redhat.com/errata/RHSA-2019:0271>
- vendor: <https://access.redhat.com/errata/RHSA-2019:0361>
- vendor: <https://security.gentoo.org/glsa/201903-07>
- vendor: <https://access.redhat.com/errata/RHBA-2019:0327>
- vendor: <https://access.redhat.com/errata/RHSA-2019:2402>
- patch: <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16865>
- patch: <https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html>
- exploit: <https://www.qualys.com/2019/01/09/system-down/system-down.txt>
- exploit: <http://packetstormsecurity.com/files/152841/System-Down-A-systemd-journald-Exploit.html>
- other: <https://lists.debian.org/debian-lts-announce/2019/01/msg00016.html>
- other: <http://www.securityfocus.com/bid/106525>
- other: <https://security.netapp.com/advisory/ntap-20190117-0001/>
- other: <http://www.openwall.com/lists/oss-security/2019/05/10/4>
- other: <https://seclists.org/bugtraq/2019/May/25>
- other: <http://seclists.org/fulldisclosure/2019/May/21>
- other: <http://www.openwall.com/lists/oss-security/2021/07/20/2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-16865>

HTML: <https://flawdb.com/CVE-2018-16865> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-16865>
