Spring Framework < 5.3.40 / 6.0.x < 6.0.24 / 6.1.x < 6.1.13 Path Traversal (CVE-2024-38816)

high Nessus Plugin ID 207387

Synopsis

The remote host contains a web application framework that is affected by a path traversal vulnerability.

Description

The remote host contains a Spring Framework version is affected by a path traversal vulnerability.

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 is in use
- the application runs on Tomcat or Jetty

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Spring Framework version 5.3.40, 6.0.24, 6.1.13 or later.

See Also

https://spring.io/security/cve-2024-38816

Plugin Details

Severity: High

ID: 207387

File Name: spring_CVE-2024-38816.nasl

Version: 1.5

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 9/18/2024

Updated: 10/25/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.1

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2024-38816

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:pivotal_software:spring_framework

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/13/2024

Vulnerability Publication Date: 9/13/2024

Reference Information

CVE: CVE-2024-38816

IAVA: 2024-A-0587-S