translate-toolkit is vulnerable to Denial of Service
45
Medium Risk
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.
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.
translate-toolkit is vulnerable to Denial of Service in versions 0.0.1 - 3.19.18.
Upgrade the translate-toolkit library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.