Bug 2292307 (CVE-2024-37407)

Summary: CVE-2024-37407 libarchive: Out of bounds access in slurp_central_directory at archive_read_support_format_zip.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: agarcial, aoconnor, aprice, asegurap, bdettelb, caswilli, dfreiber, dkuc, drow, fjansen, hkataria, jburrell, jmitchel, jsamir, jsherril, jtanner, kaycoth, kholdawa, kshier, ljavorsk, luizcosta, mpierce, nweather, oezr, orabin, psegedy, stcannon, sthirugn, vkrizan, vkumar, vmugicag, xiaoxwan, yguenane, zzhou
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libarchive 3.7.4 Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds access flaw was found in libarchive in the slurp_central_directory function at archive_read_support_format_zip.c. This vulnerability may be triggered if a ZIP archive has an empty name and the mac-ext is enabled.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2292309, 2292308, 2292310    
Bug Blocks: 2292316    

Description Pedro Sampaio 2024-06-14 02:40:09 UTC
Libarchive before 3.7.4 allows name out-of-bounds access when a ZIP archive has an empty-name file and mac-ext is enabled. This occurs in slurp_central_directory in archive_read_support_format_zip.c.

References:

https://github.com/libarchive/libarchive/commit/b6a979481b7d77c12fa17bbed94576b63bbcb0c0
https://github.com/libarchive/libarchive/pull/2145
https://github.com/libarchive/libarchive/releases/tag/v3.7.4

Comment 1 Pedro Sampaio 2024-06-14 02:40:23 UTC
Created libarchive tracking bugs for this issue:

Affects: fedora-all [bug 2292308]

Comment 2 Pedro Sampaio 2024-06-14 02:48:31 UTC
Created cmake3 tracking bugs for this issue:

Affects: epel-all [bug 2292309]


Created mingw-libarchive tracking bugs for this issue:

Affects: fedora-all [bug 2292310]