Gleam up to 1.16.x compiler-cli/src/fs.rs gleam_files link following

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.1$0-$5k0.00

Summaryinfo

A vulnerability has been found in Gleam up to 1.16.x and classified as critical. Affected by this issue is the function gleam_files of the file compiler-cli/src/fs.rs. This manipulation causes link following. This vulnerability is handled as CVE-2026-42795. It is possible to launch the attack on the local host. There is not any exploit available. The affected component should be upgraded.

Detailsinfo

A vulnerability has been found in Gleam up to 1.16.x and classified as critical. Affected by this vulnerability is the function gleam_files of the file compiler-cli/src/fs.rs. The manipulation with an unknown input leads to a link following vulnerability. The CWE definition for the vulnerability is CWE-59. The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

Symlink following vulnerability in Gleam's Hex package export allows files outside the project root to be embedded in the generated package tarball. The file collection helpers (gleam_files, native_files, private_files) in compiler-cli/src/fs.rs use follow_links(true) when walking publishable directories such as src/ and priv/. The collected paths are added to the package archive via add_path_to_tar in compiler-cli/src/publish.rs without verifying that the resolved target remains within the project root. A symlink placed under a publishable directory will cause gleam export hex-tarball or gleam publish to embed the contents of the symlink target into the generated Hex package. An attacker with write access to the project repository can place a symlink in src/ or priv/ pointing to an arbitrary file. When a maintainer or CI pipeline runs gleam publish or gleam export hex-tarball, local files readable by the publisher (such as secrets, tokens, or SSH keys) are silently embedded into the published package artifact. This issue affects Gleam from 0.10.0-rc1 until 1.17.0.

The weakness was released by Aly as GHSA-qhh5-fg4c-8gqc. It is possible to read the advisory at github.com. This vulnerability is known as CVE-2026-42795 since 04/29/2026. The exploitation appears to be easy. Attacking locally is a requirement. Technical details of the vulnerability are known, but there is no available exploit.

Upgrading to version 1.17.0, 1.17.0-elixir, 1.17.0-elixir-alpine, 1.17.0-elixir-slim, 1.17.0-erlang, 1.17.0-erlang-alpine, 1.17.0-erlang-slim, 1.17.0-node, 1.17.0-node-alpine, 1.17.0-node-slim or 1.17.0-scratch eliminates this vulnerability. Applying the patch 6435a5528b9ae0449e2f32be579641ec485f6866 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2026-33928). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒

CVSSv3info

VulDB Meta Base Score: 5.3
VulDB Meta Temp Score: 5.1

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Link following
CWE: CWE-59
CAPEC: 🔒
ATT&CK: 🔒

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Gleam 1.17.0/1.17.0-elixir/1.17.0-elixir-alpine/1.17.0-elixir-slim/1.17.0-erlang/1.17.0-erlang-alpine/1.17.0-erlang-slim/1.17.0-node/1.17.0-node-alpine/1.17.0-node-slim/1.17.0-scratch
Patch: 6435a5528b9ae0449e2f32be579641ec485f6866

Timelineinfo

04/29/2026 CVE reserved
06/02/2026 +34 days Advisory disclosed
06/02/2026 +0 days VulDB entry created
06/02/2026 +0 days VulDB entry last update

Sourcesinfo

Advisory: GHSA-qhh5-fg4c-8gqc
Researcher: Aly
Status: Confirmed

CVE: CVE-2026-42795 (🔒)
GCVE (CVE): GCVE-0-2026-42795
GCVE (VulDB): GCVE-100-367951
EUVD: 🔒

Entryinfo

Created: 06/02/2026 17:19
Updated: 06/02/2026 23:18
Changes: 06/02/2026 17:19 (71), 06/02/2026 23:18 (1)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!