cve.bz

CVE-2024-48958 libarchive libarchive: Out-of-bounds Read

7.8 highExploit referenceEPSS 0.6%Fix available

High (7.8) in libarchive libarchive. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
execute_filter_delta in archive_read_support_format_rar.c in libarchive before 3.7.5 allows out-of-bounds access via a crafted archive file because src can move beyond dst.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-10-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-48958 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-48958?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-48958?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-48958 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libarchive:libarchivefrom 3.6.0 before 3.7.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libarchive3.6.2-1+deb12u1DEBIAN-CVE-2024-48958
Debian13, 14libarchive3.7.2-2.1DEBIAN-CVE-2024-48958
Ubuntu20.04:LTSlibarchive3.4.0-2ubuntu1.3USN-7070-1
Ubuntu22.04:LTSlibarchive3.6.0-1ubuntu1.2UBUNTU-CVE-2024-48958 USN-7070-1
Ubuntu24.04:LTSlibarchive3.7.2-2ubuntu0.2UBUNTU-CVE-2024-48958 USN-7070-1
UbuntuPro:14.04:LTSlibarchive3.1.2-7ubuntu2.8+esm3USN-7070-1
UbuntuPro:16.04:LTSlibarchive3.1.2-11ubuntu0.16.04.8+esm1USN-7070-1
UbuntuPro:18.04:LTSlibarchive3.2.2-3.1ubuntu0.7+esm1USN-7070-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Development Tools 15 SP6libarchive3.7.2-150600.3.9.1SUSE-SU-2024:3940-1
SUSELinux Micro 6.0libarchive3.6.2-4.1SUSE-SU-2025:20087-1
SUSELinux Micro 6.1libarchive3.7.4-slfo.1.1_2.1SUSE-SU-2025:20257-1
openSUSELeap 15.6libarchive3.7.2-150600.3.9.1SUSE-SU-2024:3940-1
Alpinev3.21, v3.22, v3.23 and 1 morelibarchive3.7.5-r0ALPINE-CVE-2024-48958
Azure Linux2libarchive3.6.1-4AZL-50310
Azure Linux3libarchive3.7.7-1AZL-50305
Alpaquita23, streamlibarchive3.7.5-r0BELL-CVE-2024-48958

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The libarchive library as shipped in Red Hat Enterprise Linux 6, 7, 8, 9 and Red Hat OpenShift Container Platform 4 is not affected by this vulnerability because the vulnerable code was introduced in a newer version of libarchive.

Red Hat's mitigation

Do not process untrusted files with the libarchive library.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libarchiveNot affected
Red Hat Enterprise Linux 6libarchiveNot affected
Red Hat Enterprise Linux 7libarchiveNot affected
Red Hat Enterprise Linux 8libarchiveNot affected
Red Hat Enterprise Linux 9libarchiveNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-48958.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON