CVE-2019-16138
CRITICAL 9.8CVSS 3.1Use after free in image
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.
- Published
- 9 Sep 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- GHSA-m2pf-hprp-3vqmRUSTSEC-2019-0014
- Sources
- NVDJSONOSV GHSA-m2pf-hprp-3vqmJSONOSV RUSTSEC-2019-0014JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | image-rs | imagecpe:2.3:a:image-rs:image:*:*:*:*:*:*:*:* |
>= 0.10.2, < 0.21.3 | 0.21.3 |
| OSV | crates.io | image | >= 0.10.2, < 0.21.3 | 0.21.3 |
References
- https://github.com/image-rs/image/pull/985 · Patch, Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2019-0014.html · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2019-16138 · ADVISORY
- https://github.com/image-rs/image · PACKAGE
- https://crates.io/crates/image · PACKAGE
History
- 25 Nov 2026 20:30 UTC · NVD: first stored (published 9 Sep 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)