Skip to content
Memory corruption Advisory Advanced CVE-2019-5154

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.

Cory Duplantis Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

Cory Duplantis, on Cisco Talos

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.

More by Cory Duplantis

View all

35 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.