Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.boot/spring-boot
  4. ›
  5. CVE-2025-22235

CVE-2025-22235: Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed

April 28, 2025

EndpointRequest.to() creates a matcher for null/** if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed.

Your application may be affected by this if all the following conditions are met:

  • You use Spring Security
  • EndpointRequest.to() has been used in a Spring Security chain configuration
  • The endpoint which EndpointRequest references is disabled or not exposed via web
  • Your application handles requests to /null and this path needs protection

You are not affected if any of the following is true:

  • You don’t use Spring Security
  • You don’t use EndpointRequest.to()
  • The endpoint which EndpointRequest.to() refers to is enabled and is exposed
  • Your application does not handle requests to /null or this path does not need protection

References

  • github.com/advisories/GHSA-rc42-6c7j-7h5r
  • github.com/spring-projects/spring-boot
  • nvd.nist.gov/vuln/detail/CVE-2025-22235
  • spring.io/security/cve-2025-22235

Code Behaviors & Features

Detect and mitigate CVE-2025-22235 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.7.24.2, all versions starting from 3.1.0 up to 3.1.15.2, all versions starting from 3.2.0 up to 3.2.13.2, all versions starting from 3.3.0 before 3.3.11, all versions starting from 3.4.0 before 3.4.5

Fixed versions

  • 3.3.11
  • 3.4.5

Solution

Upgrade to versions 3.3.11, 3.4.5 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-862: Missing Authorization

Source file

maven/org.springframework.boot/spring-boot/CVE-2025-22235.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.