Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.security/spring-security-web
  4. ›
  5. CVE-2026-22747

CVE-2026-22747: Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates

April 22, 2026 (updated April 29, 2026)

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.0.4.

References

  • github.com/advisories/GHSA-2jrg-rf5x-568g
  • github.com/spring-projects/spring-security
  • github.com/spring-projects/spring-security/commit/88118afb8f9357ae7cc215500a441e89fee701c3
  • nvd.nist.gov/vuln/detail/CVE-2026-22747
  • spring.io/security/cve-2026-22747

Code Behaviors & Features

Detect and mitigate CVE-2026-22747 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 starting from 7.0.0 before 7.0.5

Fixed versions

  • 7.0.5

Solution

Upgrade to version 7.0.5 or above.

Impact 6.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-297: Improper Validation of Certificate with Host Mismatch

Source file

maven/org.springframework.security/spring-security-web/CVE-2026-22747.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:19:21 +0000.