JLSEC-2026-2277: libarchive 3.8.x before 3.8.2 has a strcpy heap-based buffer overflow in the gzip writer via the...
libarchive 3.8.x before 3.8.2 has a strcpy heap-based buffer overflow in the gzip writer via the original-filename field to archivecompressorgzipopen in archivewriteaddfiltergzip.c, aka GHSA-92wx-p669-8gr9. This relates to bsdtar. Exploitation envisions a marginally plausible scenario in which original-filename is obtained from an untrusted party. (original-filename is not derived from the input data.)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/LibArchive_jllto a version that resolves this vulnerability.Fixed in 3.8.2+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What conditions are required for exploitation?
An application must use the gzip writer and pass an attacker-controlled original-filename value to archive_compressor_gzip_open. The filename is not taken from archive input data, so processing a malicious archive alone does not trigger this issue; user interaction is also required by the supplied vector.
Are installations using the default bsdtar workflow likely affected?
The described scenario is considered only marginally plausible because exploitation requires original-filename to be obtained from an untrusted party. The data specifically relates the issue to bsdtar, but does not establish that a default configuration supplies an untrusted original-filename.
How can I determine whether my deployment is exposed?
Check whether the installed libarchive version is in the 3.8.x series before 3.8.2, and review callers that create gzip output. Exposure depends on whether those callers allow an untrusted party to control the original-filename argument.
What can be done before updating?
Do not pass untrusted values as the gzip original-filename. Restrict that field to trusted, validated filenames or omit it where possible.