When 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:
This issue was fixed in version 4.10.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Deferred"
},
"imported": "2026-07-17T21:22:12.001Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-5958",
"id": "CVE-2026-5958",
"published": "2026-04-20T12:16:08.433Z",
"modified": "2026-06-17T10:59:56.720Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5958"
},
{
"imported": "2026-07-17T21:22:12.225Z",
"url": "https://api.github.com/advisories/GHSA-9r7w-j29g-xqx8",
"published": "2026-04-20T12:32:01Z",
"id": "GHSA-9r7w-j29g-xqx8",
"modified": "2026-05-19T15:31:20Z",
"html_url": "https://github.com/advisories/GHSA-9r7w-j29g-xqx8"
},
{
"imported": "2026-07-17T21:22:16.862Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-23834",
"id": "EUVD-2026-23834",
"published": "2026-04-20T11:59:32Z",
"modified": "2026-05-13T05:17:46Z",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-23834"
}
]
}