Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
This update includes the following RPMs: sed: * sed-4.10-1.hum1 (aarch64, x86_64) * sed-4.10-1.hum1.src (src)
AI Analysis
Technical Summary
CVE-2026-5958 is a TOCTOU race condition vulnerability in GNU sed's handling of the --follow-symlinks option combined with the -i (in-place) flag. When sed resolves a symlink and then reopens the path for writing, an attacker with write permissions to the directory can swap the symlink between these operations. This can lead to arbitrary file overwrites and potential privilege escalation if a privileged process executes sed on an attacker-controlled path. The flaw specifically affects Red Hat Hardened Images RPMs including sed-4.10-1.hum1 for aarch64 and x86_64. Red Hat classifies this as a moderate severity issue with a CVSS 3.1 base score of 6.3 (AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H). The vulnerability is tracked as CWE-367 (TOCTOU race condition).
Potential Impact
An attacker with write access to a directory containing a symlink can exploit this race condition to cause sed to overwrite arbitrary files when run with the -i and --follow-symlinks options by a privileged user. This can lead to arbitrary file overwrites and potential privilege escalation. The integrity and availability of the system can be impacted. Confidentiality is not affected.
Mitigation Recommendations
Avoid using the 'sed -i --follow-symlinks' command in privileged contexts or on paths that can be influenced by untrusted users. Restricting the use of the --follow-symlinks option in sensitive operations reduces the risk of exploitation. Patch status is not yet confirmed—check the Red Hat advisory for updates on fixes. No other mitigation or official fix is currently provided.
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Description
This update includes the following RPMs: sed: * sed-4.10-1.hum1 (aarch64, x86_64) * sed-4.10-1.hum1.src (src)
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-5958 is a TOCTOU race condition vulnerability in GNU sed's handling of the --follow-symlinks option combined with the -i (in-place) flag. When sed resolves a symlink and then reopens the path for writing, an attacker with write permissions to the directory can swap the symlink between these operations. This can lead to arbitrary file overwrites and potential privilege escalation if a privileged process executes sed on an attacker-controlled path. The flaw specifically affects Red Hat Hardened Images RPMs including sed-4.10-1.hum1 for aarch64 and x86_64. Red Hat classifies this as a moderate severity issue with a CVSS 3.1 base score of 6.3 (AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H). The vulnerability is tracked as CWE-367 (TOCTOU race condition).
Potential Impact
An attacker with write access to a directory containing a symlink can exploit this race condition to cause sed to overwrite arbitrary files when run with the -i and --follow-symlinks options by a privileged user. This can lead to arbitrary file overwrites and potential privilege escalation. The integrity and availability of the system can be impacted. Confidentiality is not affected.
Mitigation Recommendations
Avoid using the 'sed -i --follow-symlinks' command in privileged contexts or on paths that can be influenced by untrusted users. Restricting the use of the --follow-symlinks option in sensitive operations reduces the risk of exploitation. Patch status is not yet confirmed—check the Red Hat advisory for updates on fixes. No other mitigation or official fix is currently provided.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2026:10995
- Cve Count
- 1
- State
- PUBLISHED
Threat ID: 6a4049d427e9c7971982cade
Added to database: 06/27/2026, 22:08:20 UTC
Last enriched: 08/16/2026, 18:03:45 UTC
Last updated: 09/14/2026, 22:01:35 UTC
Views: 49
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.