CVE-2019-16138

An issue was discovered in the image crate before 0.21.3 for Rust, affecting the HDR image format decoder

published September 9, 2019

CVSS
—
EPSS
2%
Percentile
84.4
In the wild
Unconfirmed
What it is

⚡ A sneaky use-after-free bug in the Rust image crate lets attackers execute arbitrary code with just one manipulated HDR image! Think of it like a poorly organized kitchen: if a chef mistakenly uses a knife that was just washed and not properly stored away, they could end up cutting themselves or ruining the meal. Here, the uninitialized vector is that dangerous utensil! This vulnerability could allow malicious HDR images to crash your application or, even worse, run harmful code, giving attackers access to your system. That's a recipe for disaster! 🔥

Put simply

Think of it like a poorly organized kitchen: if a chef mistakenly uses a knife that was just washed and not properly stored away, they could end up cutting themselves or ruining the meal. Here, the uninitialized vector is that dangerous utensil! In the image crate before version 0.21.3, the HDR image format decoder calls Vec::set_len on an uninitialized vector, leading to potential exploitation through arbitrary code execution due to a use-after-free condition.

What to do

This vulnerability could allow malicious HDR images to crash your application or, even worse, run harmful code, giving attackers access to your system. That's a recipe for disaster! 🔥 Upgrade to the latest version of the image crate (0.21.3 or later) to patch this vulnerability. Review your use of HDR images in Rust projects to ensure that all dependencies are secure and up to date. This is fixable! Update your crate and you'll be well on your way to keeping your code safe! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02478 · 84.4th percentile
Published
2019-09-09T11:49Z
EPSS history
Timeline
  • 09 SEP 11:49Z
    An issue was discovered in the image crate before 0.21.3 for Rust, affecting the HDR image format decoder
    cvelistv5