An error in the lha_read_file_header_1() function (archive_read_support_format_lha.c) in libarchive 3.2.2 allows remote attackers to trigger
An error in the lha_read_file_header_1() function (archive_read_support_format_lha.c) in libarchive 3.2.2 allows remote attackers to trigger an out-of-bounds read memory access and subsequently cause a crash via a specially crafted archive.
- Published
- Jan 27, 2017
- Updated
- Jun 16, 2026
- EPSS
- 4.5% · 91th percentile
- CWE
- CWE-125
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 4.5%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| libarchive | libarchive | cpe:2.3:a:libarchive:libarchive |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- libarchive libarchive3.2.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.4 | libarchive | before 3.2.2-r0 | 3.2.2-r0 |
| Alpine:v3.5 | libarchive | before 3.2.2-r1 | 3.2.2-r1 |
| Debian:12 | libarchive | before 3.2.1-6 | 3.2.1-6 |
| Debian:7 | libarchive | before 3.0.4-3+wheezy5+deb7u1 | 3.0.4-3+wheezy5+deb7u1 |
| Debian:8 | libarchive | before 3.1.2-11+deb8u4 | 3.1.2-11+deb8u4 |
| openSUSE:Leap 15.3 | libarchive | before 3.4.2-150200.4.3.1 | 3.4.2-150200.4.3.1 |
| openSUSE:Tumbleweed | bsdtar | before 3.7.2-1.1 | 3.7.2-1.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | libarchive | before 3.4.2-150200.4.3.1 | 3.4.2-150200.4.3.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP4 | libarchive | before 3.5.1-150400.3.3.1 | 3.5.1-150400.3.3.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP4 | libarchive | before 3.5.1-150400.3.3.1 | 3.5.1-150400.3.3.1 |
Same product
libarchive: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-26256Libarchive Remote Code Execution Vulnerability56Plan
- CVE-2022-36227In libarchive before 3.6.2, the software does not check for an error after calling calloc function that can return with a NULL pointer if th40Plan
- CVE-2016-1541Heap-based buffer overflow in the zip_read_mac_metadata function in archive_read_support_format_zip.c in libarchive before 3.2.0 allows remo38Monitor
- CVE-2024-37407Libarchive before 3.7.4 allows name out-of-bounds access when a ZIP archive has an empty-name file and mac-ext is enabled.36Monitor
- CVE-2020-9308archive_read_support_format_rar5.c in libarchive before 3.4.2 attempts to unpack a RAR5 file with an invalid or corrupted header (such as a 36Monitor
- CVE-2018-1000878libarchive version commit 416694915449219d505531b1096384f3237dd6cc onwards (release v3.1.0 onwards) contains a CWE-416: Use After Free vulne36Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:libarchive | 3.2.2-r0 · Alpine:v3.4 | Package registry (OSV) |
| debian:libarchive | 3.2.1-6 · Debian:12 | Package registry (OSV) |
| opensuse:bsdtar | 3.7.2-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:libarchive | 3.5.1-150400.3.3.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| suse:libarchive | 3.4.2-150200.4.3.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
| suse:libarchive | 3.5.1-150400.3.3.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP4 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-125 · Out-of-bounds ReadCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.securityfocus.com/bid/95837
- www.securitytracker.com/id/1037974
- github.com/libarchive/libarchive/commit/98dcbbf0bf4854bf987557e55e55fff7abbf3ea9
- lists.debian.org/debian-lts-announce/2018/11/msg00037.html
- secunia.com/secunia_research/2017-3/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.