CVE-2024-38816 — spring-webmvc
HIGHCVE-2024-38816 is a high-severity (CVSS 7.5) Path Traversal vulnerability in org.springframework:spring-webmvc. 3 public exploit references exist, so weaponization risk is real. A fix is available for org.springframework:spring-webmvc — see the affected versions and patch details below.
Path traversal vulnerability in functional web frameworks
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-38816.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
CVE-2024-38816 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 377,166 CVEs with a current EPSS score, this one falls in the 10–50% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
org.springframework:spring-webmvc☕org.springframework:spring-webflux☕org.springframework:spring-webmvc☕org.springframework:spring-webflux☕org.springframework:spring-webmvc☕org.springframework:spring-webfluxReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal attacks. An attacker can craft malicious HTTP requests and obtain any file on the file system that is also accessible to the process in which the Spring application is running.
Specifically, an application is vulnerable when both of the following are true:
- the web application uses RouterFunctions to serve static resources
- resource handling is explicitly configured with a FileSystemResource location
However, malicious requests are blocked and rejected when any of the following is true:
- the Spring Security HTTP Firewall https://docs.spring.io/spring-security/reference/servlet/exploits/firewall.html is in use
- the application runs on Tomcat or Jetty
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework:spring-webmvc | ≥ 6.1.0&&< 6.1.13 | 6.1.13org.springframework:spring-webmvc:6.1.13 |
| ☕Maven | org.springframework:spring-webflux | ≥ 6.1.0&&< 6.1.13 | 6.1.13org.springframework:spring-webflux:6.1.13 |
| ☕Maven | org.springframework:spring-webmvc | ≥ 6.0.0 | No fix |
| ☕Maven | org.springframework:spring-webflux | ≥ 6.0.0 | No fix |
| ☕Maven | org.springframework:spring-webmvc | ≥ 5.3.0 | No fix |
| ☕Maven | org.springframework:spring-webflux | ≥ 5.3.0 | No fix |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework:spring-webmvc, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework:spring-webmvc to 6.1.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-38816 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2024-38816 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2024-38816. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
How to detect CVE-2024-38816
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2024-38816 -u https://target- Template
- WebMvc.fn/WebFlux.fn - Path Traversal
- Severity
- high
- Impact
- Unauthenticated attackers can exploit path traversal to read any file accessible to the Spring application process, potentially exposing sensitive configuration files, credentials, and application data.
- Remediation
- Upgrade to Spring Framework versions that address this path traversal vulnerability or disable static resource serving through functional web frameworks.
Template by ProjectDiscovery nuclei-templates (pussycat0x), MIT licensed. View the full template. Scan only systems you are authorised to test.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Path traversal vulnerabilities in applications that serve static resources via RouterFunctions and FileSystemResource pose a important security risk, as they allow attackers to bypass access controls and retrieve arbitrary files from the server's filesystem. This type of attack can lead to unauthorized exposure of…
| Product | Fixed in | Advisory |
|---|---|---|
| HawtIO 4.0.0 for Red Hat build of Apache Camel 4 | spring-webmvc | RHSA-2024:11023 |
| Red Hat build of Apache Camel 4.4.3 for Spring Boot | spring-webmvc | RHSA-2024:8064 |
Frequently Asked Questions
Is CVE-2024-38816 in your dependencies?
O3 Security finds CVE-2024-38816 across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.