CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2025-41249

High
Published: Translated: NVD NIST

Summary

Mechanizm wykrywania adnotacji w Spring Framework może nieprawidłowo rozwiązywać adnotacje na metodach w hierarchiach typów z parametryzowanym supertypem z nieograniczonymi typami generycznymi. Może to stanowić problem, jeśli takie adnotacje są używane do podejmowania decyzji autoryzacyjnych.

Risk Assessment

Twoja aplikacja może być narażona, jeśli korzystasz z funkcji @EnableMethodSecurity w Spring Security. Jeśli nie używasz tej funkcji lub nie stosujesz adnotacji zabezpieczeń na metodach w generycznych superklasach lub interfejsach, nie jesteś narażony.

Recommendation

Zaleca się przegląd i ewentualne dostosowanie użycia adnotacji zabezpieczeń w aplikacji, szczególnie w kontekście metod w hierarchiach typów generycznych. Jeśli to możliwe, unikaj używania @EnableMethodSecurity w sytuacjach, które mogą być narażone na tę podatność.

Related vulnerabilities

Original NVD description (English source)

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 .

Vulnerability data from NVD (NIST) · CISA KEV · EPSS