cbcvebase.

Spring Security vulnerabilities

21 known vulnerabilities affecting spring/spring_security.

Total CVEs
21
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
CRITICAL1HIGH11MEDIUM8LOW1

Vulnerabilities

Page 1 of 2
CVE-2026-22733P3HIGHCVSS 8.1≥ 4.0.0, ≤ 4.0.3≥ 3.5.0, ≤ 3.5.11+3 more2026-03-20
CVE-2026-22733 [HIGH] CWE-288 CVE-2026-22733: Spring Boot applications with Actuator can be vulnerable to an "Authentication Bypass" vulnerability Spring Boot applications with Actuator can be vulnerable to an "Authentication Bypass" vulnerability when an application endpoint that requires authentication is declared under the path used by the CloudFoundry Actuator endpoints. This issue affects Spring Security: from 4.0.0 through 4.0.3, from 3.5.0 through 3.5.11, from 3.4.0 through 3.4.14, from 3
nvd
CVE-2025-41232P3CRITICALCVSS 9.1≥ 6.4.x, < 6.4.62025-05-21
CVE-2025-41232 [CRITICAL] CWE-693 CVE-2025-41232: Spring Security Aspects may not correctly locate method security annotations on private methods. Thi Spring Security Aspects may not correctly locate method security annotations on private methods. This can cause an authorization bypass. Your application may be affected by this if the following are true: * You are using @EnableMethodSecurity(mode=ASPECTJ) and spring-security-aspects, and * You have Spring Security method annotations on a privat
nvd
CVE-2026-22747P3HIGHCVSS 8.1≥ 7.0.0, ≤ 7.0.42026-04-22
CVE-2026-22747 [HIGH] CWE-297 CVE-2026-22747: Vulnerability in Spring Spring Security. SubjectX500PrincipalExtractor does not correctly handle cer Vulnerability in Spring Spring Security. SubjectX500PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user. This issue affects Spring Security: from 7.0.0 through 7
nvd
CVE-2026-47838P3HIGHCVSS 8.1≥ 5.7.0, < 5.7.25≥ 5.8.0, < 5.8.27+3 more2026-06-10
CVE-2026-47838 [HIGH] CWE-287 CVE-2026-47838: SubjectDnX509PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN val SubjectDnX509PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user. Affected versions: Spring Security 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6
nvd
CVE-2024-22234P3HIGHCVSS 7.4≥ 6.1.x, < 6.1.7≥ 6.2.x, < 6.2.22024-02-20
CVE-2024-22234 [HIGH] CWE-284 CVE-2024-22234: In Spring Security, versions 6.1.x prior to 6.1.7 and versions 6.2.x prior to 6.2.2, an application In Spring Security, versions 6.1.x prior to 6.1.7 and versions 6.2.x prior to 6.2.2, an application is vulnerable to broken access control when it directly uses the AuthenticationTrustResolver.isFullyAuthenticated(Authentication) method. Specifically, an application is vulnerable if: * The application uses AuthenticationTrustResolver.isFullyAuthentic
nvd
CVE-2026-40993P3HIGHCVSS 7.2≥ 7.0.0, < 7.0.5.12026-06-10
CVE-2026-40993 [HIGH] CWE-502 CVE-2026-40993: An attacker with write permissions to the database table managed by JdbcAssertingPartyMetadataReposi An attacker with write permissions to the database table managed by JdbcAssertingPartyMetadataRepository (saml2_asserting_party_metadata) may be able to store malicious serialized payloads in the columns containing the collection of verification or encryption credentials (verification_credentials and encryption_credentials, respectively). Affected ve
nvd
CVE-2026-22754P3HIGHCVSS 7.5≥ 7.0.0, ≤ 7.0.42026-04-22
CVE-2026-22754 [HIGH] CWE-284 CVE-2026-22754: Vulnerability in Spring Spring Security. If an application uses <sec:intercept-url servlet-path="/se Vulnerability in Spring Spring Security. If an application uses to define the servlet path for computing a path matcher, then the servlet path is not included and the related authorization rules are not exercised. This can lead to an authorization bypass.This issue affects Spring Security: from 7.0.0 through 7.0.4.
nvd
CVE-2026-22753P3HIGHCVSS 7.5≥ 7.0.0, ≤ 7.0.42026-04-22
CVE-2026-22753 [HIGH] CWE-693 CVE-2026-22753: Vulnerability in Spring Spring Security. If an application is using securityMatchers(String) and a P Vulnerability in Spring Spring Security. If an application is using securityMatchers(String) and a PathPatternRequestMatcher.Builder bean to prepend a servlet path, matching requests to that filter chain may fail and its related security components will not be exercised as intended by the application. This can lead to the authentication, authorization
nvd
CVE-2019-11272P3HIGHCVSS 7.3≥ 4.2, < 4.2.13.RELEASE2019-06-26
CVE-2019-11272 [HIGH] CWE-287 CVE-2019-11272: Spring Security, versions 4.2.x up to 4.2.12, and older unsupported versions support plain text pass Spring Security, versions 4.2.x up to 4.2.12, and older unsupported versions support plain text passwords using PlaintextPasswordEncoder. If an application using an affected version of Spring Security is leveraging PlaintextPasswordEncoder and a user has a null encoded password, a malicious user (or attacker) can authenticate using a password of "null
nvd
CVE-2024-38810P3HIGHCVSS 7.5≥ 6.3.x, < 6.3.22024-08-20
CVE-2024-38810 [HIGH] CWE-287 CVE-2024-38810: Missing Authorization When Using @AuthorizeReturnObject in Spring Security 6.3.0 and 6.3.1 allows at Missing Authorization When Using @AuthorizeReturnObject in Spring Security 6.3.0 and 6.3.1 allows attacker to render security annotations inaffective.
nvd
CVE-2025-22228P3HIGHCVSS 7.4v5.7.16v5.8.18+5 more2025-03-20
CVE-2025-22228 [HIGH] CWE-287 CVE-2025-22228: BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
nvd
CVE-2026-40988P3HIGHCVSS 7.5≥ 5.7.0, < 5.7.24≥ 5.8.0, < 5.8.26+4 more2026-06-10
CVE-2026-40988 [HIGH] CWE-400 CVE-2026-40988: An application using spring-security-saml2-service-provider and the REDIRECT binding for SAML 2.0 Lo An application using spring-security-saml2-service-provider and the REDIRECT binding for SAML 2.0 Login or Logout may be vulnerable to a denial of service by way of an unbounded writer that inflates the compressed SAML payload into memory. Affected versions: Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.3.16; 6.4.0 throu
nvd
CVE-2026-22748P3MEDIUMCVSS 6.5≥ 6.3.0, ≤ 6.3.14≥ 6.4.0, ≤ 6.4.14+2 more2026-04-22
CVE-2026-22748 [MEDIUM] CWE-20 CVE-2026-22748: Vulnerability in Spring Spring Security. When an application configures JWT decoding with NimbusJwtD Vulnerability in Spring Spring Security. When an application configures JWT decoding with NimbusJwtDecoder or NimbusReactiveJwtDecoder, it must configure an OAuth2TokenValidator separately, for example by calling setJwtValidator.This issue affects Spring Security: from 6.3.0 through 6.3.14, from 6.4.0 through 6.4.14, from 6.5.0 through 6.5.9, from 7.
nvd
CVE-2026-41706P4MEDIUMCVSS 6.1≥ 5.7.0, < 5.7.24≥ 5.8.0, < 5.8.26+4 more2026-06-10
CVE-2026-41706 [MEDIUM] CWE-601 CVE-2026-41706: Spring Security's CookieRequestCache and CookieServerRequestCache store the pre-authentication reque Spring Security's CookieRequestCache and CookieServerRequestCache store the pre-authentication request URL in a browser cookie so that users can be redirected back to their intended destination after a successful login. In affected versions, the full absolute URL is stored in the cookie and is used without validation as the post-login redirect targe
nvd
CVE-2026-41008P4MEDIUMCVSS 6.1≥ 7.0.0, < 7.0.5.12026-06-10
CVE-2026-41008 [MEDIUM] CWE-601 CVE-2026-41008: Spring Security Authorization Server's authorization endpoint performs insufficient validation of th Spring Security Authorization Server's authorization endpoint performs insufficient validation of the request_uri parameter. An attacker can craft a malicious authorization request containing an invalid request_uri and an arbitrary, unvalidated redirect_uri, which can lead to an Open Redirect vulnerability. Affected versions: Spring Security 7.0.0
nvd
CVE-2026-41003P4MEDIUMCVSS 5.4≥ 5.7.0, < 5.7.24≥ 5.8.0, < 5.8.26+4 more2026-06-10
CVE-2026-41003 [MEDIUM] CWE-79 CVE-2026-41003: An attacker able to influence values in RelyingPartyRegistration may be able to run arbitrary code o An attacker able to influence values in RelyingPartyRegistration may be able to run arbitrary code on HTML forms generated by Spring Security filters. Affected versions: Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.3.16; 6.4.0 through 6.4.16; 6.5.0 through 6.5.10; 7.0.0 through 7.0.5.
nvd
CVE-2026-41694P4MEDIUMCVSS 5.3≥ 5.7.0, < 5.7.24≥ 5.8.0, < 5.8.26+4 more2026-06-10
CVE-2026-41694 [MEDIUM] CWE-347 CVE-2026-41694: Since Spring Security SAML decrypts SAML Responses as well as elements of SAML LogoutRequests and Lo Since Spring Security SAML decrypts SAML Responses as well as elements of SAML LogoutRequests and LogoutResponses without requiring a valid signature, attackers may be able to craft these SAML payloads and use the Service Provider as a decryption oracle. Affected versions: Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.
nvd
CVE-2019-3795P4MEDIUMCVSS 5.3≥ 5.0, < 5.0.11.RELEASE≥ 5.1, < 5.1.4.RELEASE+1 more2019-04-09
CVE-2019-3795 [MEDIUM] CWE-330 CVE-2019-3795: Spring Security versions 4.2.x prior to 4.2.12, 5.0.x prior to 5.0.12, and 5.1.x prior to 5.1.5 cont Spring Security versions 4.2.x prior to 4.2.12, 5.0.x prior to 5.0.12, and 5.1.x prior to 5.1.5 contain an insecure randomness vulnerability when using SecureRandomFactoryBean#setSeed to configure a SecureRandom instance. In order to be impacted, an honest application must provide a seed and make the resulting random material available to an attacker
nvd
CVE-2025-22223P4MEDIUMCVSS 5.3v6.4.0-6.4.32025-03-24
CVE-2025-22223 [MEDIUM] CWE-290 CVE-2025-22223: Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass. You are not affected if you are not using @EnableMethodSecurity, or you do not have method security annotations on parameterized types or methods, or all method security annotations are attache
nvd
CVE-2026-22751P4MEDIUMCVSS 4.8≥ 6.4.0, ≤ 6.4.15≥ 6.5.0, ≤ 6.5.9+1 more2026-04-21
CVE-2026-22751 [MEDIUM] CWE-367 CVE-2026-22751: Vulnerability in Spring Spring Security. Applications that explicitly configure One-Time Token login Vulnerability in Spring Spring Security. Applications that explicitly configure One-Time Token login with JdbcOneTimeTokenService are vulnerable to a Time-of-check Time-of-use (TOCTOU) race condition. This issue affects Spring Security: from 6.4.0 through 6.4.15, from 6.5.0 through 6.5.9, from 7.0.0 through 7.0.4.
nvd
Spring Security vulnerabilities | cvebase