
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-21500 is a stack overflow vulnerability in iccDEV's XML calculator macro expansion, affecting all versions prior to 2.3.1.2. iccDEV is an open-source library maintained by the International Color Consortium that provides tools for interacting with and applying ICC color management profiles. The vulnerability was reported on December 29, 2025, patched via PR #406 merged on January 2, 2026, and publicly disclosed on January 7, 2026. It carries a CVSS v3.1 base score of 5.5 (Moderate) per the official GitHub Security Advisory, though Feedly's NVD-sourced data assigns a higher score of 7.8 (High) reflecting broader impact estimates (GitHub Advisory, GitHub Issue).
The root cause is uncontrolled recursion (CWE-674) combined with improper input validation (CWE-20) and uncontrolled resource consumption (CWE-400) in the CIccMpeXmlCalculator::Flatten() function located at IccXML/IccLibXML/IccMpeXml.cpp. When processing XML-based ICC color profiles, the function recursively expands calculator macros without any depth limit or self-reference guard, allowing a crafted ICC profile containing a self-referencing or deeply nested macro to trigger infinite recursion and exhaust the call stack. The fix added a self-reference check: if the macro name being expanded matches the current macro context (name == macroName), the function now returns an error instead of recursing. A proof-of-concept XML file (stack-overflow-CIccMpeXmlCalculator-Flatten-poc.xml) and corresponding ICC file were provided in the issue report, with AddressSanitizer confirming the stack overflow at frame depth exceeding 246 recursive calls (GitHub Issue, Fix Commit).
Successful exploitation causes a denial of service via application crash or hang when the affected application processes a maliciously crafted ICC color profile. The primary impact is high availability loss; the official advisory rates confidentiality and integrity impacts as none, making this a DoS-only vulnerability in its base form. Any application or pipeline that ingests user-supplied ICC profiles using a vulnerable version of iccDEV is at risk, including image processing tools, color management utilities, and print workflows (GitHub Advisory).
A proof-of-concept exploit (crafted XML and ICC files) is publicly available in the GitHub issue report, submitted by researcher xsscx on December 29, 2025. Exploitation requires local access and user interaction — a victim must open or process the malicious ICC profile — which limits the attack surface. There is no evidence of in-the-wild exploitation, no known threat actor attribution, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.018% (0.000180), indicating very low probability of exploitation in the near term (GitHub Issue, Feedly).
.xml or .icc) containing a calculator macro that references itself (self-referencing macro), triggering infinite recursion in CIccMpeXmlCalculator::Flatten(). A public PoC file (stack-overflow-CIccMpeXmlCalculator-Flatten-poc.xml) is available in the GitHub issue.iccFromXml or equivalent iccDEV parsing routines, which call CIccMpeXmlCalculator::Flatten() on the embedded macro..xml or .icc files containing deeply nested or self-referencing calculator macro definitions in directories used for ICC profile processing.CIccMpeXmlCalculator::Flatten() in IccXML/IccLibXML/IccMpeXml.cpp; AddressSanitizer output with stack-overflow error at the same function.Upgrade iccDEV to version 2.3.1.2 or later, which includes the fix committed in cce5f9b and f295826 that adds a self-reference guard in CIccMpeXmlCalculator::Flatten(). As a temporary workaround prior to patching, the stack size can be limited using ulimit -s 4096 (setting a 4MB stack limit) to reduce the impact of the overflow. Additionally, restrict processing of ICC profiles from untrusted or unknown sources until the patch is applied (GitHub Advisory, Fix PR).
The vulnerability was reported by security researcher xsscx and remediated by contributor ChrisCoxArt (Adobe). The fix was reviewed and merged by the iccDEV maintainer within days of the report. A follow-up comment by contributor maxderhak suggested an alternative fix approach via modifying the initial ValidMacroCalls() invocation, and a subsequent commit in April 2026 added a more comprehensive recursion depth cap (kMaxFlattenDepth=256) as defense-in-depth for both XML and JSON calculator macro expansion paths (Fix PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."