CVE-2025-5918

NameCVE-2025-5918
DescriptionA 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4368-1
Debian Bugs1107624

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libarchive (PTS)bullseye3.4.3-2+deb11u1vulnerable
bullseye (security)3.4.3-2+deb11u3fixed
bookworm3.6.2-1+deb12u3vulnerable
bookworm (security)3.6.2-1+deb12u2vulnerable
trixie3.7.4-4vulnerable
forky, sid3.8.5-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libarchivesourcebullseye3.4.3-2+deb11u3DLA-4368-1
libarchivesource(unstable)3.8.4-11107624

Notes

[trixie] - libarchive <no-dsa> (Minor issue)
[bookworm] - libarchive <no-dsa> (Minor issue)
https://github.com/libarchive/libarchive/pull/2584
Fixed by: https://github.com/libarchive/libarchive/commit/dcbf1e0ededa95849f098d154a25876ed5754bcf (v3.8.0)
Regression: https://github.com/libarchive/libarchive/issues/2641
Regression fixed by: https://github.com/libarchive/libarchive/commit/51b4c35bb38b7df4af24de7f103863dd79129b01
Regression fixed by: https://github.com/libarchive/libarchive/commit/0dc4f71fcbfde97eac10a2c23188f2dfc74d7a5e (v3.8.1)

Search for package or bug name: Reporting problems