Skip to main content
Public proof of conceptFix available

CVE-2024-38816

A public proof of concept exists; no exploitation attested.

  • Published2024-09-13
  • Fixed in6.1.13 · 6.0.24 · 5.3.40
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2024-09-1306:15CVE publishedNVD

Versions per branch

CISA-ADP · OSV
Spring by vmware tanzu spring framework
BranchAffectedFixed in
6.1≥ 6.1.0, < 6.1.136.1.13
6.0≥ 6.0.0, < 6.0.246.0.24
5.3≥ 5.3.0, < 5.3.405.3.40
5.3≥ 5.3.0, ≤ 5.3.39no fix published
6.0≥ 6.0.0, ≤ 6.0.23no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As vmware, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Springother versions: affected

    package Spring Framework

    Affected
    • ≥ 5.3.x, < 5.3.40fixed in 5.3.40enterprise Support Only
    • ≥ 6.0.x, < 6.0.24fixed in 6.0.24enterprise Support Only
    • ≥ 6.1.x, < 6.1.13fixed in 6.1.13OSS

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-09-13

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • activemqCleanStartall versions · fixed in 5.19.8-r3
  • io.root.org.springframework:spring-webfluxRoot:Mavenall versions · fixed in 6.0.11-root.io.2
  • io.root.org.springframework:spring-webfluxRoot:Mavenall versions · fixed in 6.0.11-root.io.6
  • io.root.org.springframework:spring-webfluxRoot:Mavenall versions · fixed in 6.0.11-root.io.7
  • io.root.org.springframework:spring-webmvcRoot:Mavenall versions · fixed in 6.1.1-root.io.1and 1 other package
  • io.root.org.springframework:spring-webmvcRoot:Mavenall versions · fixed in 6.1.1-root.io.2and 1 other package
  • io.root.org.springframework:spring-webmvcRoot:Mavenall versions · fixed in 6.1.1-root.io.3and 1 other package
  • io.root.org.springframework:spring-webmvcRoot:Mavenall versions · fixed in 6.1.1-root.io.4and 1 other package

148 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-38816 Red Hat Product Security2 products fixed · 7 known affected

    spring-webmvc: Path Traversal Vulnerability in Spring Applications Using RouterFunctions and FileSystemResource

    spring-webmvc as a component of A-MQ Clients 2 · spring-webmvc as a component of Red Hat AMQ Broker 7 · spring-webmvc as a component of Red Hat build of Apache Camel for Spring Boot 3 · +4 more

  • RHSA-2024:11023 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: HawtIO 4.1.0 for Red Hat build of Apache Camel 4 Release and security update.

  • RHSA-2024:8064 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Build of Apache Camel 4.4.3 for Spring Boot security update.

Full record on NVD

Fix

  1. Update Spring by vmware tanzu spring framework to 6.1.13 · 6.0.24 · 5.3.40
  2. Vendor fix Red Hat Product Security RHSA-2024:11023 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Workaround from the vendor Red Hat Product Security RHSA-2024:11023 · 1 productMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  4. No fix planned, says the vendor Red Hat Product Security CVE-2024-38816 · 7 productsWill not fix

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2024-09-13
Last Modified
2026-06-17
NVD status
Deferred
GitHub Advisory
GHSA-cx7f-g6mp-7hqm

Frequently asked questions

What is CVE-2024-38816?

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

Is CVE-2024-38816 actively exploited?

Active exploitation of CVE-2024-38816 has not been confirmed. Its EPSS score was 21.3% on 2026-11-17, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-38816?

CVE-2024-38816 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running spring-webmvc? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record