Catálogo de CVE

CVE-2026-5958

When sed is invoked with both -i (in-place edit) and…

[Catálogo de CVE]

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 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.

Gravedad
Medium · CVSS 6.9CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.14% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixiesed4.9-2+deb13u1FixedDistribution-reported fixed boundary[CVE-2026-5958]
Debiansidsed4.9-3FixedDistribution-reported fixed boundary[CVE-2026-5958]
Debianforkysed4.9-3FixedDistribution-reported fixed boundary[CVE-2026-5958]
Debianbookwormsed4.9-1+deb12u1FixedDistribution-reported fixed boundary[CVE-2026-5958]

Showing 4 fix observations. All 28 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
UnknownRelease not reportedsed4.9-1+deb12u1UnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedsed4.9-2ubuntu0.24.04.1UnknownSource applicability is not establishedProvider not reported
Debianbookwormsed4.9-1+deb12u1FixedDistribution-reported fixed boundary[CVE-2026-5958]
Debianforkysed4.9-3FixedDistribution-reported fixed boundary[CVE-2026-5958]
Debiansidsed4.9-3FixedDistribution-reported fixed boundary[CVE-2026-5958]
Debiantrixiesed4.9-2+deb13u1FixedDistribution-reported fixed boundary[CVE-2026-5958]
Opensuseleap 16.0sed4.9-160000.3.1UnknownSource applicability is not established[OPENSUSE-SU-2026:21024-1]
Opensusetumbleweedsed4.10-1.1UnknownSource applicability is not established[OPENSUSE-SU-2026:10649-1]
Suselinux enterprise server 16.0sed4.9-160000.3.1UnknownSource applicability is not established[SUSE-SU-2026:22325-1]
Suselinux enterprise server for sap applications 16.0sed4.9-160000.3.1UnknownSource applicability is not established[SUSE-SU-2026:22325-1]
Suselinux micro 6.2sed4.9-160000.3.1UnknownSource applicability is not established[SUSE-SU-2026:22256-1]
Ubuntu22.04sed4.7-1ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu22.04sed4.7-1ubuntu2UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu22.04sed4.8-1ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu22.04sed4.8-1ubuntu2UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu22.04sed4.8-1ubuntu2.1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu24.04sed4.9-1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu24.04sed4.9-2UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu24.04sed4.9-2build1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu24.04sed4.9-2ubuntu0.24.04.1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu25.10sed4.9-2build1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu25.10sed4.9-2build2UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu25.10sed4.9-2ubuntu0.25.10.1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu26.04sed4.9-2build2UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu26.04sed4.9-2build3UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntu26.04sed4.9-2ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2026-5958][USN-8229-1]
Ubuntuprosed4.7-1UnknownSource applicability is not established[USN-8229-2][UBUNTU-CVE-2026-5958]
Ubuntuprosed4.7-1ubuntu0.1~esm1UnknownSource applicability is not established[USN-8229-2][UBUNTU-CVE-2026-5958]
Original provider fields
{
  "package_releases": [
    {
      "name": "sed",
      "status": "fixed",
      "release": "sid",
      "version": "4.9-3"
    },
    {
      "name": "sed",
      "status": "fixed",
      "release": "forky",
      "version": "4.9-3"
    },
    {
      "name": "sed",
      "status": "fixed",
      "release": "trixie",
      "version": "4.9-2+deb13u1"
    },
    {
      "name": "sed",
      "status": "fixed",
      "release": "bookworm",
      "version": "4.9-1+deb12u1"
    }
  ],
  "fixed_versions": [
    {
      "bug": 1134495,
      "name": "sed",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "4.9-3"
    },
    {
      "bug": 1134495,
      "name": "sed",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "4.9-3"
    },
    {
      "bug": 1134495,
      "name": "sed",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "4.9-2+deb13u1"
    },
    {
      "bug": 1134495,
      "name": "sed",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "4.9-1+deb12u1"
    }
  ],
  "distribution_packages": [
    {
      "name": "sed",
      "fixed_version": "4.9-2ubuntu0.24.04.1",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "fixed_version": "4.9-1+deb12u1",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-160000.3.1"
            }
          ]
        }
      ],
      "release": "linux enterprise server 16.0",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2026:22325-1",
      "fixed_version": "4.9-160000.3.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2026:22325-1",
      "provider_updated_at": "2026-07-02T18:24:10.966684892Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-160000.3.1"
            }
          ]
        }
      ],
      "release": "linux enterprise server for sap applications 16.0",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2026:22325-1",
      "fixed_version": "4.9-160000.3.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2026:22325-1",
      "provider_updated_at": "2026-07-02T18:24:10.966684892Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-160000.3.1"
            }
          ]
        }
      ],
      "release": "leap 16.0",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/openSUSE-SU-2026:21024-1",
      "fixed_version": "4.9-160000.3.1",
      "provider_source": "pypi",
      "provider_record_id": "OPENSUSE-SU-2026:21024-1",
      "provider_updated_at": "2026-06-30T18:24:37.091787230Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-160000.3.1"
            }
          ]
        }
      ],
      "release": "linux micro 6.2",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2026:22256-1",
      "fixed_version": "4.9-160000.3.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2026:22256-1",
      "provider_updated_at": "2026-06-30T18:24:26.452059683Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.7-1ubuntu0.1~esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "4.7-1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/USN-8229-2",
      "fixed_version": "4.7-1ubuntu0.1~esm1",
      "provider_source": "pypi",
      "provider_record_id": "USN-8229-2",
      "provider_updated_at": "2026-05-29T10:59:19.228985104Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.7-1ubuntu0.1~esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "4.7-1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-5958",
      "fixed_version": "4.7-1ubuntu0.1~esm1",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2026-5958",
      "provider_updated_at": "2026-05-29T10:59:18.893969563Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.8-1ubuntu2.1"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [
        "4.7-1ubuntu1",
        "4.7-1ubuntu2",
        "4.8-1ubuntu1",
        "4.8-1ubuntu2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-5958",
      "fixed_version": "4.8-1ubuntu2.1",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2026-5958",
      "provider_updated_at": "2026-05-29T10:59:18.893969563Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-2ubuntu0.24.04.1"
            }
          ]
        }
      ],
      "release": "24.04",
      "versions": [
        "4.9-1",
        "4.9-2",
        "4.9-2build1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-5958",
      "fixed_version": "4.9-2ubuntu0.24.04.1",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2026-5958",
      "provider_updated_at": "2026-05-29T10:59:18.893969563Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-2ubuntu0.25.10.1"
            }
          ]
        }
      ],
      "release": "25.10",
      "versions": [
        "4.9-2build1",
        "4.9-2build2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-5958",
      "fixed_version": "4.9-2ubuntu0.25.10.1",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2026-5958",
      "provider_updated_at": "2026-05-29T10:59:18.893969563Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-2ubuntu1"
            }
          ]
        }
      ],
      "release": "26.04",
      "versions": [
        "4.9-2build2",
        "4.9-2build3"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-5958",
      "fixed_version": "4.9-2ubuntu1",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2026-5958",
      "provider_updated_at": "2026-05-29T10:59:18.893969563Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.8-1ubuntu2.1"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [
        "4.7-1ubuntu1",
        "4.7-1ubuntu2",
        "4.8-1ubuntu1",
        "4.8-1ubuntu2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/USN-8229-1",
      "fixed_version": "4.8-1ubuntu2.1",
      "provider_source": "pypi",
      "provider_record_id": "USN-8229-1",
      "provider_updated_at": "2026-05-20T16:04:03.111048743Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-2ubuntu0.24.04.1"
            }
          ]
        }
      ],
      "release": "24.04",
      "versions": [
        "4.9-1",
        "4.9-2",
        "4.9-2build1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/USN-8229-1",
      "fixed_version": "4.9-2ubuntu0.24.04.1",
      "provider_source": "pypi",
      "provider_record_id": "USN-8229-1",
      "provider_updated_at": "2026-05-20T16:04:03.111048743Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-2ubuntu0.25.10.1"
            }
          ]
        }
      ],
      "release": "25.10",
      "versions": [
        "4.9-2build1",
        "4.9-2build2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/USN-8229-1",
      "fixed_version": "4.9-2ubuntu0.25.10.1",
      "provider_source": "pypi",
      "provider_record_id": "USN-8229-1",
      "provider_updated_at": "2026-05-20T16:04:03.111048743Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.9-2ubuntu1"
            }
          ]
        }
      ],
      "release": "26.04",
      "versions": [
        "4.9-2build2",
        "4.9-2build3"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/USN-8229-1",
      "fixed_version": "4.9-2ubuntu1",
      "provider_source": "pypi",
      "provider_record_id": "USN-8229-1",
      "provider_updated_at": "2026-05-20T16:04:03.111048743Z",
      "applicability_unknown": true
    },
    {
      "name": "sed",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.10-1.1"
            }
          ]
        }
      ],
      "release": "tumbleweed",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/openSUSE-SU-2026:10649-1",
      "fixed_version": "4.10-1.1",
      "provider_source": "pypi",
      "provider_record_id": "OPENSUSE-SU-2026:10649-1",
      "provider_updated_at": "2026-04-29T08:02:25.328263Z",
      "applicability_unknown": true
    }
  ]
}

