CVE-2019-16138Image-rs Image
Critical 9.8 No auth needed
Follow: this CVE · Image-rs · Image-rs Image We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Image.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| image-rs | image | ≥ 0.10.2 < 0.21.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- rustsec.org Third Party Advisory