PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-32146 Gleam CVE debrief

CVE-2026-32146 is an improper path validation issue in Gleam’s handling of git dependencies. During dependency download, names from gleam.toml and manifest.toml could be incorporated into filesystem paths without sufficient confinement to the intended dependency directory. That allowed attacker-controlled relative or absolute paths to affect locations outside the expected directory, with the risk of directory deletion, overwrite, and data loss. The issue affects Gleam 1.9.0-rc1 through 1.15.4.

Vendor
Gleam
Product
Unknown
CVSS
HIGH 8.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-04-11
Original CVE updated
2026-07-15
Advisory published
2026-04-11
Advisory updated
2026-07-15

Who should care

Teams that use Gleam projects with git-based dependencies, especially build systems, CI runners, and developer environments that automatically run dependency downloads. Any environment where untrusted or transitive dependencies can influence the dependency graph should treat this as high priority.

Technical summary

NVD and the vendor-linked advisory describe a CWE-22 path traversal weakness in the compiler’s dependency resolution flow. When resolving git dependencies, dependency names from project and manifest files were used to compute filesystem paths without enough validation or directory confinement. The resulting path was then used for filesystem operations such as directory deletion and creation. Because the path could be attacker-controlled, a malicious direct or transitive git dependency could target directories outside the intended dependency storage area. The published vulnerability scope covers Gleam versions from 1.9.0-rc1 up to 1.15.4.

Defensive priority

High. The impact includes arbitrary file system modification during a routine dependency operation, which can lead to data loss and potentially broader compromise if sensitive files or execution-related files are overwritten.

Recommended defensive actions

  • Upgrade Gleam to a version newer than 1.15.4, which is outside the affected range.
  • Review the vendor advisory and linked fixes to confirm the corrected path handling in your deployment pipeline.
  • Restrict dependency sources to trusted repositories where possible, especially for git dependencies.
  • Treat dependency downloads as sensitive operations in CI and local automation, and run them in least-privilege environments.
  • Inspect build and developer environments for unexpected file changes after dependency resolution, particularly outside the dependency cache or vendor directory.

Evidence notes

This debrief is based on the NVD record, the ERLEF CNA advisory, the Gleam security advisory, and the linked patch commits. The supplied description states that dependency names from gleam.toml and manifest.toml were used in filesystem paths without sufficient validation, enabling traversal via relative or absolute paths during git dependency download. NVD lists CWE-22 and an affected version range beginning at 1.9.0 and ending before 1.15.4. No exploit details are included beyond the supplied source summary.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-32146 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-32146

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-32146 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-32146

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://cna.erlef.org/cves/CVE-2026-32146.html

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db - Third Party Advisory

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db - Patch

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db - Patch

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db - Exploit, Vendor Advisory

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://osv.dev/vulnerability/EEF-CVE-2026-32146

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db - Third Party Advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.