The NtfsHandler.cpp NTFS handler in 7-Zip before 24.01 (for 7zz) contains a heap-based buffer overflow that allows an attacker to overwrite two bytes at multiple offsets beyond the allocated buffer size: buffer+512*i-2, for i=9, i=10, i=11, etc.
https://www.openwall.com/lists/oss-security/2024/07/03/10
https://sourceforge.net/p/sevenzip/bugs/2402/
https://dfir.ru/2024/06/19/vulnerabilities-in-7-zip-and-ntfs3/