Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2024-38816: Path Traversal in Spring WebMvc.fn and WebFlux.fn Static Resource Handling

Published Sep 13, 2024 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v3.1
EPSS21.3%98th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2024-38816CWE-22 · Improper Limitation of a Pathname…

CVE-2024-38816 is a path traversal vulnerability in Spring Framework functional web applications using WebMvc.fn or WebFlux.fn to serve static resources. The flaw applies where RouterFunctions-based resource handling is explicitly configured with a FileSystemResource location. Insufficient path validation permits crafted HTTP requests containing traversal sequences to resolve files outside the intended static-resource directory.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An unauthenticated attacker able to send requests to a vulnerable static-resource route can read arbitrary files accessible to the operating-system account running the Spring application. Exposure is bounded by that process's filesystem permissions, but may disclose application configuration, credentials, keys, source code, or other sensitive local data.

Mitigation

If you can’t patch tonight, do this now.

Until patching is complete, avoid explicitly configuring FileSystemResource locations for static-resource routes implemented through RouterFunctions. Deploy the Spring Security HTTP Firewall where applicable. Requests exploiting this condition are also blocked when the application is deployed on Tomcat or Jetty.

Remediation

Patch, then assume compromise.

Upgrade Spring Framework components to a vendor-fixed release. For the 6.1.x release line, upgrade spring-webmvc and/or spring-webflux to version 6.1.13 or later. Deploy the applicable supported patched release for other affected release lines, or migrate to a supported fixed line where no fix is available.

FAQ

Frequently asked questions

Is CVE-2024-38816 exploited in the wild?
As of Sep 26, 2026, Mallory has no reports of CVE-2024-38816 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2024-38816?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-38816, the earliest disclosed Sep 28, 2024.
Is there a patch for CVE-2024-38816?
Upgrade Spring Framework components to a vendor-fixed release. For the 6.1.x release line, upgrade spring-webmvc and/or spring-webflux to version 6.1.13 or later.
How severe is CVE-2024-38816?
CVE-2024-38816 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 21.3% (98th percentile) as of Sep 26, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.