CVE-2026-42795Public exploit

Local file disclosure via symlink-following package export

Published Jun 2, 2026 · Updated Jun 2, 2026

Link following in Gleam before 1.17.0 allows attackers to disclose local files through a crafted symlink during Hex package export. The gleam_files, native_files, and private_files helpers follow links while collecting src and priv entries, and add_path_to_tar archives each resolved target without confirming that it remains under the project root. Exploitation requires write access to the repository and a maintainer or CI job to run a publish or export command, after which package recipients can read files available to that publisher.

CVSS severity5.1
Medium
EPSS probability0.20%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Link following in Gleam before 1.17.0 allows attackers to disclose local files through a crafted symlink during Hex package export. The gleam_files, native_files, and private_files helpers follow links while collecting src and priv entries, and add_path_to_tar archives each resolved target without confirming that it remains under the project root. Exploitation requires write access to the repository and a maintainer or CI job to run a publish or export command, after which package recipients can read files available to that publisher.

The record

CVE
CVE-2026-42795
Published
Jun 2, 2026
Updated
Jun 2, 2026
Vendor
Gleam
Product
Gleam
Classifications
CWE-200, CWE-59, CAPEC-132, T1204.002
Attack vector
local
Privileges
Unavailable

Timeline

How it unfolded

  1. Jun 2, 2026CVE publishedPublication date reported by the CVE source.
  2. Jun 2, 2026Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=0.10.0-rc1 <1.17.0
  2. Affected versionversion=c82a2d83bd0c06cafdc196820deb3f89a9b3ff7c <6435a5528b9ae0449e2f32be579641ec485f6866
  3. Affected versionversion=v0.10.0-rc1-elixir-alpine <v1.17.0-elixir-alpine
  4. Affected versionversion=v0.10.0-rc1-elixir-slim <v1.17.0-elixir-slim
  5. Affected versionversion=v0.10.0-rc1-elixir <v1.17.0-elixir
  6. Affected versionversion=v0.10.0-rc1-erlang-alpine <v1.17.0-erlang-alpine
  7. Affected versionversion=v0.10.0-rc1-erlang-slim <v1.17.0-erlang-slim
  8. Affected versionversion=v0.10.0-rc1-erlang <v1.17.0-erlang
  9. Affected versionversion=v0.10.0-rc1-node-alpine <v1.17.0-node-alpine
  10. Affected versionversion=v0.10.0-rc1-node-slim <v1.17.0-node-slim
  11. Affected versionversion=v0.10.0-rc1-node <v1.17.0-node
  12. Affected versionversion=v0.10.0-rc1-scratch <v1.17.0-scratch

What conditions does exploitation require?

Attack vectorlocal
Required privilegesUnavailable in this record.

What is affected?

Gleam · Gleamversion=0.10.0-rc1 <1.17.0; version=c82a2d83bd0c06cafdc196820deb3f89a9b3ff7c <6435a5528b9ae0449e2f32be579641ec485f6866; version=v0.10.0-rc1-elixir-alpine <v1.17.0-elixir-alpine; version=v0.10.0-rc1-elixir-slim <v1.17.0-elixir-slim; version=v0.10.0-rc1-elixir <v1.17.0-elixir; version=v0.10.0-rc1-erlang-alpine <v1.17.0-erlang-alpine; version=v0.10.0-rc1-erlang-slim <v1.17.0-erlang-slim; version=v0.10.0-rc1-erlang <v1.17.0-erlang; version=v0.10.0-rc1-node-alpine <v1.17.0-node-alpine; version=v0.10.0-rc1-node-slim <v1.17.0-node-slim; version=v0.10.0-rc1-node <v1.17.0-node; version=v0.10.0-rc1-scratch <v1.17.0-scratch

Published CVSS scores

5.1Erlang Ecosystem FoundationCVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
PrivilegesUnavailable
Known exploitationUnconfirmed
Public exploitPublished

Weakness, pattern, technique

CWE-200Exposure of Sensitive Information to an Unauthorized Actor
CWE-59Improper Link Resolution Before File Access ('Link Following')
CAPEC-132Symlink Attack
T1204.002User Execution: Malicious File

Public exploit references

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo