CVE-2025-41242
Apache Log4j vulnerability analysis and mitigation

Overview

Spring Framework MVC applications were found to be vulnerable to a Path Traversal Vulnerability (CVE-2025-41242) when deployed on non-compliant Servlet containers. The vulnerability was disclosed on August 14, 2025, affecting Spring Framework versions 6.2.0-6.2.9, 6.1.0-6.1.21, 6.0.0-6.0.29, and 5.3.0-5.3.43. The vulnerability occurs when applications are deployed as WAR or with embedded Servlet containers, the Servlet container does not reject suspicious sequences, and the application serves static resources with Spring resource handling (Spring Security).

Technical details

The vulnerability is classified as MEDIUM severity with a CVSS v3.1 base score of 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N). It has been categorized as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). Applications deployed on Apache Tomcat or Eclipse Jetty are not vulnerable when using default security features (NVD, Spring Security).

Impact

The vulnerability could potentially allow attackers to perform path traversal attacks on affected systems, leading to unauthorized access to files outside the intended directory structure. The CVSS scoring indicates high potential for confidentiality impact, though integrity and availability are not affected (Spring Security).

Mitigation and workarounds

Users are strongly recommended to upgrade to the fixed versions: 6.2.10 for open-source users, while commercial customers should upgrade to 6.1.22 or 5.3.44. Spring Boot users with commercial subscriptions can access hotfix releases 2.7.28.1, 3.2.17.1, and 3.3.14.1. No additional mitigation steps are necessary after upgrading (Spring Blog).

Community reactions

The vulnerability was responsibly reported by security researchers 1ue and b1u3r from Vidar-Team, along with Joakim Erdfelt from Webtide. The Spring team has responded promptly by releasing patches for both open-source and commercial versions (Spring Security).

Additional resources


SourceThis report was generated using AI

Related Apache Log4j vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-41249HIGH7.5
  • JenkinsJenkins
  • log4j:2::log4j-jcl
NoYesSep 16, 2025
CVE-2025-55668MEDIUM6.5
  • JavaJava
  • idm-pki-tools
NoYesAug 13, 2025
CVE-2025-11226MEDIUM5.9
  • Apache Log4jApache Log4j
  • jcl-over-slf4j
NoYesOct 01, 2025
CVE-2025-41242MEDIUM5.9
  • Apache Log4jApache Log4j
  • pki-core:10.6::resteasy-javadoc
NoYesAug 18, 2025
CVE-2025-48924MEDIUM5.3
  • JavaJava
  • maven-dependency-plugin
NoYesJul 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management