When sed is invoked with both -i (in-place edit) and --follow-symlinks, the function opennextfile() performs two separate, non-atomic filesystem operations on the same path:
This issue was fixed in version 4.10.
{
"sources": [
{
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5958",
"database_specific": {
"status": "Awaiting Analysis"
},
"id": "CVE-2026-5958",
"imported": "2026-04-27T17:21:40.555Z",
"modified": "2026-04-20T19:05:30.750Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-5958",
"published": "2026-04-20T12:16:08.433Z"
},
{
"html_url": "https://github.com/advisories/GHSA-9r7w-j29g-xqx8",
"id": "GHSA-9r7w-j29g-xqx8",
"imported": "2026-04-27T17:21:42.037Z",
"modified": "2026-04-20T12:32:07Z",
"url": "https://api.github.com/advisories/GHSA-9r7w-j29g-xqx8",
"published": "2026-04-20T12:32:01Z"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-23834",
"id": "EUVD-2026-23834",
"imported": "2026-04-27T17:21:39.016Z",
"modified": "2026-04-20T13:25:59Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-23834",
"published": "2026-04-20T11:59:32Z"
}
],
"license": "CC-BY-4.0"
}