LEADTOOLS JPEG2000 Isot parsing Memory Corruption Vulnerability
A heap buffer overflow exists in LEADTOOLS JPEG2000 parsing when handling the Isot field in the SOT marker. An attacker could craft a J2K image to write a null byte out of bounds, potentially leading to code execution.
Originally disclosed on Cisco Talos
An exploitable heap overflow vulnerability exists in the JPEG2000 parsing functionality of LEADTOOLS 20.0.2019.3.15. A specially crafted J2K image file can cause an out of bounds write of a null byte in a heap buffer, potentially resulting in code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The Isot value from the file is used as an index into a buffer allocated based on SIZ dimensions without proper bounds checking, allowing an out-of-bounds write.
Impact
An attacker could potentially execute arbitrary code by causing an out-of-bounds null byte write.
What the attacker needed
Victim opens a crafted J2K image
The fix
The vendor patched the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes a memory corruption bug in a library that reads JPEG2000 images. When the library processes a malicious image, it writes a zero byte outside the intended memory area, which could let an attacker run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.