EEF-CVE-2026-59247

Source
https://cna.erlef.org/osv/EEF-CVE-2026-59247.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-59247.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-59247
Aliases
  • CVE-2026-59247
  • GHSA-4vvc-458m-r82g
Published
2026-07-29T14:24:55.499Z
Modified
2026-07-30T04:15:30.182Z
Severity
  • 7.6 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Insufficient verification of Hex package metadata in Gleam
Details

Summary

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.

Database specific
{
    "capec_ids": [
        "CAPEC-94",
        "CAPEC-185"
    ],
    "cpe_ids": [
        "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*"
    ],
    "cwe_ids": [
        "CWE-345"
    ]
}
References
Credits
    • John Downey - FINDER
    • John Downey - REMEDIATION_DEVELOPER
    • Louis Pilfold - REMEDIATION_REVIEWER

Affected packages

Git / github.com/gleam-lang/gleam

Affected ranges

Type
GIT
Repo
https://github.com/gleam-lang/gleam
Events

Affected versions

Other
nightly
v0.*
v0.18.0
v0.18.0-rc1
v0.18.0-rc2
v0.18.0-rc3
v0.18.1
v0.18.2
v0.19.0
v0.19.0-rc1
v0.19.0-rc2
v0.19.0-rc3
v0.19.0-rc4
v0.20.0
v0.20.0-rc1
v0.20.1
v0.21.0
v0.21.0-rc1
v0.21.0-rc2
v0.22.0
v0.22.0-rc1
v0.22.1
v0.23.0
v0.23.0-rc1
v0.23.0-rc2
v0.24.0
v0.24.0-rc1
v0.24.0-rc2
v0.24.0-rc3
v0.24.0-rc4
v0.25.0
v0.25.0-rc1
v0.25.0-rc2
v0.25.1
v0.25.2
v0.25.3
v0.26.0
v0.26.0-rc1
v0.26.1
v0.26.2
v0.27.0
v0.27.0-rc1
v0.28.0
v0.28.0-rc1
v0.28.0-rc2
v0.28.0-rc3
v0.28.1
v0.28.2
v0.28.3
v0.29.0
v0.29.0-rc1
v0.29.0-rc2
v0.30.0
v0.30.0-rc1
v0.30.0-rc2
v0.30.0-rc3
v0.30.0-rc4
v0.30.1
v0.30.2
v0.30.3
v0.30.4
v0.30.5
v0.31.0
v0.31.0-rc1
v0.32.0
v0.32.0-rc1
v0.32.0-rc2
v0.32.0-rc3
v0.32.1
v0.32.2
v0.32.3
v0.32.4
v0.33.0
v0.33.0-rc1
v0.33.0-rc2
v0.33.0-rc3
v0.33.0-rc4
v0.34.0
v0.34.0-rc1
v0.34.0-rc2
v0.34.1
v1.*
v1.0.0
v1.0.0-rc1
v1.0.0-rc2
v1.1.0
v1.1.0-rc1
v1.1.0-rc2
v1.1.0-rc3
v1.10.0
v1.10.0-rc1
v1.11.0
v1.11.0-rc1
v1.11.0-rc2
v1.11.1
v1.12.0
v1.12.0-rc1
v1.12.0-rc2
v1.12.0-rc3
v1.13.0
v1.13.0-rc1
v1.13.0-rc2
v1.14.0
v1.14.0-rc1
v1.14.0-rc2
v1.14.0-rc3
v1.15.0
v1.15.0-rc1
v1.15.0-rc2
v1.15.1
v1.16.0
v1.16.0-rc1
v1.16.0-rc2
v1.16.0-rc3
v1.16.0-rc4
v1.17.0
v1.17.0-rc1
v1.17.0-rc2
v1.18.0-rc1
v1.18.0-rc2
v1.2.0
v1.2.0-rc1
v1.2.0-rc2
v1.2.1
v1.3.0
v1.3.0-rc1
v1.3.0-rc2
v1.3.0-rc3
v1.3.1
v1.3.2
v1.4.0
v1.4.0-rc1
v1.4.1
v1.5.0
v1.5.0-rc1
v1.5.0-rc2
v1.6.0
v1.6.0-rc1
v1.6.0-rc2
v1.6.1
v1.7.0-rc1
v1.7.0-rc2
v1.7.0-rc3
v1.8.0
v1.8.0-rc1
v1.9.0
v1.9.0-rc1
v1.9.0-rc2
v1.9.1

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-59247.json"