CVE catalog

CVE-2025-5918

libarchive vulnerabilities

[CVE catalog]

A vulnerability has been identified in the libarchive library. This flaw can be triggered when file streams are piped into bsdtar, potentially allowing for reading past the end of the file. This out-of-bounds read can lead to unintended consequences, including unpredictable program behavior, memory corruption, or a denial-of-service condition.

Severity
Low · CVSS 3.9CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.38% · 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.

Version impact has not been established. The original provider fields are retained below.

Provider details and historical evidence
Original provider fields
{
  "package_releases": [
    {
      "name": "libarchive",
      "status": "fixed",
      "release": "sid",
      "version": "3.8.10-2"
    },
    {
      "name": "libarchive",
      "status": "fixed",
      "release": "forky",
      "version": "3.8.9-1"
    },
    {
      "name": "libarchive",
      "status": "fixed",
      "release": "trixie",
      "version": "3.7.4-4+deb13u1"
    },
    {
      "name": "libarchive",
      "status": "fixed",
      "release": "bookworm",
      "version": "3.6.2-1+deb12u4"
    },
    {
      "name": "libarchive",
      "status": "fixed",
      "release": "bookworm-security",
      "version": "3.6.2-1+deb12u5"
    }
  ],
  "fixed_versions": [
    {
      "bug": 1107624,
      "name": "libarchive",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "3.8.4-1"
    },
    {
      "bug": 1107624,
      "name": "libarchive",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "3.8.4-1"
    },
    {
      "bug": 1107624,
      "name": "libarchive",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "3.7.4-4+deb13u1"
    },
    {
      "bug": 1107624,
      "name": "libarchive",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "3.6.2-1+deb12u4"
    }
  ],
  "distribution_packages": [
    {
      "name": "libarchive",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "3.6.2-1+deb12u4"
    },
    {
      "name": "libarchive",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "3.7.2-2ubuntu0.6"
    },
    {
      "name": "libarchive-dev",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "3.7.2-2ubuntu0.6"
    },
    {
      "name": "libarchive-tools",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "3.7.2-2ubuntu0.6"
    },
    {
      "name": "libarchive13t64",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "3.7.2-2ubuntu0.6"
    },
    {
      "name": "libarchive",
      "ranges": [
        {
          "fixed": "3.8.0",
          "introduced": "",
          "last_affected": "",
          "start_excluding": ""
        }
      ],
      "ecosystem": "cpe",
      "fixed_version": "3.8.0",
      "provider_record_id": "NVD-CVE-2025-5918"
    },
    {
      "name": "openshift_container_platform",
      "ranges": [],
      "ecosystem": "cpe",
      "fixed_version": "",
      "provider_record_id": "NVD-CVE-2025-5918"
    },
    {
      "name": "enterprise_linux",
      "ranges": [],
      "ecosystem": "cpe",
      "fixed_version": "",
      "provider_record_id": "NVD-CVE-2025-5918"
    },
    {
      "name": "libarchive",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.4.0-2ubuntu1.5+esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "3.4.0-1",
        "3.4.0-1build1",
        "3.4.0-1ubuntu2",
        "3.4.0-2ubuntu1",
        "3.4.0-2ubuntu1.1",
        "3.4.0-2ubuntu1.2",
        "3.4.0-2ubuntu1.3",
        "3.4.0-2ubuntu1.4",
        "3.4.0-2ubuntu1.5"
      ],
      "ecosystem": "deb",
      "fixed_version": "3.4.0-2ubuntu1.5+esm1",
      "provider_record_id": "UBUNTU-CVE-2025-5918"
    },
    {
      "name": "libarchive",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.6.0-1ubuntu1.6"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [
        "3.4.3-2",
        "3.4.3-2build1",
        "3.5.2-1",
        "3.5.2-1ubuntu1",
        "3.6.0-1ubuntu1",
        "3.6.0-1ubuntu1.1",
        "3.6.0-1ubuntu1.2",
        "3.6.0-1ubuntu1.3",
        "3.6.0-1ubuntu1.4",
        "3.6.0-1ubuntu1.5"
      ],
      "ecosystem": "deb",
      "fixed_version": "3.6.0-1ubuntu1.6",
      "provider_record_id": "UBUNTU-CVE-2025-5918"
    },
    {
      "name": "libarchive",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.7.2-2ubuntu0.6"
            }
          ]
        }
      ],
      "release": "24.04",
      "versions": [
        "3.6.2-1ubuntu1",
        "3.7.2-1ubuntu1",
        "3.7.2-1ubuntu2",
        "3.7.2-1.1ubuntu2",
        "3.7.2-2",
        "3.7.2-2ubuntu0.1",
        "3.7.2-2ubuntu0.2",
        "3.7.2-2ubuntu0.3",
        "3.7.2-2ubuntu0.4",
        "3.7.2-2ubuntu0.5"
      ],
      "ecosystem": "deb",
      "fixed_version": "3.7.2-2ubuntu0.6",
      "provider_record_id": "UBUNTU-CVE-2025-5918"
    },
    {
      "name": "libarchive",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.7.7-0ubuntu3.1"
            }
          ]
        }
      ],
      "release": "25.10",
      "versions": [
        "3.7.7-0ubuntu2",
        "3.7.7-0ubuntu2.1",
        "3.7.7-0ubuntu2.2",
        "3.7.7-0ubuntu3"
      ],
      "ecosystem": "deb",
      "fixed_version": "3.7.7-0ubuntu3.1",
      "provider_record_id": "UBUNTU-CVE-2025-5918"
    }
  ]
}

[Debian bug #1107624]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libarchive13]Unknown

    Source package: [libarchive]

    Details (4)
    • 3.6.2-1+deb12u4 · amd64 · bookworm

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u4 · arm64 · bookworm

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

  • Source package: [libarchive]

    Details (4)
    • 3.6.2-1+deb12u4 · amd64 · bookworm

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u4 · arm64 · bookworm

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

  • Source package: [libarchive]

    Details (4)
    • 3.6.2-1+deb12u4 · amd64 · bookworm

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u4 · arm64 · bookworm

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 3.6.2-1+deb12u4

      usn · libarchive · debian · bookworm; usn · libarchive · debian · 12

[Debian 13 (Trixie)]

  • Source package: [libarchive]

    Details (2)
    • 3.7.4-4+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.7.4-4+deb13u1

      usn · libarchive · debian · 13

    • 3.7.4-4+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.7.4-4+deb13u1

      usn · libarchive · debian · 13

  • Source package: [libarchive]

    Details (2)
    • 3.7.4-4+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.7.4-4+deb13u1

      usn · libarchive · debian · 13

    • 3.7.4-4+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.7.4-4+deb13u1

      usn · libarchive · debian · 13

  • Source package: [libarchive]

    Details (2)
    • 3.7.4-4+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.7.4-4+deb13u1

      usn · libarchive · debian · 13

    • 3.7.4-4+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.7.4-4+deb13u1

      usn · libarchive · debian · 13

Observed:

References