cve.bz

CVE-2024-38816 spring spring: Path traversal

7.5 highEPSS 21%Fix available

High (7.5) in spring spring. EPSS 21% estimated probability of exploitation activity in the next 30 days. Fixed in org.springframework:spring-webmvc 6.1.13.

On this page
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

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
21% (unchanged from 21% a week ago; 15% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-09-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • org.springframework:spring-webmvc (Maven): fixed in 6.1.13
  • org.springframework:spring-webflux (Maven): fixed in 6.1.13

Ask an AI about this CVE

Show the promptExplain CVE-2024-38816 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-38816?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-38816?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-38816 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Springfrom 5.3.x before 5.3.40
Springfrom 6.0.x before 6.0.24
Springfrom 6.1.x before 6.1.13

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cx7f-g6mp-7hqmMavenorg.springframework:spring-webmvc>=6.1.0 <6.1.136.1.13
GHSA-cx7f-g6mp-7hqmMavenorg.springframework:spring-webflux>=6.1.0 <6.1.136.1.13
GHSA-cx7f-g6mp-7hqmMavenorg.springframework:spring-webmvc>=6.0.0 <=6.0.23no fix published
GHSA-cx7f-g6mp-7hqmMavenorg.springframework:spring-webflux>=6.0.0 <=6.0.23no fix published
GHSA-cx7f-g6mp-7hqmMavenorg.springframework:spring-webmvc>=5.3.0 <=5.3.39no fix published
GHSA-cx7f-g6mp-7hqmMavenorg.springframework:spring-webflux>=5.3.0 <=5.3.39no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libspring-javano fix listedDEBIAN-CVE-2024-38816
Ubuntu25.10, 26.04:LTS, 26.10 and 6 morelibspring-javano fix listedUBUNTU-CVE-2024-38816

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

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 sensitive data, such as configuration files, environment variables, or authentication credentials. If exploited, it can further facilitate privilege escalation, lateral movement, or remote code execution within the system. Given the broad access it grants to the server's filesystem, the potential for system compromise makes path traversal vulnerabilities a high-severity issue.

Red Hat's mitigation

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

ProductPackageStateAdvisory
HawtIO 4.0.0 for Red Hat build of Apache Camel 4spring-webmvcFixed 2024-12-12RHSA-2024:11023
Red Hat build of Apache Camel 4.4.3 for Spring Bootspring-webmvcFixed 2024-10-14RHSA-2024:8064
A-MQ Clients 2spring-webmvcWill not fix
Red Hat AMQ Broker 7spring-webmvcWill not fix
Red Hat build of Apache Camel for Spring Boot 3spring-webmvcWill not fix
Red Hat build of Apache Camel - HawtIO 4spring-webmvcAffected
Red Hat Build of Keycloakspring-webmvcNot affected
Red Hat build of OptaPlanner 8spring-webmvcWill not fix
Red Hat build of Quarkusspring-webmvcNot affected
Red Hat Data Grid 8spring-webmvcNot affected
Red Hat Fuse 7spring-webmvcWill not fix
Red Hat Integration Camel K 1spring-webmvcWill not fix
Red Hat JBoss Data Grid 7spring-webmvcNot affected
Red Hat JBoss Enterprise Application Platform 7spring-webmvcNot affected
Red Hat JBoss Enterprise Application Platform 8spring-webmvcNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packspring-webmvcNot affected
Red Hat Process Automation 7spring-webmvcWill not fix
Red Hat Single Sign-On 7spring-webmvcNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-38816.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template WebMvc.fn/WebFlux.fn - Path Traversal
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Spring Framework FileSystemResource Path Traversal (CVE-2024-38816) sid 2056315

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON