CVE-2026-40318: Go Path Traversal Arbitrary File Delete Via Filepath Join
A filesystem path is built in a single `filepath.Join` rooted at the user data directory (`util.DataDir`) and concatenated with a user-controllable string parameter (`$ID + $EXT`), then passed to a deletion primitive (`filelock.RemoveWithoutFatal`, `filelock.Remove`, `os.Remove`, `os.RemoveAll`) without verifying that the resolved path stays inside the inten
greprules fetch cve-2026-40318-go-path-traversal-arbitrary-file-delete-via-filepath-join --engine opengrepDescription
A filesystem path is built in a single `filepath.Join` rooted at the user data directory (`util.DataDir`) and concatenated with a user-controllable string parameter (`$ID + $EXT`), then passed to a deletion primitive (`filelock.RemoveWithoutFatal`, `filelock.Remove`, `os.Remove`, `os.RemoveAll`) without verifying that the resolved path stays inside the inten
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
- 0
- Projects
- 0
- Reporters
- 0
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.