Skip to content
Heist/ feed
Back to feed
Medium

Unauthorized User Impersonation when Using X.509 Client Certificates

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-22747
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:57 UTC · Revision 1

Source evidence

Unauthorized User Impersonation when Using X.509 Client Certificates

core-osv · Original source

Published 22 Apr 2026, 05:08 UTC

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.

osv:CVE-2026-22747
Complete source record
{
  "id": "e849ae1bb6cc575ae2fa54d77ead01eb187b91c95bb1358139a227f49e4e83fe",
  "url": "https://osv.dev/vulnerability/CVE-2026-22747",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Unauthorized User Impersonation when Using X.509 Client Certificates",
    "summary": "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.",
    "evidence": "osv:CVE-2026-22747",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-22747",
      "aliases": [
        "CVE-2026-22747",
        "GHSA-2jrg-rf5x-568g"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/spring-projects/spring-security",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1d99a7fb14c62354cac00412cce2071892cdf465"
                },
                {
                  "fixed": "53bc6a77963209bb2a5f3efdd855b1f4a8051cc3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.0.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "7.0.4",
            "7.0.3",
            "7.0.2",
            "7.0.1",
            "7.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22747.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.931619138Z",
      "provider": "osv",
      "references": [
        "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json",
        "https://spring.io/security/cve-2026-22747",
        "https://access.redhat.com/security/cve/CVE-2026-22747",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22747.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-22747",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2460487"
      ],
      "provider_metadata": {
        "cna_assigner": "vmware",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "last_affected": "7.0.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22747.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-22747",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504382,
  "published_at": "2026-04-22T05:08:41.318+00:00"
}