CVE-2019-16138 json
Use after free in image
published 2019-08-21 7 y ago modified 2026-06-17 4 mo ago also GHSA-m2pf-hprp-3vqm , RUSTSEC-2019-0014 , EUVD-2021-1787
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
2.48% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | image | >=0.10.2, <0.21.3 |
0.21.3 |
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/image-rs/image/pull/985
web, patch, third-party-advisory
-
rustsec.org
/advisories/RUSTSEC-2019-0014.html
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-16138
advisory
-
github.com
/image-rs/image
package
-
crates.io
/crates/image
package
Sources
- CVE List CVE-2019-16138
- GitHub Advisory GHSA-m2pf-hprp-3vqm
- NVD CVE-2019-16138
- OSV RUSTSEC-2019-0014
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.