The vendor explicitly identifies these products as affected by this CVE.
- sed.src as a component of Red Hat Enterprise Linux 10
- sed.src as a component of Red Hat Enterprise Linux 6
- sed.src as a component of Red Hat Enterprise Linux 7
- sed.src as a component of Red Hat Enterprise Linux 8
- sed.src as a component of Red Hat Enterprise Linux 9
- openshift/ose-rhel-coreos-8 as a component of Red Hat OpenShift Container Platform 4
- openshift/ose-rhel-coreos-9 as a component of Red Hat OpenShift Container Platform 4
- Summary
- A Time-of-Check Time-of-Use (TOCTOU) race condition was found in GNU sed. When the -i (in-place) and --follow-symlinks options are used together, sed resolves the symlink but reopens the path for writing. An attacker with write access to the directory containing the symlink can swap it between the check and the open operations. If a privileged user executes sed in this manner on a path influenced by the attacker, it can lead to arbitrary file overwrites and potential privilege escalation.
- Remediation
- For details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
