{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-43965",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-43965",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-06-02T13:41:37.421Z",
    "updatedAt": "2026-09-08T01:05:35.928Z",
    "importedAt": "2026-10-24T01:58:14.884Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion",
      "summary": "Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content.\n\nPackage keys read from build/packages/packages.toml by LocalPackages::read_from_disc are passed without validation to paths.build_packages_package(), which constructs a filesystem path by joining the project build directory with the attacker-controlled key. The resulting path is then passed to fs::delete_directory (which calls remove_dir_all). No check is performed to ensure the path remains within the intended build/packages/ directory. Both absolute paths and relative traversal sequences (e.g. ../) are accepted as package keys, allowing deletion of arbitrary directories.\n\nAn attacker who can cause a victim to run gleam deps download on a project containing a malicious build/packages/packages.toml (e.g. by committing the normally-gitignored file to a repository) can cause arbitrary directories on the victim's system to be recursively deleted.\n\nThis issue affects Gleam from 0.18.0-rc1 until 1.17.0.",
      "affected": [
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.18.0-rc1",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "1.17.0"
            }
          ]
        },
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam-lang/gleam",
          "collectionURL": "https://github.com",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.18.0-rc1",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "1.17.0"
            },
            {
              "version": "ed7aec0484f10d60978b63788c8a6497590855ab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "690ca069817bee5f77a28fc3e360627c1da19291"
            }
          ]
        },
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam-lang/gleam",
          "collectionURL": "https://ghcr.io",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "v0.18.0-rc1-elixir",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir"
            },
            {
              "version": "v0.18.0-rc1-erlang",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang"
            },
            {
              "version": "v0.18.0-rc1-node",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node"
            },
            {
              "version": "v0.18.0-rc1-node-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node-slim"
            },
            {
              "version": "v0.18.0-rc1-elixir-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir-slim"
            },
            {
              "version": "v0.18.0-rc1-erlang-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang-slim"
            },
            {
              "version": "v0.18.0-rc1-erlang-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang-alpine"
            },
            {
              "version": "v0.18.0-rc1-elixir-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir-alpine"
            },
            {
              "version": "v0.18.0-rc1-node-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node-alpine"
            },
            {
              "version": "v0.18.0-rc1-scratch",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-scratch"
            }
          ]
        }
      ]
    }
  }
}