{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "6.5.0"
              },
              {
                "fixed": "6.5.11"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0fd0e9335ae3a6ff3538045d098dd6b94679d99e"
            },
            {
              "fixed": "73b077790fcb04ac3712033d3e939daf42264545"
            }
          ],
          "repo": "https://github.com/spring-projects/spring-security",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "vmware",
    "cwe_ids": [
      "CWE-287"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47838.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "5.7.0"
          },
          {
            "fixed": "5.7.25"
          },
          {
            "introduced": "5.8.0"
          },
          {
            "fixed": "5.8.27"
          },
          {
            "introduced": "6.3.0"
          },
          {
            "fixed": "6.3.18"
          },
          {
            "introduced": "6.4.0"
          },
          {
            "fixed": "6.4.18"
          },
          {
            "introduced": "6.5.0"
          },
          {
            "fixed": "6.5.10.2"
          }
        ],
        "source": "AFFECTED_FIELD"
      },
      {
        "extracted_events": [
          {
            "introduced": "5.7.0"
          },
          {
            "fixed": "5.7.24"
          },
          {
            "introduced": "5.8.0"
          },
          {
            "fixed": "5.8.26"
          },
          {
            "introduced": "6.3.0"
          },
          {
            "fixed": "6.3.17"
          },
          {
            "introduced": "6.4.0"
          },
          {
            "fixed": "6.4.17"
          },
          {
            "introduced": "6.5.0"
          },
          {
            "fixed": "6.5.10"
          }
        ],
        "source": "DESCRIPTION"
      }
    ]
  },
  "details": "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.\n\nAffected versions:\nSpring Security 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10.",
  "id": "CVE-2026-47838",
  "modified": "2026-07-08T05:38:28.388473108Z",
  "published": "2026-06-09T23:50:07.988Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://spring.io/security/cve-2026-47838"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47838.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47838"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Unauthorized User Impersonation when Using X.509 Client Certificates"
}