Live threats

All CVEs / Image-rs

CVE-2019-16138Image-rs Image

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.5%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Sep 9, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-416
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

An issue was discovered in the image crate before 0.21.3 for Rust, affecting the HDR image format decoder. Vec::set_len is called on an uninitialized vector, leading to a use-after-free and arbitrary code execution.

Original NVD text.

What to do

  1. Apply the vendor's security update for Image.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io image ≥ 0.10.2 < 0.21.3 0.21.3 cargo update -p image --precise 0.21.3
crates.io image ≥ 0.10.2 < 0.21.3 0.21.3 cargo update -p image --precise 0.21.3

Per OSV / GitHub Advisories (GHSA-m2pf-hprp-3vqm, RUSTSEC-2019-0014). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
image-rsimage≥ 0.10.2 < 0.21.3

Official sources

References

Links published by the sources. Open them with care.