{
  "cveId": "CVE-2026-5958",
  "url": "https://patchblox.com/security/cve/CVE-2026-5958",
  "summary": "CVE-2026-5958 is fixed in sed on 1 platform, first by sed 4.4-2ubuntu0.1~esm1, released April 18, 2026. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "Race Condition in GNU Sed",
  "description": "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:  1. resolves symlink to its target and stores\u00A0the resolved path for determining when output is written, 2. opens the original symlink path\u00A0(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.\u00A0This 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.",
  "published": "2026-04-18T17:00:00Z",
  "severity": "Low",
  "cwe": "Time-of-check Time-of-use (TOCTOU) Race Condition",
  "epss": 0.00142,
  "epssPercentile": 0.03537,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-5958",
  "fixes": [
    {
      "platform": "linux",
      "product": "sed",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "4.9-1\u002Bdeb12u1",
      "fix": "DEBIAN-CVE-2026-5958",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2026-5958",
      "released": "2026-05-15T16:01:09Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "4.9-2\u002Bdeb13u1",
      "fix": "DEBIAN-CVE-2026-5958",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2026-5958",
      "released": "2026-05-15T16:01:09Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "Debian 14",
      "fixedVersion": "4.9-3",
      "fix": "DEBIAN-CVE-2026-5958",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2026-5958",
      "released": "2026-05-15T16:01:09Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "4.4-2ubuntu0.1~esm1",
      "fix": "sed 4.4-2ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-sed-4.4-2ubuntu0.1-esm1",
      "released": "2026-04-18T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "4.7-1ubuntu0.1~esm1",
      "fix": "sed 4.7-1ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-sed-4.7-1ubuntu0.1-esm1",
      "released": "2026-04-18T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "4.8-1ubuntu2.1",
      "fix": "sed 4.8-1ubuntu2.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-sed-4.8-1ubuntu2.1",
      "released": "2026-05-15T16:01:26Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "Ubuntu 24.04.5 LTS (noble)",
      "fixedVersion": "4.9-2ubuntu0.24.04.1",
      "fix": "sed 4.9-2ubuntu0.24.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-noble-sed-4.9-2ubuntu0.24.04.1",
      "released": "2026-05-15T16:01:30Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "Ubuntu 25.10 (questing)",
      "fixedVersion": "4.9-2ubuntu0.25.10.1",
      "fix": "sed 4.9-2ubuntu0.25.10.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-questing-sed-4.9-2ubuntu0.25.10.1",
      "released": "2026-05-15T16:01:35Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "Ubuntu 26.04.1 LTS (resolute)",
      "fixedVersion": "4.9-2ubuntu1",
      "fix": "sed 4.9-2ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-resolute-sed-4.9-2ubuntu1",
      "released": "2026-04-18T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "4.9-160000.3.1",
      "fix": "OPENSUSE-SU-2026:21024-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-21024-1",
      "released": "2026-06-22T14:30:37Z"
    },
    {
      "platform": "linux",
      "product": "sed",
      "release": "sles 16.0",
      "fixedVersion": "4.9-160000.3.1",
      "fix": "SUSE-SU-2026:22325-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-22325-1",
      "released": "2026-06-22T14:28:56Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}