Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Maven
Not in CISA KEV
HIGH severity

CVE-2024-38816 spring-webmvc

HIGH

CVE-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

Also known asGHSA-cx7f-g6mp-7hqm
Published
Sep 13, 2024
Updated
Apr 10, 2026
Affected
6 pkgs
Patched
2 / 6
Exploits
3 known
Exploitation data as of Sep 19, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

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

via FIRST.org ↗
14.7%probability of exploitation in next 30 days
Moderate Risk0.00%
Lower risk than most CVEs97th percentile — riskier than 97% of all scored CVEsHighest risk

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 376,715 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

6 pkgs affected
org.springframework:spring-webmvcorg.springframework:spring-webfluxorg.springframework:spring-webmvcorg.springframework:spring-webfluxorg.springframework:spring-webmvcorg.springframework:spring-webflux

Real-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:

Affected Packages

6 total 2 fixed
EcosystemPackageVulnerable rangeFix
Mavenorg.springframework:spring-webmvc6.1.0&&< 6.1.136.1.13org.springframework:spring-webmvc:6.1.13
Mavenorg.springframework:spring-webflux6.1.0&&< 6.1.136.1.13org.springframework:spring-webflux:6.1.13
Mavenorg.springframework:spring-webmvc6.0.0No fix
Mavenorg.springframework:spring-webflux6.0.0No fix
Mavenorg.springframework:spring-webmvc5.3.0No fix
Mavenorg.springframework:spring-webflux5.3.0No fix
Exploits & PoCs
3

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 dependency
  1. Detect

    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.

  2. 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.

  3. 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.

  4. 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.

Red HatImportant

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…

ProductFixed inAdvisory
HawtIO 4.0.0 for Red Hat build of Apache Camel 4spring-webmvcRHSA-2024:11023
Red Hat build of Apache Camel 4.4.3 for Spring Bootspring-webmvcRHSA-2024:8064

Frequently Asked Questions

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 rejecte
O3 Security · Impact-Aware SCA

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.

CVE-2024-38816: spring-webmvc (High 7.5) | O3 Security