[Debian bug #1134495]

OpenFactory catalog packages

La asociación de paquetes está en curso.

[Debian 12 (Bookworm)]

  • [sed]Desconocido
    Detalles (2)
    • 4.9-1+deb12u1 · amd64 · bookworm

      Corregida · Corregida: 4.9-1+deb12u1

      nvd · sed · debian · bookworm; nvd · sed · debian · 12

    • 4.9-1+deb12u1 · arm64 · bookworm

      Corregida · Corregida: 4.9-1+deb12u1

      nvd · sed · debian · bookworm; nvd · sed · debian · 12

[Debian 13 (Trixie)]

  • [sed]Desconocido
    Detalles (2)
    • 4.9-2+deb13u1 · amd64 · trixie

      Corregida · Corregida: 4.9-2+deb13u1

      nvd · sed · debian · 13

    • 4.9-2+deb13u1 · arm64 · trixie

      Corregida · Corregida: 4.9-2+deb13u1

      nvd · sed · debian · 13

[openSUSE Tumbleweed]

  • [sed]Desconocido

    Paquete fuente: [sed]

    Detalles (1)
    • 4.10-1.4 · x86_64 · tumbleweed

      Corregida · Corregida: 4.10-1.1

      nvd · sed · opensuse · tumbleweed

  • [sed-lang]Desconocido

    Paquete fuente: [sed]

    Detalles (1)
    • 4.10-1.4 · noarch · tumbleweed

      Desconocido · Corregida: 4.10-1.1

      Version impact unknown

      nvd · sed · opensuse · tumbleweed

Observado:

Referencias