Intel

AIKIDO-2026-842584

harfrust is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

28

Low Risk

This Affects:

RUSTharfrust
0.1.0 - 0.8.4
Fixed in 0.9.0
Are you affected? Scan for Free

TL;DR

harfrust performs OpenType GPOS positioning and propagates mark and cursive attachment offsets across glyphs while shaping text. When it shapes an overly long grapheme cluster, such as a base character followed by tens of thousands of combining marks, the accumulated signed 32-bit attachment offsets exceed their range. The unchecked additions and subtractions overflow and trigger an arithmetic overflow panic that aborts shaping. The fix replaces the offset arithmetic with saturating operations so the values clamp instead of overflowing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

harfrust is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 0.8.4.

How to fix this

Upgrade the harfrust library to the patch version.