Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Medium

Out-of-bounds Read in libarchive bsdtar stream processing

IdentifiersCVE-2025-5918CWE-125· Out-of-bounds Read

CVE-2025-5918 is a vulnerability in the libarchive library affecting bsdtar when processing file streams piped into it. According to the provided content, the flaw can be triggered when streamed input is supplied to bsdtar, causing the program to read past the end of the file or input buffer. This is an out-of-bounds read condition in libarchive’s archive-processing path for piped streams. The resulting invalid memory access can produce unpredictable behavior and, as noted in the supporting content, may also manifest as memory corruption or application instability.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can cause denial of service through process crashes or abnormal termination while bsdtar processes crafted streamed input. Because the flaw involves reading beyond the end of the file/input, it may also lead to unpredictable program behavior and unintended memory exposure from adjacent memory regions. The supplied content also notes possible memory corruption effects, so impact may extend beyond a simple crash depending on runtime conditions and the affected build/environment.

Mitigation

If you can’t patch tonight, do this now.

Until patches are applied, avoid passing untrusted or attacker-controlled piped file streams into bsdtar/libarchive-based workflows. Restrict exposure of automated archive-processing pipelines, especially services or scripts that accept streamed archive content from remote or low-trust sources. Where possible, validate input sources, isolate archive processing in sandboxes or constrained containers, and use process supervision/resource limits to reduce denial-of-service impact from crashes.

Remediation

Patch, then assume compromise.

Update libarchive to a vendor-fixed version once available from the operating system or upstream package maintainer. For Apple platforms, apply the relevant security updates that include the libarchive fix, as the provided content states Apple addressed CVE-2025-5918 in its affected products. If libarchive is bundled in an application or appliance, rebuild or redeploy against the patched library version.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LibarchiveLibarchiveapplication
Red HatEnterprise Linuxoperating_system
Red HatOpenshift Container Platformapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity3

Community discussion across Reddit, Mastodon, and other social sources.