← Back to CVE Explorer

CVE-2026-22751

Full vulnerability record from the local CVENow database.

Description

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.

Severity
MEDIUM
CVSS score
4.8 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-04-21 19:16:16.550000
Last modified
2026-10-26 21:10:00.170000
View original CVE JSON
{
  "id": "CVE-2026-22751",
  "sourceIdentifier": "[email protected]",
  "published": "2026-04-21T19:16:16.550",
  "lastModified": "2026-10-26T21:10:00.170",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "Vulnerabilidad en Spring Spring Security. Las aplicaciones que configuran explícitamente el inicio de sesión con token de un solo uso con JdbcOneTimeTokenService son vulnerables a una condición de carrera de tipo Time-of-check Time-of-use (TOCTOU). Este problema afecta a Spring Security: desde 6.4.0 hasta 6.4.15, desde 6.5.0 hasta 6.5.9, desde 7.0.0 hasta 7.0.4."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "Spring",
          "product": "Spring Security",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "6.4.0",
              "lessThanOrEqual": "6.4.15",
              "versionType": "custom",
              "status": "affected"
            },
            {
              "version": "6.5.0",
              "lessThanOrEqual": "6.5.9",
              "versionType": "custom",
              "status": "affected"
            },
            {
              "version": "7.0.0",
              "lessThanOrEqual": "7.0.4",
              "versionType": "custom",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
          "baseScore": 4.8,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "HIGH",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "LOW",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.2,
        "impactScore": 2.5
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-04-21T18:44:30.926766Z",
          "id": "CVE-2026-22751",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-367"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "6.4.0",
              "versionEndExcluding": "6.4.16",
              "matchCriteriaId": "6452E94A-BC89-4F38-A140-C55DC6DEC0A8"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "6.5.0",
              "versionEndExcluding": "6.5.10",
              "matchCriteriaId": "5A35C014-6D64-4246-99B8-88BD7B5EC92F"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "7.0.0",
              "versionEndExcluding": "7.0.5",
              "matchCriteriaId": "0B8A5767-EB43-4E11-8E93-9324B70F7060"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://spring.io/security/cve-2026-22751",
      "source": "[email protected]",
      "tags": [
        "Vendor Advisory"
      ]
    }
  ]
}