Skip to content
OpenAdvisories

Description

The Spring Framework annotation detection mechanism may not correctly resolve annotations on methods within type hierarchies with a parameterized super type with unbounded generics. This can be an issue if such annotations are used for authorization decisions.

Your application may be affected by this if you are using Spring Security's @EnableMethodSecurity feature.

You are not affected by this if you are not using @EnableMethodSecurity or if you do not use security annotations on methods in generic superclasses or generic interfaces.

This CVE is published in conjunction with CVE-2025-41248 https://spring.io/security/cve-2025-41248 .

Affected products

VendorProductAffectedFixed
VMware Spring Framework 6.2.x – < 6.2.11, 6.1.x – < 6.1.23, 5.3.x – < 5.3.45 6.2.11

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libspring-java No fix yet —
Debian 13 libspring-java No fix yet —
Debian 12 libspring-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libspring-java No fix yet —
Ubuntu 26.04 LTS libspring-java No fix yet —
Ubuntu 25.10 libspring-java No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libspring-java No fix yet —
Ubuntu Pro 22.04 LTS libspring-java No fix yet —
Ubuntu Pro 20.04 LTS libspring-java No fix yet —
Ubuntu Pro 18.04 LTS libspring-java No fix yet —
Ubuntu Pro 16.04 LTS libspring-java No fix yet —
Ubuntu Pro 14.04 LTS libspring-java No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling apache-nifi +2 2.5.0-r11 —
Wolfi rolling apache-nifi-registry +1 2.5.0-r7 —
Wolfi rolling jenkins-2 +6 2.528-r0 —
Wolfi rolling keycloak-config-cli +2 6.4.0-r49 —
Wolfi rolling thingsboard +4 4.2-r6 —
Wolfi rolling zipkin +2 3.5.1-r6 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework:spring-core >= 5.3.0, <= 5.3.44 — GHSA-jmp9-x22r-554x
Maven org.springframework:spring-core >= 6.0.0, <= 6.1.22 — GHSA-jmp9-x22r-554x
Maven org.springframework:spring-core >= 6.2.0, < 6.2.11 6.2.11 GHSA-jmp9-x22r-554x

Advisories 24

References