Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-16138

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-16138
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:37 UTC · Revision 1

Source evidence

CVE-2019-16138

core-osv · Original source

Published 9 Sept 2019, 12:15 UTC

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.

osv:CVE-2019-16138
Complete source record
{
  "id": "c54f3c08eaa7fbc3fe38253b1c95cae8e2e8aaf5464549f718c811207f9817ff",
  "url": "https://osv.dev/vulnerability/CVE-2019-16138",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-16138",
    "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.",
    "evidence": "osv:CVE-2019-16138",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2019-16138",
      "aliases": [
        "CVE-2019-16138",
        "GHSA-m2pf-hprp-3vqm",
        "RUSTSEC-2019-0014"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/image-rs/image",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "841f088871fa1f76fe2a6c2832f109cd979ab11a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:image-rs:image:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.10.2"
                      },
                      {
                        "fixed": "0.21.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.21.2",
            "v0.21.1",
            "v0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-16138.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:48.495241112Z",
      "provider": "osv",
      "references": [
        "https://rustsec.org/advisories/RUSTSEC-2019-0014.html",
        "https://github.com/image-rs/image/pull/985"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2019-16138",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382191,
  "published_at": "2019-09-09T12:15:10.71+00:00"
}