CVE-2026-40226

systemd: systemd nspawn: Escape-to-host action via crafted config file

Published Apr 10, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
In nspawn in systemd 233 through 259 before 260, an escape-to-host action can occur via a crafted optional config file.

Analysis

AI-generated

Technical impact

A crafted optional configuration file can trigger an escape-to-host action in the nspawn component of systemd versions 233 to 259. The vulnerability permits an attacker to break out of the isolated container and gain elevated privileges on the host. The weakness is identified as CWE‑348, indicating a privilege‑escalation flaw. The impact is that an attacker who can supply a malicious config file could execute arbitrary commands with elevated rights, potentially compromising confidentiality, integrity, and availability of the host system.

Affected Systems

Affected systems are those running systemd versions 233 through 259 inclusive. This includes many Linux distributions that ship with these releases, and the nspawn service on those systems is vulnerable. Without more granular version data, any system within that range is at risk until it is upgraded.

Risk and Exploitability

The CVSS base score of 6.4 denotes a moderate severity. No EPSS score is available, so the exact likelihood of exploitation is uncertain. The vulnerability is not listed in CISA's KEV catalog, yet it remains present in widely deployed systemd releases. The likely attack vector is a local or authenticated user who can create or modify optional configuration files read by nspawn; exploitation requires only the ability to supply a crafted file, which in turn can trigger the escape-to-host action and execute arbitrary shell commands on the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a systemd update to version 260 or later, which removes the vulnerable escape-to-host path.
  • If a patch cannot be applied immediately, prevent attackers from creating or modifying optional configuration files used by nspawn, such as removing them or tightening permissions.

Generated by OpenCVE AI on April 10, 2026 at 16:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4533-1 systemd security update
Ubuntu USN Ubuntu USN USN-8402-1 systemd vulnerabilities
History
Type Values Removed Values Added
First Time appeared Systemd Project
Systemd Project systemd
CPEs cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*
Vendors & Products Systemd Project
Systemd Project systemd
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title systemd nspawn Escape-to-Host Vulnerability via Optional Config systemd: systemd nspawn: Escape-to-host action via crafted config file
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Title systemd nspawn Escape-to-Host Vulnerability via Optional Config
Type Values Removed Values Added
First Time appeared Systemd
Systemd systemd
Vendors & Products Systemd
Systemd systemd
Type Values Removed Values Added
Description In nspawn in systemd 233 through 259 before 260, an escape-to-host action can occur via a crafted optional config file.
Weaknesses CWE-348
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-348

    Use of Less Trusted Source

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 14, 2026, 2:48 PM
Reserved
Apr 10, 2026, 3:18 PM
Status
Analyzed
Published
Apr 10, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:44 AM
Severity
Moderate
Public date
Apr 10, 2026, 3:18 PM