CVSS 4.0
2.1 lowCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NLow (2.1) in gnu sed. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NExplain CVE-2026-5958 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5958?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5958?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5958 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| GNU Sed | from 4.1e before 4.10 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | sed | 4.9-1+deb12u1 | DEBIAN-CVE-2026-5958 |
| Debian | 13 | sed | 4.9-2+deb13u1 | DEBIAN-CVE-2026-5958 |
| Debian | 14 | sed | 4.9-3 | DEBIAN-CVE-2026-5958 |
| Ubuntu | 22.04:LTS | sed | 4.8-1ubuntu2.1 | UBUNTU-CVE-2026-5958 |
| Ubuntu | 24.04:LTS | sed | 4.9-2ubuntu0.24.04.1 | UBUNTU-CVE-2026-5958 |
| Ubuntu | 25.10 | sed | 4.9-2ubuntu0.25.10.1 | UBUNTU-CVE-2026-5958 |
| Ubuntu | 26.04:LTS | sed | 4.9-2ubuntu1 | UBUNTU-CVE-2026-5958 |
| Ubuntu | Pro:18.04:LTS | sed | 4.4-2ubuntu0.1~esm1 | UBUNTU-CVE-2026-5958 USN-8229-2 |
| Ubuntu | Pro:20.04:LTS | sed | 4.7-1ubuntu0.1~esm1 | UBUNTU-CVE-2026-5958 USN-8229-2 |
| Red Hat | hummingbird:1 | sed | 0:4.10-1.hum1 | RHSA-2026:10995 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | sed | 4.9-160000.3.1 | SUSE-SU-2026:22325-1 |
| SUSE | Linux Micro 6.2 | sed | 4.9-160000.3.1 | SUSE-SU-2026:22256-1 |
| openSUSE | Leap 16.0 | sed | 4.9-160000.3.1 | openSUSE-SU-2026:21024-1 |
| openSUSE | Tumbleweed | sed | 4.10-1.1 | openSUSE-SU-2026:10649-1 |
| Azure Linux | 3 | sed | 4.9-2 | AZL-83102 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
This is a Moderate severity flaw in GNU sed that allows for arbitrary file overwrite. The vulnerability is a Time-of-Check Time-of-Use (TOCTOU) race condition in the `--follow-symlinks` option, enabling an attacker to cause `sed -i --follow-symlinks` to read attacker-controlled content and write it to an unintended file. Exploitation requires a privileged process to execute `sed` on a path that an attacker can influence.
To mitigate this vulnerability, avoid using the `sed -i --follow-symlinks` command in privileged contexts or on paths that can be influenced by untrusted users. This flaw specifically affects the `--follow-symlinks` option, which, when used by a privileged process on an attacker-controlled path, can lead to arbitrary file overwrite. Restricting the use of this specific option in sensitive operations can reduce the risk of exploitation.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | sed-main-4.10-1.hum1 | Fixed 2026-04-27 | RHSA-2026:10995 |
| Red Hat Enterprise Linux 10 | sed | Fix deferred | |
| Red Hat Enterprise Linux 6 | sed | Fix deferred | |
| Red Hat Enterprise Linux 7 | sed | Fix deferred | |
| Red Hat Enterprise Linux 8 | sed | Fix deferred | |
| Red Hat Enterprise Linux 9 | sed | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Fix deferred |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-5958.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.