vetkit.java.path-traversal.zip-slip
An archive entry name is used as an output path without checking that it stays inside the target directory (zip slip).
Last updated:
Suite: Security
java
An archive entry name is used as an output path without checking that it stays inside the target directory (zip slip).
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Normalize the destination (dest.resolve(entry.getName()).normalize()) and refuse the entry unless the result still starts with the destination directory.
References
Source: packages/engine/rules/sast/java.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.