CVE-2024-56732
High · 8.8CVSS
8.8
EPSS
0.7%
Published
Dec 27, 2024
CISA due date
—
Cloudanix analysis
A bug in software that displays text can let attackers take over computers by sending specially crafted messages or documents.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer overflow in hb_cairo_glyphs_from_buffer allows out-of-bounds writes during text shaping of crafted input.
Why it matters to the business
Remote attackers can achieve arbitrary code execution in applications that render text with affected HarfBuzz versions, leading to full system compromise; the affected Ubuntu 14.04 Firefox package remains exposed on long-EOL systems despite a low exploitation probability.
How an attack unfolds
An attacker supplies malicious font or text data to a vulnerable HarfBuzz instance (versions 8.5.0–10.0.1) embedded in Firefox; the hb_cairo_glyphs_from_buffer function performs an unchecked write that corrupts heap memory, enabling control-flow hijacking and payload execution without authentication.
How to fix it
Upgrade Firefox on Ubuntu 14.04 to version 50.0+build2-0ubuntu0.14.04.2 or later; for any HarfBuzz-based product, update to a release containing HarfBuzz 10.0.2 or newer and rebuild against the fixed library.
How to confirm the fix worked
Confirm the installed package version matches or exceeds the listed fixed build; run regression tests that exercise hb_cairo_glyphs_from_buffer with the previously crashing glyph buffers; verify no crash or memory corruption occurs under AddressSanitizer.
Typical attack path
- Identify a target application using vulnerable HarfBuzz (e.g., Firefox on Ubuntu 14.04)
- Craft a font file or Unicode string that triggers excessive glyph buffer growth
- Deliver the payload via web content, document, or network request
- Trigger text shaping in hb_cairo_glyphs_from_buffer to overflow the heap allocation
- Overwrite function pointers or metadata to redirect execution to attacker-controlled code
How to detect it
Review web server and browser process logs for unusually large or malformed font requests; inspect crash dumps for heap corruption signatures around glyph buffer handling; correlate with network traffic containing suspicious OpenType or Unicode sequences.
What your security team should do
- Immediately upgrade all instances of the listed Firefox package to the provided fixed version
- Inventory other products that statically or dynamically link HarfBuzz 8.5.0–10.0.1 and schedule upgrades
- Apply network segmentation and application sandboxing around text-rendering workloads until patches are deployed
- Monitor EPSS and KEV status; the current low score does not eliminate the need for prompt remediation on exposed systems
The record
HarfBuzz is a text shaping engine. Starting with 8.5.0 through 10.0.1, there is a heap-based buffer overflow in the hb_cairo_glyphs_from_buffer function.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | harfbuzz | 0 | 10.1.0-2 |
| Ubuntu:14.04:LTS | harfbuzz | 0 | No fix |
| Ubuntu:18.04:LTS | harfbuzz | 0 | No fix |
| Ubuntu:20.04:LTS | harfbuzz | 0 | 2.6.4-1ubuntu4.2 |
| Ubuntu:22.04:LTS | harfbuzz | 0 | 2.7.4-1ubuntu3.1 |
| Ubuntu:24.04:LTS | harfbuzz | 0 | 8.3.0-2build2 |
| Ubuntu:24.10 | harfbuzz | 0 | 9.0.0-1ubuntu0.1 |
| Ubuntu:25.04 | harfbuzz | 0 | 10.2.0-1 |
| Ubuntu:25.10 | harfbuzz | 0 | 10.2.0-1 |
| Ubuntu:Pro:14.04:LTS | harfbuzz | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | harfbuzz | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | harfbuzz | 0 | No fix |
| openSUSE:Tumbleweed | harfbuzz | 0 | 10.1.0-2.1 |
Related vulnerabilities
- CVE-2015-9274 HarfBuzz before 1.0.4 allows remote attackers to cause a denial of service (invalid read… Also affects harfbuzz
- CVE-2015-8947 hb-ot-layout-gpos-table.hh in HarfBuzz before 1.0.5 allows remote attackers to cause a… Also affects harfbuzz
- CVE-2026-22693 HarfBuzz is a text shaping engine. Also affects harfbuzz
- CVE-2026-112403 Pillow is a Python imaging library. CWE-122
- CVE-2026-112393 Pillow is a Python imaging library. CWE-122
- CVE-2026-112395 Pillow is a Python imaging library. CWE-122
- CVE-2026-103658 GNU Aspell 0.60.8.2 (first vulnerable version is not known) contains a heap-based buffer… CWE-122
- CVE-2026-107161 A heap-based buffer overflow flaw was found in Cyrus SASL. CWE-122