Security Vulnerability Report
中文
CVE-2026-7009 CVSS 5.3 MEDIUM

CVE-2026-7009

Published: 2026-05-13 13:01:57
Last Modified: 2026-05-14 14:17:05
Source: 2499f714-1537-4658-8207-48ae4bb9eae9

Description

When curl is told to use the Certificate Status Request TLS extension, often referred to as *OCSP stapling*, to verify that the server certificate is valid, it fails to detect OCSP problems and instead wrongly consider the response as fine.

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)

cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:* - VULNERABLE
curl (Specific versions prior to the fix for CVE-2026-7009)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # PoC for CVE-2026-7009: curl OCSP stapling validation bypass # This script demonstrates how to check if a target accepts a revoked certificate via OCSP stapling. # Note: Requires a server configured with a revoked certificate and OCSP stapling. import subprocess import sys def check_ocsp_stapling(url): print(f"[*] Testing {url} for CVE-2026-7009...") # Using curl with verbose output to check OCSP response # --staple-ocsp enables OCSP stapling try: result = subprocess.run( ['curl', '-vI', '--staple-ocsp', url], capture_output=True, text=True, timeout=10 ) print("[+] Output:") print(result.stderr) print(result.stdout) # In a vulnerable scenario, curl might connect successfully despite invalid OCSP if "SSL certificate verify ok" in result.stderr: print("[!] Potential vulnerability: Connection accepted despite OCSP issues.") else: print("[-] Connection refused or verification failed.") except Exception as e: print(f"Error: {e}") if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python3 poc.py <https://target-url>") else: check_ocsp_stapling(sys.argv[1])

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-7009", "sourceIdentifier": "2499f714-1537-4658-8207-48ae4bb9eae9", "published": "2026-05-13T13:01:57.100", "lastModified": "2026-05-14T14:17:05.223", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "When curl is told to use the Certificate Status Request TLS extension, often\nreferred to as *OCSP stapling*, to verify that the server certificate is\nvalid, it fails to detect OCSP problems and instead wrongly consider the\nresponse as fine."}], "metrics": {"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: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}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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": "Primary", "description": [{"lang": "en", "value": "CWE-295"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.17.0", "versionEndExcluding": "8.20.0", "matchCriteriaId": "6B99D3F9-89CA-45D0-BFA6-128FB2596B07"}]}]}], "references": [{"url": "https://curl.se/docs/CVE-2026-7009.html", "source": "2499f714-1537-4658-8207-48ae4bb9eae9", "tags": ["Patch", "Vendor Advisory"]}, {"url": "https://curl.se/docs/CVE-2026-7009.json", "source": "2499f714-1537-4658-8207-48ae4bb9eae9", "tags": ["Product"]}, {"url": "https://hackerone.com/reports/3694390", "source": "2499f714-1537-4658-8207-48ae4bb9eae9", "tags": ["Exploit", "Issue Tracking", "Patch"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/04/29/12", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List", "Patch", "Third Party Advisory"]}, {"url": "https://hackerone.com/reports/3694390", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Issue Tracking", "Patch"]}]}}