{"id":70242,"date":"2025-09-16T14:31:44","date_gmt":"2025-09-16T11:01:44","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-41248-cve-2025-41248-spring-security-authorization-bypass-for-method-security-annotations-on-parameterized-types\/"},"modified":"2025-09-16T14:31:44","modified_gmt":"2025-09-16T11:01:44","slug":"cve-2025-41248-cve-2025-41248-spring-security-authorization-bypass-for-method-security-annotations-on-parameterized-types","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-41248-cve-2025-41248-spring-security-authorization-bypass-for-method-security-annotations-on-parameterized-types\/","title":{"rendered":"CVE-2025-41248 &#8211; CVE-2025-41248: Spring Security authorization bypass for method security annotations on parameterized types"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-41248<br \/>\n<br \/>\n<strong>Published : <\/strong> 2025\u5e749\u670816\u65e5 10:10 | 45\u00a0\u5206\u949f ago<br \/>\n<br \/>\n<strong>Description : <\/strong>The Spring Security 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 when using @PreAuthorize\u00a0and other method security annotations, resulting in an authorization bypass.<\/p>\n<p>Your application may be affected by this if you are using Spring Security&#8217;s @EnableMethodSecurity\u00a0feature.<\/p>\n<p>You are not affected by this if you are not using @EnableMethodSecurity\u00a0or if you do not use security annotations on methods in generic superclasses or generic interfaces.<\/p>\n<p>This CVE is published in conjunction with  CVE-2025-41249 https:\/\/spring.io\/security\/cve-2025-41249 .<br \/>\n<br \/>\n<strong>Severity:<\/strong> 7.5 | HIGH<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-41248 Published : 2025\u5e749\u670816\u65e5 10:10 | 45\u00a0\u5206\u949f ago Description : The Spring Security 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 when using @PreAuthorize\u00a0and other method security annotations, resulting in an authorization bypass. Your &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-70242","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=70242"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70242\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=70242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=70242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=70242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}