Description
A null pointer dereference bug affects the 16.02 and many old versions of p7zip. A lack of null pointer check for the variable folders.PackPositions in function CInArchive::ReadAndDecodePackedStreams in CPP/7zip/Archive/7z/7zIn.cpp, as used in the 7z.so library and in 7z applications, will cause a crash and a denial of service when decoding malformed 7z files.
References (4)
Core 4
Core References
Third Party Advisory, VDB Entry vdb-entry
x_refsource_bid
http://www.securityfocus.com/bid/94294
Issue Tracking, Third Party Advisory x_refsource_misc
https://sourceforge.net/p/p7zip/bugs/185/
Exploit, Third Party Advisory x_refsource_misc
https://sourceforge.net/p/p7zip/discussion/383043/thread/648d34db/
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/yangke/7zip-null-pointer-dereference
Scores
CVSS v3
7.5
EPSS
0.0702
EPSS Percentile
93.4%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-476
Status
published
Products (1)
7-zip/p7zip
16.02
Published
Nov 12, 2016
Tracked Since
Feb 18, 2026