{
  "schema_version": "1.4.0",
  "id": "GHSA-5rrv-m36h-qwf8",
  "modified": "2023-06-13T16:55:57Z",
  "published": "2021-08-25T20:44:40Z",
  "aliases": [
    "CVE-2019-16140"
  ],
  "summary": "Use-after-free in chttp",
  "details": "The From implementation for Vec was not properly implemented, returning a vector backed by freed memory. This could lead to memory corruption or be exploited to cause undefined behavior.\n\nA fix was published in version 0.1.3.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "chttp"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0.1.1"
            },
            {
              "fixed": "0.1.3"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-16140"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sagebind/isahc/issues/2"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sagebind/isahc/commit/9e9f1fb44114078c000c78c72e691eeb9e7ac260"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/sagebind/chttp"
    },
    {
      "type": "WEB",
      "url": "https://rustsec.org/advisories/RUSTSEC-2019-0016.html"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-416"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:22:50Z",
    "nvd_published_at": "2019-09-09T12:15:10Z"
  }
}