CVE-2025-5914

Libarchive: double free at archive_read_format_rar_seek_data() in archive_read_support_format_rar.c

7.8 high EPSS 0.49%

Published 9 Jun 2025 Updated 6 Nov 2026 CNA: redhat

Check your servers for CVE-2025-5914

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-5914 affects libarchive, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

A vulnerability has been identified in the libarchive library, specifically within the archive_read_format_rar_seek_data() function. This flaw involves an integer overflow that can ultimately lead to a double-free condition. Exploiting a double-free vulnerability can result in memory corruption, enabling an attacker to execute arbitrary code or cause a denial-of-service condition.

Severity (CVSS)

7.8 high CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
required: a user has to do something, such as open a link or a file
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.49%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 43.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Jun 2025):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-190 Integer Overflow or Wraparound

Affected products

As the CNA lists them.

ProductVersions
libarchive
package libarchive
affected before 3.8.0
Other versions: unaffected
Red Hat Enterprise Linux 10
package libarchive
unaffected 0:3.7.7-4.el10_0 and later
Other versions: affected
Red Hat Enterprise Linux 7 Extended Lifecycle Support
package libarchive
unaffected 0:3.1.2-14.el7_9.1 and later
Other versions: affected
Red Hat Enterprise Linux 8
package libarchive
unaffected 0:3.3.3-6.el8_10 and later
Other versions: affected
Red Hat Enterprise Linux 8.2 Advanced Update Support
package libarchive
unaffected 0:3.3.2-8.el8_2.1 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
package libarchive
unaffected 0:3.3.3-1.el8_4.1 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
package libarchive
unaffected 0:3.3.3-1.el8_4.1 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
package libarchive
unaffected 0:3.3.3-6.el8_6 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
package libarchive
unaffected 0:3.3.3-6.el8_6 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
package libarchive
unaffected 0:3.3.3-6.el8_6 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Telecommunications Update Service
package libarchive
unaffected 0:3.3.3-5.el8_8.1 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
package libarchive
unaffected 0:3.3.3-5.el8_8.1 and later
Other versions: affected
Red Hat Enterprise Linux 9
package libarchive
unaffected 0:3.5.3-6.el9_6 and later
Other versions: affected
Red Hat Enterprise Linux 9
package libarchive
unaffected 0:3.5.3-6.el9_6 and later
Other versions: affected
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package libarchive
unaffected 0:3.5.3-2.el9_0.1 and later
Other versions: affected
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
package libarchive
unaffected 0:3.5.3-5.el9_2 and later
Other versions: affected
Red Hat Enterprise Linux 9.4 Extended Update Support
package libarchive
unaffected 0:3.5.3-4.el9_4.1 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.14
package openshift/ose-rhel-coreos-9
unaffected 414.92.202510211419-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.15
package openshift/ose-rhel-coreos-9
unaffected 415.92.202601271320-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.16
package openshift/ose-rhel-coreos-9
unaffected 416.94.202601071926-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.17
package openshift/ose-rhel-coreos-9
unaffected 417.94.202510112152-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package openshift/ose-rhel-coreos-9
unaffected 418.94.202510230424-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.19
package openshift/ose-rhel-coreos-9
unaffected 4.19.9.6.202510140714-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.20
package openshift/ose-rhel-coreos-9
unaffected 4.20.9.6.202509251656-0 and later
Other versions: affected
Red Hat Web Terminal 1.11 on RHEL 9
package web-terminal/web-terminal-rhel9-operator
unaffected 1.11-19 and later
Other versions: affected
Red Hat Web Terminal 1.11 on RHEL 9
package web-terminal/web-terminal-tooling-rhel9
unaffected 1.11-8 and later
Other versions: affected
Red Hat Web Terminal 1.12 on RHEL 9
package web-terminal/web-terminal-tooling-rhel9
unaffected 1.12-4 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-data-index-ephemeral-rhel8
unaffected 1.36.0-11 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-data-index-postgresql-rhel8
unaffected 1.36.0-11 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-db-migrator-tool-rhel8
unaffected 1.36.0-11 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-jobs-service-ephemeral-rhel8
unaffected 1.36.0-10 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-jobs-service-postgresql-rhel8
unaffected 1.36.0-10 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-kn-workflow-cli-artifacts-rhel8
unaffected 1.36.0-4 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-management-console-rhel8
unaffected 1.36.0-9 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-operator-bundle
unaffected 1.36.0-12 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-rhel8-operator
unaffected 1.36.0-18 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-swf-builder-rhel8
unaffected 1.36.0-11 and later
Other versions: affected
RHOSS-1.36-RHEL-8
package openshift-serverless-1/logic-swf-devmode-rhel8
unaffected 1.36.0-7 and later
Other versions: affected
cert-manager operator for Red Hat OpenShift 1.16
package cert-manager/jetstack-cert-manager-rhel9
unaffected v1.16.5-1760515757 and later
Other versions: affected
OpenShift Compliance Operator 1
package compliance/openshift-compliance-must-gather-rhel8
unaffected 1.8.0 and later
Other versions: affected
OpenShift Compliance Operator 1
package compliance/openshift-compliance-openscap-rhel8
unaffected 1.8.0 and later
Other versions: affected
OpenShift Compliance Operator 1
package compliance/openshift-compliance-rhel8-operator
unaffected 1.8.0 and later
Other versions: affected
OpenShift File Integrity Operator - FIO 1
package compliance/openshift-file-integrity-rhel8-operator
unaffected v1.3 and later
Other versions: affected
Red Hat Discovery 2
package discovery/discovery-server-rhel9
unaffected 2.2.1-1758555934 and later
Other versions: affected
Red Hat Insights proxy 1.5
package insights-proxy/insights-proxy-container-rhel9
unaffected 1.5.6-1756187445 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-agent-rhel8
unaffected rhosdt-3.5-1756116455 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-all-in-one-rhel8
unaffected rhosdt-3.5-1756116482 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-collector-rhel8
unaffected rhosdt-3.5-1756116441 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-es-index-cleaner-rhel8
unaffected rhosdt-3.5-1756116449 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-es-rollover-rhel8
unaffected rhosdt-3.5-1756116439 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-ingester-rhel8
unaffected rhosdt-3.5-1756116447 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-operator-bundle
unaffected rhosdt-3.5-1756128595 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-query-rhel8
unaffected rhosdt-3.5-1756125872 and later
Other versions: affected
Red Hat OpenShift distributed tracing 3.5.3
package rhosdt/jaeger-rhel8-operator
unaffected rhosdt-3.5-1756116445 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.10
package openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9
unaffected 1.10.2-1757422110 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.10
package openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9
unaffected 1.10.2-1757421846 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.10
package openshift-sandboxed-containers/osc-monitor-rhel9
unaffected 1.10.2-1757421804 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.10
package openshift-sandboxed-containers/osc-must-gather-rhel9
unaffected 1.10.2-1757422070 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.10
package openshift-sandboxed-containers/osc-podvm-builder-rhel9
unaffected 1.10.2-1757421879 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.10
package openshift-sandboxed-containers/osc-podvm-payload-rhel9
unaffected 1.10.2-1757422401 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.10
package openshift-sandboxed-containers/osc-rhel9-operator
unaffected 1.10.2-1757421890 and later
Other versions: affected
Red Hat Enterprise Linux 6
package libarchive
unknown the record does not list versions
Red Hat OpenShift Container Platform 4
package openshift/ose-rhel-coreos-8
unaffected the record does not list versions

Is my server affected?

Find the installed version of libarchive and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i libarchive
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-5914 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-5914

RHEL, Rocky, Alma, Fedora

rpm -q libarchive
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-5914

Alpine

apk list --installed | grep -i libarchive

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-5914
trivy image --scanners vuln IMAGE | grep CVE-2025-5914

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

18 more

Exploits and proof of concept

Other references

Source: the record CVE-2025-5914 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.