Skip to content
Info disclosure Advisory Advanced CVE-2013-6629

libjpeg Information Disclosure Vulnerability (CVE-2013-6629)

libjpeg fails to handle objects in memory correctly, so a crafted image can disclose memory contents. That leak could let an attacker defeat ASLR, which on its own does not give code execution but can be combined with another flaw.

Michal Zalewski Follow

Originally disclosed on Microsoft

High 4.7 View original

Description

An information disclosure vulnerability exists within the open-source libjpeg image-processing library where it fails to properly handle objects in memory, allowing an attacker to retrieve information that could lead to an Address Space Layout Randomization (ASLR) bypass. An attacker who successfully exploited this vulnerability could cause information to be disclosed that could allow for bypassing the ASLR security feature that protects users from a broad class of vulnerabilities. The security feature bypass itself does not allow arbitrary code execution. However, an attacker could use the ASLR bypass vulnerability in conjunction with another vulnerability, such as a remote code execution vulnerability, that could take advantage of the ASLR bypass to run arbitrary code. To exploit this vulnerability, an attacker could convince a user to run a specially crafted application. The security update addresses the vulnerability by correcting how libjpeg handles objects in memory.

Microsoft Graphics Component

Microsoft Graphics Component

The original report as published on the Microsoft Security Response Center, by Michal Zalewski. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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

Likely an out-of-bounds read in libjpeg's handling of image data that returns uninitialised or adjacent memory to the caller.

Impact

An attacker could disclose memory information that may allow bypassing ASLR, but the bypass itself does not permit arbitrary code execution and would need to be chained with another vulnerability.

What the attacker needed

Victim runs a crafted application or image

The fix

The update was fixed by correcting how libjpeg handles objects in memory.

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.

Programs often load images using a shared library called libjpeg. Here that library mishandled memory, so a malicious image could make it reveal leftover memory contents. Those contents can help an attacker work around a protection called ASLR, which normally makes it hard to predict where things sit in memory; the leak alone does not run code.

What is Info disclosure?

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

More by Michal Zalewski

View all

7 more disclosed reports, best first.

More from Microsoft

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.