CVE-2025-46822 Unauthenticated Arbitrary File Read via Absolute Path
Unauthenticated attackers can read sensitive internal files via absolute path traversal in this Java Spring Boot codebase.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-46822?
CVE-2025-46822 is a high-severity path traversal vulnerability in OsamaTaher Java-springboot-codebase, published on 21 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
OsamaTaher/Java-springboot-codebase is a collection of Java and Spring Boot code snippets, applications, and projects. Prior to commit c835c6f7799eacada4c0fc77e0816f250af01ad2, insufficient path traversal mechanisms make absolute path traversal possible. This vulnerability allows unauthorized access to sensitive internal files. Commit c835c6f7799eacada4c0fc77e0816f250af01ad2 contains a patch for the issue.
Weakness: CWE-36
Which versions are affected by CVE-2025-46822?
How do I fix CVE-2025-46822?
No fix has been published for CVE-2025-46822 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-46822 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46822 exists.
Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.
Sources
Also known as GHSA-q6mm-cm37-w637.