CVE-2025-70952: Path Traversal String Startswith Bypass
Using `String.startsWith()` to check if a file path is safely contained within a directory is vulnerable to a partial path match bypass. For example, checking if `/tmp/dir_evil` startsWith `/tmp/dir` returns true, bypassing validation and potentially leading to path traversal (Zip Slip) attacks. Use the `java.nio.file.Path.startsWith()` method instead, which
greprules fetch cve-2025-70952-path-traversal-string-startswith-bypass --engine opengrepDescription
Using `String.startsWith()` to check if a file path is safely contained within a directory is vulnerable to a partial path match bypass. For example, checking if `/tmp/dir_evil` startsWith `/tmp/dir` returns true, bypassing validation and potentially leading to path traversal (Zip Slip) attacks. Use the `java.nio.file.Path.startsWith()` method instead, which
Community feedback
0 rule-level signals from signed-in users.
- Useful reports
- 0
- Context false positives
- 0
- Metadata suggestions
- 0
Contextual precision
Aggregated from approved scan feedback. False-positive reports describe observed scan contexts, not a global rule verdict.
- Findings observed
- 2
- Projects
- 1
- Reporters
- 1
Precision details are collecting more signed-in reports before verdict counts or ratios are emphasized.
No approved finding verdicts yet.
No scan diagnostics reported yet.