Intel

AIKIDO-2026-870978

translate-toolkit is vulnerable to Denial of Service

Denial of ServiceGHSA-mj5x-cxc2-3w87 Published 3 days ago

45

Medium Risk

This Affects:

PYTHONtranslate-toolkit
0.0.1 - 3.19.18
Fixed in 3.19.19
Are you affected? Scan for Free

TL;DR

The Qt .qm compiled-translation parser in translate/storage/qm.py reads message subsection lengths as signed 32-bit integers and advances the parse cursor by that length without checking that it is non-negative. A crafted file that declares a negative length for a SourceText, Context, or Disambiguating subsection moves the cursor backward onto already-parsed bytes, so the same data is read again and parsing never terminates. The process spins at full CPU indefinitely without raising an error or allocating memory. The fix reads these subsection lengths as unsigned values and rejects malformed messages with invalid lengths.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you parse untrusted or externally supplied .qm (Qt compiled translation) files.

Background info

translate-toolkit is vulnerable to Denial of Service in versions 0.0.1 - 3.19.18.

How to fix this

Upgrade the translate-toolkit library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform