Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113679 Overview
CVE-2026-113679 is an out-of-bounds write vulnerability [CWE-787] in HarfBuzz versions 8.0.0 through 14.6.0. The flaw resides in the experimental WebAssembly (Wasm) shaper, specifically in the font_glyph_to_string import. The import carries an incorrect WebAssembly Micro Runtime (WAMR) signature, so the output buffer pointer is not validated against linear memory bounds. An attacker who supplies a crafted font with a Wasm module can position the output buffer near the end of linear memory. HarfBuzz then writes glyph-name bytes past the Wasm sandbox and into host memory, crashing or corrupting the embedding application.
Critical Impact
A malicious font processed by the HarfBuzz WebAssembly shaper can corrupt host process memory, enabling denial of service and potential arbitrary code execution.
Affected Products
- HarfBuzz 8.0.0 through 14.6.0 (WebAssembly shaper enabled)
- Applications embedding HarfBuzz with the experimental Wasm shaper compiled in
- Downstream distributions and libraries bundling vulnerable HarfBuzz releases
Discovery Timeline
- 2026-10-20 - CVE-2026-113679 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-113679
Vulnerability Analysis
HarfBuzz exposes a set of native host functions to Wasm shaper modules through WAMR. Each import is declared with a signature string that describes argument types. The font_glyph_to_string import was declared as "(ii$*)", treating the s output buffer as a raw host pointer rather than a bounds-checked Wasm linear memory array. As a result, HarfBuzz invoked hb_font_glyph_to_string with a pointer the Wasm module controlled, without verifying that [s, s+size) fell inside the sandbox memory region. A crafted font whose embedded Wasm module calls this import with a buffer address near the top of linear memory causes the glyph name string to be written into adjacent host memory.
Root Cause
The root cause is a signature mismatch between the native import declaration and the sandbox contract enforced by WAMR. The incorrect signature bypassed WAMR's automatic pointer validation, so no bounds check was performed before the write.
Attack Vector
Exploitation requires an application to load an attacker-supplied font that activates the Wasm shaper. The attack is local and requires user interaction, such as opening a document or rendering untrusted text with a malicious font.
// Patch: src/hb-wasm-api-font.hh
HB_WASM_API (void, font_glyph_to_string) (HB_WASM_EXEC_ENV
ptr_d(font_t, font),
codepoint_t glyph,
- char *s, uint32_t size)
+ ptr_d(char, s), uint32_t size)
{
HB_REF2OBJ (font);
+ HB_ARRAY_PARAM (char, s, size);
+ if (unlikely (!s))
+ return;
hb_font_glyph_to_string (font, glyph, s, size);
}
Source: GitHub Commit 5e821de
// Patch: src/hb-wasm-api-list.hh
- NATIVE_SYMBOL ("(ii$*)", font_glyph_to_string),
+ NATIVE_SYMBOL ("(iiii)", font_glyph_to_string),
Source: GitHub Commit 5e821de
The patch changes the s parameter from a raw char * to ptr_d(char, s) and adds HB_ARRAY_PARAM to enforce bounds checking. The WAMR signature changes from "(ii$*)" to "(iiii)", so WAMR validates the output buffer against linear memory before invoking the host function.
Detection Methods for CVE-2026-113679
Indicators of Compromise
- Unexpected crashes in text rendering or font shaping components after loading documents containing embedded fonts.
- Font files containing a Wasm table with a WebAssembly module that imports font_glyph_to_string.
- Memory corruption or segmentation faults in processes linked against HarfBuzz 8.0.0 through 14.6.0.
Detection Strategies
- Inventory applications and container images for HarfBuzz versions between 8.0.0 and 14.6.0 using software composition analysis.
- Scan font files for a Wasm OpenType table, which indicates a shaper module and warrants additional review.
- Correlate application crash telemetry with font-loading events to surface likely exploitation attempts.
Monitoring Recommendations
- Enable crash reporting and core dump collection on hosts that render untrusted documents or user-supplied fonts.
- Monitor process integrity for applications known to embed HarfBuzz, including browsers, office suites, and PDF viewers.
- Alert on new font files written to shared document stores or email gateways and sandbox them before distribution.
How to Mitigate CVE-2026-113679
Immediate Actions Required
- Upgrade HarfBuzz to a release that contains commit 5e821de8256d01780566b5c8ab7886fae4c93da8 or later.
- If upgrading is not immediately possible, rebuild HarfBuzz without the experimental Wasm shaper by disabling the wasm option.
- Block or quarantine untrusted font files at email, web, and document ingestion points until patching completes.
Patch Information
The fix is available in HarfBuzz commit 5e821de, merged via Pull Request #6414. The patch corrects the WAMR signature for font_glyph_to_string and adds explicit bounds validation on the output buffer. See the VulnCheck HarfBuzz Advisory for additional detail.
Workarounds
- Disable the experimental Wasm shaper at build time if your distribution ships HarfBuzz with Wasm support enabled.
- Restrict applications from loading fonts from untrusted sources using OS-level font directory policies.
- Run document rendering workloads in a sandboxed or containerized environment to limit the blast radius of host memory corruption.
# Rebuild HarfBuzz without the experimental WebAssembly shaper
meson setup build -Dwasm=disabled
ninja -C build
ninja -C build install
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

