CVE-2025-46822 Details
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.
A path traversal vulnerability has been identified in OsamaTaher/Java-springboot-codebase, prior to commit c835c6f7799eacada4c0fc77e0816f250af01ad2. The issue arises from inadequate path traversal protections, which allow absolute path traversal and unauthorized access to sensitive internal files. The vulnerability is present in the 'FileSystemStorageService' component, specifically within the 'loadAsResource' method, where file names are not properly validated before being resolved. This flaw enables access to files outside the intended directory, based on the 'files.store.root' configuration in 'application-dev.properties'. Additionally, the vulnerable endpoint '/api/v1/files/{fileName}' lacks authentication, allowing any user to read files from the server.
Users can update to the latest commit in the OsamaTaher/Java-springboot-codebase repository, which includes a patch for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 21, 2025CISA-ADP
Assessed May 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/OsamaTaher/Java-springboot-codebase/security/advisories/GHSA-q6mm-cm37-w637 | CISA-ADP | AdvisoryExploitTechnical DescriptionVendor |
| https://github.com/OsamaTaher/Java-springboot-codebase/commit/c835c6f7799eacada4c0fc77e0816f250af01ad2 | [email protected] | Source CodeVendor |
| https://github.com/OsamaTaher/Java-springboot-codebase/security/advisories/GHSA-q6mm-cm37-w637 | [email protected] | AdvisoryExploitTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-36 | Absolute Path Traversal | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| OsamaTaher/Java-springboot-codebase | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 21, 2025 | CVE Modified | CISA-ADP |
| May 21, 2025 | New CVE Received | [email protected] |
Volerion