{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-32146", "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db", "state": "PUBLISHED", "assignerShortName": "EEF", "dateReserved": "2026-03-10T22:37:29.213Z", "datePublished": "2026-04-11T12:59:22.911Z", "dateUpdated": "2026-07-15T04:14:12.633Z" }, "containers": { "cna": { "affected": [ { "cpes": [ "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*" ], "defaultStatus": "unaffected", "modules": [ "compiler-core" ], "packageName": "gleam", "packageURL": "pkg:sid/gleam.run/gleam", "product": "Gleam", "programFiles": [ "compiler-core/src/config.rs", "compiler-core/src/manifest.rs" ], "programRoutines": [ { "name": "compiler_core::config::dependencies_map::deserialize" }, { "name": "compiler_core::config::package_name::deserialize" } ], "vendor": "Gleam", "versions": [ { "changes": [ { "at": "1.15.4", "status": "unaffected" } ], "lessThan": "*", "status": "affected", "version": "1.9.0-rc1", "versionType": "semver" } ] }, { "collectionURL": "https://github.com", "cpes": [ "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*" ], "defaultStatus": "unaffected", "modules": [ "compiler-core" ], "packageName": "gleam-lang/gleam", "packageURL": "pkg:github/gleam-lang/gleam", "product": "Gleam", "programFiles": [ "compiler-core/src/config.rs", "compiler-core/src/manifest.rs" ], "programRoutines": [ { "name": "compiler_core::config::dependencies_map::deserialize" }, { "name": "compiler_core::config::package_name::deserialize" } ], "repo": "https://github.com/gleam-lang/gleam", "vendor": "Gleam", "versions": [ { "changes": [ { "at": "1.15.4", "status": "unaffected" } ], "lessThan": "*", "status": "affected", "version": "1.9.0-rc1", "versionType": "semver" }, { "changes": [ { "at": "92aae3913570e8d8962f6399404777d313045bfa", "status": "unaffected" }, { "at": "2dc0467f822c75de94697a912755d172928ee40a", "status": "unaffected" } ], "lessThan": "*", "status": "affected", "version": "a4fde22445ab8e5cc79c2ff48971616cb570702c", "versionType": "git" } ] }, { "collectionURL": "https://ghcr.io", "cpes": [ "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*" ], "defaultStatus": "unaffected", "modules": [ "compiler-core" ], "packageName": "gleam-lang/gleam", "packageURL": "pkg:oci/gleam?repository_url=ghcr.io/gleam-lang", "product": "Gleam", "programFiles": [ "compiler-core/src/config.rs", "compiler-core/src/manifest.rs" ], "programRoutines": [ { "name": "compiler_core::config::dependencies_map::deserialize" }, { "name": "compiler_core::config::package_name::deserialize" } ], "vendor": "Gleam", "versions": [ { "lessThan": "v1.15.4-elixir", "status": "affected", "version": "v1.9.0-rc1-elixir", "versionType": "other" }, { "lessThan": "v1.15.4-erlang", "status": "affected", "version": "v1.9.0-rc1-erlang", "versionType": "other" }, { "lessThan": "v1.15.4-node", "status": "affected", "version": "v1.9.0-rc1-node", "versionType": "other" }, { "lessThan": "v1.15.4-node-slim", "status": "affected", "version": "v1.9.0-rc1-node-slim", "versionType": "other" }, { "lessThan": "v1.15.4-elixir-slim", "status": "affected", "version": "v1.9.0-rc1-elixir-slim", "versionType": "other" }, { "lessThan": "v1.15.4-erlang-slim", "status": "affected", "version": "v1.9.0-rc1-erlang-slim", "versionType": "other" }, { "lessThan": "v1.15.4-erlang-alpine", "status": "affected", "version": "v1.9.0-rc1-erlang-alpine", "versionType": "other" }, { "lessThan": "v1.15.4-elixir-alpine", "status": "affected", "version": "v1.9.0-rc1-elixir-alpine", "versionType": "other" }, { "lessThan": "v1.15.4-node-alpine", "status": "affected", "version": "v1.9.0-rc1-node-alpine", "versionType": "other" }, { "lessThan": "v1.15.4-scratch", "status": "affected", "version": "v1.9.0-rc1-scratch", "versionType": "other" } ] } ], "configurations": [ { "lang": "en", "supportingMedia": [ { "base64": false, "type": "text/html", "value": "

The project must use git-based dependencies (direct or transitive), or the victim must run gleam deps download on a repository with a malicious manifest.toml lockfile. Projects that exclusively use Hex dependencies and do not clone untrusted repositories are not affected.

Projects that exclusively use trusted or personally controlled git dependencies, or dependencies pinned to verified commit SHAs, are not exposed.

" } ], "value": "The project must use git-based dependencies (direct or transitive), or the victim must run gleam deps download on a repository with a malicious manifest.toml lockfile. Projects that exclusively use Hex dependencies and do not clone untrusted repositories are not affected.\n\nProjects that exclusively use trusted or personally controlled git dependencies, or dependencies pinned to verified commit SHAs, are not exposed." } ], "cpeApplicability": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.15.4", "versionStartIncluding": "1.9.0-rc1", "vulnerable": true } ], "negate": false, "operator": "OR" } ] } ], "credits": [ { "lang": "en", "type": "remediation developer", "value": "John Downey" }, { "lang": "en", "type": "analyst", "value": "Louis Pilfold" }, { "lang": "en", "type": "analyst", "value": "Jonatan Männchen / EEF" } ], "descriptions": [ { "lang": "en", "supportingMedia": [ { "base64": false, "type": "text/html", "value": "Improper path validation vulnerability in the Gleam compiler's handling of git dependencies allows arbitrary file system modification during dependency download.

Dependency names from gleam.toml and manifest.toml are incorporated into filesystem paths without sufficient validation or confinement to the intended dependency directory, allowing attacker-controlled paths (via relative traversal such as ../ or absolute paths) to target filesystem locations outside that directory. When resolving git dependencies (e.g. via gleam deps download), the computed path is used for filesystem operations including directory deletion and creation.

This vulnerability occurs during the dependency resolution and download phase, which is generally expected to be limited to fetching and preparing dependencies within a confined directory. A malicious direct or transitive git dependency can exploit this issue to delete and overwrite arbitrary directories outside the intended dependency directory, including attacker-chosen absolute paths, potentially causing data loss. In some environments, this may be further leveraged to achieve code execution, for example by overwriting git hooks or shell configuration files.

This issue affects Gleam from 1.9.0-rc1 until 1.15.4.

" } ], "value": "Improper path validation vulnerability in the Gleam compiler's handling of git dependencies allows arbitrary file system modification during dependency download.\n\nDependency names from gleam.toml and manifest.toml are incorporated into filesystem paths without sufficient validation or confinement to the intended dependency directory, allowing attacker-controlled paths (via relative traversal such as ../ or absolute paths) to target filesystem locations outside that directory. When resolving git dependencies (e.g. via gleam deps download), the computed path is used for filesystem operations including directory deletion and creation.\n\nThis vulnerability occurs during the dependency resolution and download phase, which is generally expected to be limited to fetching and preparing dependencies within a confined directory. A malicious direct or transitive git dependency can exploit this issue to delete and overwrite arbitrary directories outside the intended dependency directory, including attacker-chosen absolute paths, potentially causing data loss. In some environments, this may be further leveraged to achieve code execution, for example by overwriting git hooks or shell configuration files.\n\nThis issue affects Gleam from 1.9.0-rc1 until 1.15.4." } ], "impacts": [ { "capecId": "CAPEC-139", "descriptions": [ { "lang": "en", "value": "CAPEC-139 Relative Path Traversal" } ] }, { "capecId": "CAPEC-597", "descriptions": [ { "lang": "en", "value": "CAPEC-597 Absolute Path Traversal" } ] } ], "metrics": [ { "cvssV4_0": { "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "Safety": "NOT_DEFINED", "attackComplexity": "LOW", "attackRequirements": "NONE", "attackVector": "LOCAL", "baseScore": 8.3, "baseSeverity": "HIGH", "exploitMaturity": "NOT_DEFINED", "privilegesRequired": "NONE", "providerUrgency": "NOT_DEFINED", "subAvailabilityImpact": "HIGH", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "userInteraction": "ACTIVE", "valueDensity": "NOT_DEFINED", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H", "version": "4.0", "vulnAvailabilityImpact": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnerabilityResponseEffort": "NOT_DEFINED" }, "format": "CVSS", "scenarios": [ { "lang": "en", "value": "GENERAL" } ] } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-22", "description": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db", "shortName": "EEF", "dateUpdated": "2026-07-15T04:14:12.633Z" }, "references": [ { "tags": [ "vendor-advisory", "related" ], "url": "https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j" }, { "tags": [ "related" ], "url": "https://cna.erlef.org/cves/CVE-2026-32146.html" }, { "tags": [ "related" ], "url": "https://osv.dev/vulnerability/EEF-CVE-2026-32146" }, { "tags": [ "patch" ], "url": "https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf" }, { "tags": [ "patch" ], "url": "https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a" } ], "solutions": [ { "lang": "en", "supportingMedia": [ { "base64": false, "type": "text/html", "value": "

Upgrade to Gleam 1.15.4 or later.

Both patches must be applied: the original incomplete fix (1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf, backported as 55bb36e6d7febfbbc48c4d001e0ae13eb0312d78 to 1.15) and the follow-up fix (2dc0467f822c75de94697a912755d172928ee40a, backported as 92aae3913570e8d8962f6399404777d313045bfa to 1.15). Gleam 1.15.4 includes both.

" } ], "value": "Upgrade to Gleam 1.15.4 or later.\n\nBoth patches must be applied: the original incomplete fix (1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf, backported as 55bb36e6d7febfbbc48c4d001e0ae13eb0312d78 to 1.15) and the follow-up fix (2dc0467f822c75de94697a912755d172928ee40a, backported as 92aae3913570e8d8962f6399404777d313045bfa to 1.15). Gleam 1.15.4 includes both." } ], "source": { "discovery": "EXTERNAL" }, "title": "Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification", "workarounds": [ { "lang": "en", "supportingMedia": [ { "base64": false, "type": "text/html", "value": "" } ], "value": "* Avoid using untrusted git dependencies, especially without pinning to a specific commit SHA\n* Review dependency trees carefully, including transitive git dependencies\n* Run dependency resolution commands in a restricted or isolated environment (e.g. containers)" } ], "x_generator": { "engine": "Vulnogram 0.2.0" } }, "adp": [ { "metrics": [ { "other": { "type": "ssvc", "content": { "timestamp": "2026-04-13T17:44:39.043742Z", "id": "CVE-2026-32146", "options": [ { "Exploitation": "poc" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "version": "2.0.3" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2026-04-13T17:44:51.962Z" } }, { "affected": [ { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:10" ], "defaultStatus": "unaffected", "packageName": "firefox", "product": "Red Hat Enterprise Linux 10", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:10" ], "defaultStatus": "unaffected", "packageName": "gjs", "product": "Red Hat Enterprise Linux 10", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:10" ], "defaultStatus": "unaffected", "packageName": "thunderbird", "product": "Red Hat Enterprise Linux 10", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:7" ], "defaultStatus": "unaffected", "packageName": "firefox", "product": "Red Hat Enterprise Linux 7", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:8" ], "defaultStatus": "unaffected", "packageName": "firefox", "product": "Red Hat Enterprise Linux 8", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:8" ], "defaultStatus": "unaffected", "packageName": "mozjs60", "product": "Red Hat Enterprise Linux 8", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:8" ], "defaultStatus": "unaffected", "packageName": "thunderbird", "product": "Red Hat Enterprise Linux 8", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:9" ], "defaultStatus": "unaffected", "packageName": "firefox", "product": "Red Hat Enterprise Linux 9", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:9" ], "defaultStatus": "unaffected", "packageName": "gjs", "product": "Red Hat Enterprise Linux 9", "vendor": "Red Hat" }, { "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "cpes": [ "cpe:/o:redhat:enterprise_linux:9" ], "defaultStatus": "unaffected", "packageName": "thunderbird", "product": "Red Hat Enterprise Linux 9", "vendor": "Red Hat" } ], "datePublic": "2026-04-11T12:59:22.911Z", "descriptions": [ { "lang": "en", "value": "A flaw was found in the Gleam compiler. A malicious direct or transitive git dependency can exploit an improper path validation vulnerability in the Gleam compiler's handling of git dependencies during dependency download. This allows for arbitrary file system modification, including the deletion and creation of directories outside the intended dependency directory, potentially leading to data loss. In certain environments, this could be further leveraged to achieve arbitrary code execution." } ], "metrics": [ { "other": { "content": { "namespace": "https://access.redhat.com/security/updates/classification/", "value": "Important" }, "type": "Red Hat severity rating" } }, { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "LOCAL", "availabilityImpact": "HIGH", "baseScore": 8.6, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H", "version": "3.1" }, "format": "CVSS" } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-22", "description": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", "lang": "en", "type": "CWE" } ] } ], "references": [ { "tags": [ "vdb-entry", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/security/cve/CVE-2026-32146" }, { "name": "RHBZ#2457578", "tags": [ "issue-tracking", "x_refsource_REDHAT" ], "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2457578" }, { "tags": [ "x_sadp-csaf-vex" ], "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json" } ], "timeline": [ { "lang": "en", "time": "2026-04-11T14:00:57.102Z", "value": "Reported to Red Hat." }, { "lang": "en", "time": "2026-04-11T12:59:22.911Z", "value": "Made public." } ], "title": "gleam: Gleam compiler: Arbitrary file system modification and potential code execution via improper path validation in git dependency handling.", "x_adpType": "supplier", "x_generator": { "engine": "sadp-cli 1.0.0" }, "providerMetadata": { "orgId": "0b0ca135-0b70-47e7-9f44-1890c2a1c46c", "shortName": "redhat-SADP", "dateUpdated": "2026-07-15T01:08:32.162Z" } } ] } }