PT-2025-25357 · Unknown · Spring Framework

Jakob Linskeseder

·

Published

2025-06-12

·

Updated

2026-04-28

·

CVE-2025-41234

CVSS v3.1

6.5

Medium

VectorAV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
Name of the Vulnerable Software and Affected Versions Spring Framework versions 6.0.5 through 6.0.28 Spring Framework versions 6.1.0 through 6.1.20 Spring Framework versions 6.2.0 through 6.2.7
Description The issue allows remote attackers to launch Reflected File Download (RFD) attacks via unsanitized user input in ContentDisposition.Builder#filename(String, Charset) with non-ASCII charsets. This occurs when the Content-Disposition header is prepared with org.springframework.http.ContentDisposition and the filename attribute is derived from user-supplied input. The application is not vulnerable if it does not set a Content-Disposition response header, the header is not prepared with org.springframework.http.ContentDisposition, or the filename is sanitized by the application.
Recommendations For Spring Framework versions 6.0.x, upgrade to version 6.0.29. For Spring Framework versions 6.1.x, upgrade to version 6.1.21. For Spring Framework versions 6.2.x, upgrade to version 6.2.8. As a temporary workaround, consider sanitizing user-supplied input for the filename attribute in the Content-Disposition header.

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-10350
CVE-2025-41234
GHSA-6R3C-XF4W-JXJM

Affected Products

Spring Framework