Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

srikanth-lingala/zip4j
master @ 7172166
5
Fixes
3
CVEs
HIGH
Peak severity
25.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
net.lingala.zip4j.crypto: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: Incomplete path canonicalization validation allows archive entries containing directory traversal sequences to escape the extraction destination directory, potentially overwriting critical host files. This is a recurring theme also represented in CVE-2018-1002202.
Use of Insufficiently Random Values: Generating cryptographic salts and initialization vectors using standard, predictable PRNGs (java.util.Random) instead of SecureRandom exposes encrypted archives to brute-force attacks and predictable key-derivation.
Cryptographic Issues: Flaws in parsing streams where pushed-back bytes are incorrectly included in MAC calculations can lead to incorrect validation of corrupted or modified files, contributing to broader integrity bypass surfaces (CVE-2023-22899).