Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-38816

HIGH 7.5EPSS 95%

CVE-2024-38816: Path traversal vulnerability in functional web frameworks

Also known as GHSA-cx7f-g6mp-7hqm

Mitigation

  • Upgrade org.springframework:spring-webmvc to 6.1.13 or later.
  • Upgrade org.springframework:spring-webflux to 6.1.13 or later.

Who should check

  • Projects that depend on Maven package org.springframework:spring-webmvc (>= 6.1.0, < 6.1.13)
  • Projects that depend on Maven package org.springframework:spring-webflux (>= 6.1.0, < 6.1.13)
  • Anyone running Spring >= 5.3.x, < 5.3.40; >= 6.0.x, < 6.0.24; >= 6.1.x, < 6.1.13

Vulnerability facts

Affected
org.springframework:spring-webmvc >= 6.1.0, < 6.1.13; org.springframework:spring-webflux >= 6.1.0, < 6.1.13
Fixed in
6.1.13
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
7.36% chance of exploitation in 30 days (percentile 95, 2026-11-26)
CWE
CWE-22
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Maven org.springframework:spring-webmvc>= 6.1.0, < 6.1.136.1.13osv
Maven org.springframework:spring-webflux>= 6.1.0, < 6.1.136.1.13osv
Spring>= 5.3.x, < 5.3.40; >= 6.0.x, < 6.0.24; >= 6.1.x, < 6.1.13—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-38816. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38816.md
Affected: org.springframework:spring-webmvc >= 6.1.0, < 6.1.13; org.springframework:spring-webflux >= 6.1.0, < 6.1.13
Fixed in: 6.1.13

Steps:
1. Search this machine and project for org.springframework:spring-webmvc (Maven), org.springframework:spring-webflux (Maven), Spring: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-38816 being exploited?

There is no confirmed exploitation: CVE-2024-38816 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 7.36% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-38816?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-38816?

org.springframework:spring-webmvc >= 6.1.0, < 6.1.13; org.springframework:spring-webflux >= 6.1.0, < 6.1.13.

Is there a fix for CVE-2024-38816?

Yes. Fixed in 6.1.13. Upgrade org.springframework:spring-webmvc to 6.1.13 or later. Upgrade org.springframework:spring-webflux to 6.1.13 or later.

How do I check if I'm affected by CVE-2024-38816?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors