CVE-2026-5958
Patch priority
RegularFix with the next regular update.
- CVSS
- 2.1
- Severity
- 2.1
- EPSS
- 0.1 %
- Percentile
- 4
- Actively exploited
- not known
The traffic light combines CVSS (severity), EPSS (exploitation probability, FIRST) and CISA's KEV catalog. It does not replace your own assessment. More in the glossary
What do I need to do?
in plain wordsWho is affected?
The affected product is not specified yet – the description below usually names it.
How dangerous is it?
- An attacker already needs access to the device (or gets you to open a file).
What to do?
- Include it in your next regular update.
- The vendor’s advisories (linked below) name the fixed version.
Generated automatically from the CVSS vector, KEV and EPSS – does not replace the vendor’s information. Terms explained
Description
NVDWhen sed is invoked with both -i (in-place edit) and --follow-symlinks, the function open_next_file() performs two separate, non-atomic filesystem operations on the same path: 1. resolves symlink to its target and stores the resolved path for determining when output is written, 2. opens the original symlink path (not the resolved one) to read the file. Between these two calls there is a race window. If an attacker atomically replaces the symlink with a different target during that window, sed will: read content from the new (attacker-chosen) symlink target and write the processed result to the path recorded in step 1. This can lead to arbitrary file overwrite with attacker-controlled content in the context of the sed process. This issue was fixed in version 4.10.
- Published
- 20.04.2026
- Modified
- 26.10.2026
- CWE
- CWE-367
- Status
- Deferred
CVSS v4.0 · CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Vendor updates
10- SUSE: SUSE-SU-2026:22325-1 – Security update for sed 01.07.2026 · MEDIUM · Patch day
- SUSE: SUSE-SU-2026:22256-1 – Security update for sed 29.06.2026 · MEDIUM · Patch day
- Ubuntu: USN-8229-2 – sed vulnerability 28.05.2026 · Low · Patch day
- SUSE: SUSE-SU-2026:1941-1 – Security update for sed 18.05.2026 · MEDIUM · Patch day
- SUSE: SUSE-SU-2026:1699-1 – Security update for sed 06.05.2026 · MEDIUM · Patch day
- Ubuntu: USN-8229-1 – sed vulnerability 04.05.2026 · Low · Patch day
- SUSE: SUSE-SU-2026:21448-1 – Security update for sed 04.05.2026 · MEDIUM · Patch day
- SUSE: SUSE-SU-2026:21413-1 – Security update for sed 30.04.2026 · MEDIUM · Patch day
- SUSE: SUSE-SU-2026:1659-1 – Security update for sed 29.04.2026 · MEDIUM · Patch day
- Microsoft: Mariner 29.04.2026 · Low · Patch day
Sources: NVD (NIST), CISA KEV, EPSS (FIRST.org), vendors and authorities. No warranty.