JLSEC-2026-213

Source
https://github.com/JuliaLang/SecurityAdvisories.jl/blob/main/advisories/published/2026/JLSEC-2026-213.md
Import Source
https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-213.json
JSON Data
https://api.osv.dev/v1/vulns/JLSEC-2026-213
Upstream
  • CVE-2026-5958
  • EUVD-2026-23834
  • GHSA-9r7w-j29g-xqx8
Published
2026-04-27T17:38:11.232Z
Modified
2026-04-27T18:47:24.118189Z
Severity
  • 2.1 (Low) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
When sed is invoked with both -i (in-place edit) and --follow-symlinks, the function...
Details

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:

  1. resolves symlink to its target and stores the resolved path for determining when output is written,
  2. opens the original symlink path (not the resolved one) to read the file. Between 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.

This issue was fixed in version 4.10.

Database specific
{
    "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"
}
References

Affected packages

Julia / sed_jll

Package

Name
sed_jll
Purl
pkg:julia/sed_jll?uuid=8ce03227-cf0a-51af-b0b4-2693c0743e9f

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.10.0+0

Database specific

source
"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-213.json"