Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain MITM position with trusted CA
-
DeliveryVictim runs gleam dependency resolve/update
-
ExploitForge unsigned Hex API checksum + requirements
-
ExecutionServe tarball matching forged checksum
-
PersistGleam validates forged tarball, records to manifest
-
ImpactMalicious dependency source extracted and compiled
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Exploitation requires all of: (1) the victim runs a Gleam operation that resolves or updates Hex dependencies - manifest.toml missing, a dependency added or updated, or dependency requirements changed (builds reusing an unchanged manifest.toml are NOT affected because they verify against the pinned checksum); (2) the attacker holds an adversary-in-the-middle position able to intercept TLS with a certificate trusted by the Gleam process, e.g. a CA in the OS trust store or one supplied via GLEAM_CACERTS_PATH (matching the CVSS AT:P attack requirement); and (3) the attacker can modify BOTH the unsigned Hex API release response AND the corresponding repository tarball. Limiting factors: the attacker does NOT need the Hex repository signing key, but the MITM-with-trusted-CA and the user-initiated resolution step (UI:P) substantially constrain real-world exploitation to targeted scenarios; affected versions are Gleam 0.18.0 through 1.17.x. |
| Impact | The vendor CVSS 4.0 base score is 7.6 (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N), and the two most important signals are AT:P and UI:P - this is not a drive-by remote flaw. Successful attack requires an adversary already positioned to intercept TLS with a certificate the Gleam process trusts (an OS-trust-store CA or one added via GLEAM_CACERTS_PATH) AND the ability to tamper with both the API response and the repository tarball, and it only fires when dependencies are actually resolved/updated. That is a meaningfully constrained precondition, so despite the high VC/VI impact the practical exploitability is lower than the score suggests. No EPSS score was provided, there is no KEV listing and no known POC, consistent with a theoretical/targeted rather than opportunistic threat. The high-integrity/high-confidentiality rating is justified because forged package source is compiled and executed, but the requirement for pre-existing MITM-with-trusted-CA keeps this a defense-in-depth hardening issue for most users rather than an emergency. |
| Exploit ScenarioDerived | A developer on a corporate network whose laptop trusts a TLS-inspection proxy CA runs |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 29, 2026
Package integrity bypass in the Gleam build tool (compiler-cli) versions 0.18.0 up to 1.18.0 lets an adversary-in-the-middle substitute forged Hex dependency contents during resolution. Although Gleam fetches signature-verified registry metadata, gleam_cli::dependencies::lookup_package instead recorded the SHA-256 outer_checksum and dependency names from a second, unsigned Hex API call into manifest.toml, so the forged tarball validates against its own forged checksum. Exploitation requires an attacker who can both perform TLS interception with a CA trusted by the Gleam process and modify the tarball; there is no public exploit identified at time of analysis and it is not in CISA KEV.
RemediationAI
Vendor-released patch: upgrade Gleam to 1.18.0 or later, which pins the tarball checksum and dependency requirements to the signature-verified registry metadata (fix in commit c9c0d48c123c8abae6db8dd61b25ccb427ed3d35; advisory GHSA-4vvc-458m-r82g). Until you can upgrade, resolve dependencies only from a trusted network and avoid running gleam operations that touch dependency resolution (adding/updating dependencies, changing requirements, or building without a manifest) behind a TLS-inspecting proxy - commit a known-good manifest.toml to source control and reuse it, since builds against an unchanged pinned manifest continue to verify tarballs against the trusted checksum. Do not add untrusted CAs to the OS trust store or point GLEAM_CACERTS_PATH at an interception CA, as that is precisely the trust that this attack abuses; the trade-off is that legitimate corporate TLS-inspection proxies will break Gleam's package fetching, which is the intended safer behavior.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Gleam is a statically typed language for the BEAM (Erlang) virtual machine, and its CLI resolves dependencies from Hex, the Erlang/Elixir package repository. Hex serves two data planes: a signed registry (repository v2 metadata, per hexpm/specifications registry-v2.md) that authenticates each release's dependency requirements and outer_checksum, and a separate unsigned HTTP API. The root cause is CWE-345 (Insufficient Verification of Data Authenticity): the code trusted the unsigned API JSON (via gleam_core::hex::get_package_release) for the checksum and requirements it later used to gate tarball extraction, rather than the signature-verified repository values. Because the Hex repository signing key never covers the API response, the trust anchor was effectively the TLS session - not the package signature. The fix (commit c9c0d48) introduces a VerifiedRelease struct and verified_releases() so the outer_checksum and requirements written to manifest.toml come from the signed hexpm::Package metadata, leaving only build_tools/otp_app (non-security-critical) sourced from the API.
Know when Gleam gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network vector but AC:H reflects the required MITM-with-trusted-CA precondition (AT:P) and UI:R the user-initiated dependency resolution; forged source compromises C and I, no availability impact.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Insufficient Verification of Data Authenticity vulnerability in Gleam allows an adversary in the middle to substitute forged Hex package contents during dependency resolution.
During dependency resolution Gleam fetches package metadata from the signature-verified Hex repository, which covers each release's dependency requirements and SHA-256 outer_checksum. After resolving versions, gleam_cli::dependencies::lookup_package makes a second request to the unsigned Hex API through gleam_core::hex::get_package_release and records the outer_checksum and dependency names from that JSON response into manifest.toml, instead of the values from the verified repository metadata. The Hex repository signature does not cover the API response.
An adversary in the middle who can intercept TLS with a certificate trusted by the Gleam process (for example a TLS-inspecting proxy using a CA in the operating system trust store or added through GLEAM_CACERTS_PATH), and who can modify both the API release response and the corresponding repository tarball, can supply a package archive with a matching forged checksum without the Hex repository signing key. Gleam verifies the forged tarball against the forged checksum, accepts it, and extracts it as a dependency source, resulting in loss of integrity of the downloaded package contents.
Only projects that resolve or update Hex dependencies are affected, which happens when the manifest is missing, a dependency is added or updated, or dependency requirements change. Builds that reuse an unchanged, known-good manifest.toml continue to verify tarballs against its pinned checksum. This issue affects gleam: from 0.18.0 before 1.18.0.
Executive ViewAI
The Gleam build tool (compiler-cli) versions 0.18.0 through 1.18.0 contain a package integrity bypass vulnerability that could allow attackers to inject malicious code into applications during the build process. While no public exploit code has been identified, this supply chain risk affects any organization using vulnerable versions to build software. Immediate patching is essential to prevent potential compromise of built applications.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Path traversal in Gleam compiler versions 1.9.0-rc1 through 1.15.3 and 1.16.0-rc1 allows arbitrary file system modificat
The Gleam build tool (versions 0.32.4 up to but not including 1.19.2) derives the on-disk build directory for each depen
EUVD-2026-50362
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB