SecurityContext

CVE-2019-16138: Image Crate - Use After Free

  • Cve: CVE-2019-16138
  • Name: Image Crate - Use After Free
  • Description: 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.
  • Impact: Attackers can execute arbitrary code remotely by crafting specific HDR images, leading to full system compromise.
  • Remediation: Update to version 0.21.3 or later of the image crate.
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft specific HDR images
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02478
  • Epss percentile: 0.84972
  • Assignee: [email protected]
  • Published at: 2019-09-09T12:15:10Z
  • Age in days: 2633
  • Modified at: 2026-06-17T02:21:44Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-16138
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-416Use After Free

References

UrlSourceTags
https://github.com/image-rs/image/pull/985nvdPatch, Third Party Advisory
https://rustsec.org/advisories/RUSTSEC-2019-0014.htmlnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
image-rs:image>= 0.10.2, < 0.21.3nonvd/v1/products/image-rs/image

Projects

RepositoryLink kindsIndexedUrl
image-rs/imagepackage, pullyes/v1/repositories/image-rs/image

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts