7.6 HIGH
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Attack Requirement (AT): Present (P)
- Privileges Required (PR): None (N)
- User Interaction (UI): Passive (P)
- Vulnerable System Impact Confidentiality (VC): High (H)
- Vulnerable System Impact Integrity (VI): High (H)
- Vulnerable System Impact Availability (VA): None (N)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): None (N)
- Subsequent System Impact Availability (SA): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Attack Requirement (MAT): Present (P)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): Passive (P)
- Modified Vulnerable System Impact Confidentiality (MVC): High (H)
- Modified Vulnerable System Impact Integrity (MVI): High (H)
- Modified Vulnerable System Impact Availability (MVA): None (N)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): Negligible (N)
- Modified Subsequent System Impact Availability (MSA): Negligible (N)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
- Exploit Maturity (E): Not Defined (X)
by @LeSuisse Activity log
- Created suggestion
-
@LeSuisse
ignored
5 packages
- vscode-extensions.gleam.gleam
- tree-sitter-grammars.tree-sitter-gleam
- vimPlugins.nvim-treesitter-parsers.gleam
- python313Packages.tree-sitter-grammars.tree-sitter-gleam
- python314Packages.tree-sitter-grammars.tree-sitter-gleam
- @LeSuisse accepted
- @LeSuisse published on GitHub
Insufficient verification of Hex package metadata in Gleam
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.
References
Affected products
- <1.18.0
- <v1.18.0-erlang-alpine
- <1.18.0
- <v1.18.0-erlang
- <v1.18.0-node-slim
- <c9c0d48c123c8abae6db8dd61b25ccb427ed3d35
- <v1.18.0-node-alpine
- <v1.18.0-node
- <v1.18.0-scratch
- <v1.18.0-erlang-slim
- <v1.18.0-elixir-slim
- <v1.18.0-elixir
- <v1.18.0-elixir-alpine
Matching in nixpkgs
Ignored packages (5)
pkgs.vscode-extensions.gleam.gleam
Support for the Gleam programming language
pkgs.tree-sitter-grammars.tree-sitter-gleam
Tree-sitter grammar for gleam
pkgs.vimPlugins.nvim-treesitter-parsers.gleam
Tree-sitter grammar for gleam
-
nixos-unstable 0.0.0+rev=0bb1b0a
- nixpkgs-unstable 0.0.0+rev=0bb1b0a
- nixos-unstable-small 0.0.0+rev=cefbd68
-
nixos-26.05 0.0.0+rev=0bb1b0a
- nixos-26.05-small 0.0.0+rev=0bb1b0a
- nixpkgs-26.05-darwin 0.0.0+rev=0bb1b0a
pkgs.python313Packages.tree-sitter-grammars.tree-sitter-gleam
Python bindings for tree-sitter-gleam
Package maintainers
-
@adamcstephens Adam C. Stephens <happy.plan4249@valkor.net>
-
@llakala llakala <elevenaka11@gmail.com>
-
@minijackson Rémi Nicole <minijackson@riseup.net>
-
@ankhers Justin Wood <me@ankhers.dev>
-
@gleber Gleb Peregud <gleber.p@gmail.com>
-
@DianaOlympos Thomas Depierre
-
@yurrriq Eric Bailey <eric@ericb.me>
-
@happysalada Raphael Megzari <raphael@megzari.com>
-
@philtaken Philipp Herzog <philipp.herzog@protonmail.com>