{"schema_version":"1.7.2","id":"OESA-2026-2281","modified":"2026-05-09T12:33:53Z","published":"2026-05-09T12:33:53Z","upstream":["CVE-2026-5958"],"summary":"sed security update","details":"Sed is a non-interactive command-line text editor. A stream editor is used to per-form basic text transformations on an input stream (a file or input from a pipeline).\r\n\r\nSecurity Fix(es):\n\nWhen 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: \n1. resolves symlink to its target and stores the resolved path for determining when output is written,\n2. opens the original symlink path (not the resolved one) to read the file. \nBetween these two calls there is a race window. If an attacker atomically replaces the symlink with a different target during that window, sed will: read content from the new (attacker-chosen) symlink target and write the processed result to the path recorded in step 1. This can lead to arbitrary file overwrite with attacker-controlled content in the context of the sed process.\n\n\nThis issue was fixed in version 4.10.(CVE-2026-5958)","affected":[{"package":{"ecosystem":"openEuler:24.03-LTS-SP3","name":"sed","purl":"pkg:rpm/openEuler/sed&distro=openEuler-24.03-LTS-SP3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.9-5.oe2403sp3"}]}],"ecosystem_specific":{"aarch64":["sed-4.9-5.oe2403sp3.aarch64.rpm","sed-debuginfo-4.9-5.oe2403sp3.aarch64.rpm","sed-debugsource-4.9-5.oe2403sp3.aarch64.rpm"],"noarch":["sed-help-4.9-5.oe2403sp3.noarch.rpm"],"src":["sed-4.9-5.oe2403sp3.src.rpm"],"x86_64":["sed-4.9-5.oe2403sp3.x86_64.rpm","sed-debuginfo-4.9-5.oe2403sp3.x86_64.rpm","sed-debugsource-4.9-5.oe2403sp3.x86_64.rpm"]}}],"references":[{"type":"ADVISORY","url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2281"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5958"}],"database_specific":{"severity":"Low"}}
