Skip to content
Info disclosure Advisory Advanced CVE-2019-5090

LEADTOOLS libltdic.so DICOM LDicomNet::receive information disclosure vulnerability

An out-of-bounds read in LEADTOOLS libltdic.so's DICOM packet parsing allows an attacker to send a crafted packet that causes the library to read beyond the allocated buffer, potentially disclosing heap memory. The attacker could then store and retrieve that memory via DICOM requests, or cause a denial of service by crashing the application.

Lilith [-_-]zzzZZZ Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An exploitable information disclosure vulnerability exists in the DICOM packet-parsing functionality of LEADTOOLS libltdic.so, version 20.0.2019.3.15. A specially crafted packet can cause an out-of-bounds read, resulting in information disclosure.

Lilith [-_-]zzzZZZ, 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 library does not check that the declared file size matches the actual packet size before copying data into a buffer.

Impact

An attacker could disclose heap memory or cause a denial of service by crashing the application.

What the attacker needed

Network access to the DICOM service

How it was found

  1. Send a DICOM packet with a data transfer opcode and a declared file size larger than the actual packet size.
  2. The library copies the declared number of bytes from the packet buffer, reading out of bounds.
  3. Use a store request to save the out-of-bounds data into the DICOM datastore.
  4. Use a retrieve request to read back the stored data.

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 bug is in a library that handles medical images over a network. When the library reads a packet, it trusts a size field and copies more data than it actually received, so it reads past the end of the buffer. That extra data can be sent back to the attacker or cause the program to crash.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Lilith [-_-]zzzZZZ

View all

1 more disclosed report, 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.