
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-24660 is a heap-based buffer overflow vulnerability in the x3f_load_huffman functionality of LibRaw (Commit d20315b), an open-source C/C++ library for reading and processing RAW image files. A specially crafted malicious X3F file can trigger a 32-bit integer overflow during pixel buffer size calculation, leading to a heap buffer overflow. The vulnerability was discovered by Francesco Benvenuto of Cisco Talos, disclosed to the vendor on February 12, 2026, patched on April 6, 2026, and publicly released on April 7, 2026. It carries a CVSSv3.1 score of 8.1 (High) per Talos and the GitHub Advisory Database, with some sources estimating 9.8 (Critical) (Talos Advisory, GitHub Advisory).
The root cause is a 32-bit integer overflow (CWE-190) combined with a classic buffer overflow (CWE-120) in x3f_load_huffman() within src/x3f/x3f_utils_patched.cpp. The columns and rows values are read directly from the attacker-controlled X3F file header; the buffer size is computed as size = ID->columns * ID->rows * 3 using 32-bit arithmetic, which wraps around when the product exceeds UINT32_MAX (requiring columns * rows > 1,431,655,765). The resulting undersized buffer is then allocated via malloc(sizeof(uint16_t) * size), and the Huffman decoder subsequently writes data using the original (untruncated) dimensions, causing billions of out-of-bounds writes beyond the allocated heap region. Two important preconditions apply: LibRaw must be compiled with -DUSE_X3FTOOLS (not the default), and the application must set max_raw_memory_mb to approximately 11 GB or greater (on 64-bit systems) to bypass LibRaw's built-in memory limit check (Talos Advisory).
Successful exploitation results in heap corruption that can lead to arbitrary code execution with the privileges of the application processing the malicious file, as well as potential denial of service via application crash. An unauthenticated remote attacker can deliver a crafted X3F image file to any service or application that uses a vulnerable LibRaw build (with X3F support enabled and elevated memory limits), affecting confidentiality, integrity, and availability at a high level. Downstream applications such as image editors, photo management tools, and web services that process user-supplied RAW images are at risk (Talos Advisory, GitHub Advisory).
No confirmed public exploit code or in-the-wild exploitation has been observed as of the time of reporting; Cisco Talos published a detailed technical advisory (TALOS-2026-2359) with crash information and source code analysis, but no weaponized exploit or step-by-step attack instructions are publicly available (Talos Advisory). The EPSS score is approximately 0.043–0.078%, placing it in the lower percentiles for near-term exploitation likelihood (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is further constrained by the non-default compilation flag (-DUSE_X3FTOOLS) and the requirement for an elevated max_raw_memory_mb setting.
-DUSE_X3FTOOLS and configured with max_raw_memory_mb greater than ~11 GB (64-bit) or ~5.5 GB (32-bit). Examples include photo processing web services, image editors, or RAW file converters.columns and rows values in the image section header such that columns * rows > 1,431,655,765 (e.g., columns = 65535, rows = 65535), causing the 32-bit multiplication columns * rows * 3 to overflow.LibRaw::unpack() on the malicious file, which invokes x3f_load_huffman() → huffman_decode() → huffman_decode_row(), triggering the integer overflow and subsequent heap buffer overflow.huffman_decode_row in x3f_utils_patched.cpp:1083 or x3f_load_huffman in x3f_utils_patched.cpp:1483.LIBRAW_EXCEPTION_TOOBIG or heap corruption errors during X3F file processing; crash dumps with stack traces involving LibRaw::x3f_load_raw(), LibRaw::unpack(), or x3f_load_data()..x3f files submitted to image processing directories; files with columns * rows values exceeding ~1.4 billion in their X3F headers..x3f files to web services, especially from untrusted or anonymous sources; outbound connections from image processing services to unknown external hosts following X3F file processing (potential post-exploitation indicator) (Talos Advisory).The vendor released a patch on April 6, 2026 (prior to public disclosure); users should update LibRaw to a version beyond Commit d20315b that addresses this issue. Red Hat has issued security errata addressing this vulnerability for Red Hat Enterprise Linux 8 (RHSA-2026:13284), RHEL 8.4 (RHSA-2026:15926), RHEL 8.6 (RHSA-2026:15925), and RHEL 8.8 (RHSA-2026:15924); openSUSE and Amazon Linux 2 have also released updates (Red Hat Bugzilla). As immediate workarounds: avoid compiling LibRaw with -DUSE_X3FTOOLS unless X3F support is strictly required; keep max_raw_memory_mb at its default value (which prevents triggering the overflow); validate and restrict X3F file sources; and implement sandboxing for image processing operations (Talos Advisory).
Cisco Talos published a detailed technical advisory (TALOS-2026-2359) and a blog post covering this and related vulnerabilities in LibRaw and Foxit, providing source code analysis and crash information (Talos Blog). The vulnerability was discussed on the oss-security mailing list and picked up by security news aggregators including malware.news. Community reaction has been measured, noting the non-default compilation requirement and elevated memory limit as significant mitigating factors that reduce real-world exploitability for most deployments.
Fix availability across major Linux distributions and their releases.
bionic (esm-apps)
ufraw
bionic (esm-infra)
libraw
devel
libraw: 0.22.1-1ubuntu1
focal (esm-apps)
darktable
focal (esm-infra)
libraw
jammy
libraw: 0.20.2-2ubuntu2.22.04.3
jammy (esm-apps)
darktable
noble
libraw: 0.21.2-2.1ubuntu0.24.04.2
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."