Intel

AIKIDO-2026-10968

diffy is vulnerable to Denial of Service (DoS)

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

53

Medium Risk

This Affects:

RUSTdiffy
0.1.0 - 0.4.2
Fixed in 0.5.0
Are you affected? Scan for Free

TL;DR

The diffy patch parser can panic when processing crafted unified diff input through Patch::from_str or related parsing APIs. Malformed hunk range values can overflow integer arithmetic during header parsing and abort the process, and quoted file paths that decode to non-UTF-8 bytes trigger a panic when converting parsed paths to text patches. Before the fix, untrusted patch content could crash the hosting application. The fix validates hunk ranges with checked arithmetic and returns parse errors instead of panicking on invalid UTF-8 filenames.

Who does this affect?

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

Background info

diffy is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 0.4.2.

How to fix this

Upgrade the diffy library to the patch version.