CVE-2026-42795

MEDIUMPre-NVD 5.15.1
EchelonGraph scoreMEDIUM confidence

This medium-severity CVE scores 5.1 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.1%, top 97% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:eef, epss
Elevated
5.1
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • Lower severity and no public exploit yet
CISA-KEV: Not listedEPSS: 0%CVSS: 5.1Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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.

CVSS v3
5.1
EG Score
5.1(medium)
EPSS
3.1%
KEV
Not listed

Published

June 2, 2026

Last Modified

June 2, 2026

Advisory Details (4)

Auto-updated Jun 20, 2026
🔬 Proof of concept available. Patch available. Sources: github_commit, github.
github_commit

commit 6435a5528b9a (gleam-lang/gleam)

Fix landed in gleam-lang/gleam commit 6435a5528b9a — awaiting tagged release

https://github.com/gleam-lang/gleam/commit/6435a5528b9ae0449e2f32be579641ec485f6866
generic

OSV - Open Source Vulnerabilities

https://osv.dev/vulnerability/EEF-CVE-2026-42795
generic

Symlink Following in Hex Package Export Allows Embedding Files Outside Project Root | Erlang Ecosystem Foundation CNA

https://cna.erlef.org/cves/CVE-2026-42795.html
github Patch Available🟡 PoC Available

Symlink dereference during Hex package export can leak files outside the project root · Advisory · gleam-lang/gleam · GitHub

https://github.com/gleam-lang/gleam/security/advisories/GHSA-qhh5-fg4c-8gqc

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 7× in last 7d / 49× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-12 05:46 UTCEPSS rescore
  2. 2026-07-11 12:58 UTCEG score recompute
  3. 2026-07-11 08:27 UTCEPSS rescore
  4. 2026-07-09 19:10 UTCEPSS rescore
  5. 2026-07-08 16:39 UTCEG score recompute
  6. 2026-07-08 15:16 UTCEPSS rescore
  7. 2026-07-07 13:46 UTCEPSS rescore
  8. 2026-07-06 02:23 UTCEPSS rescore
  9. 2026-07-06 02:23 UTCEPSS rescore
  10. 2026-07-04 06:31 UTCEPSS rescore
  11. 2026-07-03 23:47 UTCEG score recompute
  12. 2026-07-02 19:52 UTCEG score recompute
  13. 2026-07-01 21:13 UTCEG score recompute
  14. 2026-06-30 23:22 UTCEPSS rescore
  15. 2026-06-30 22:43 UTCEG score recompute
  16. 2026-06-29 14:41 UTCEG score recompute
  17. 2026-06-29 14:06 UTCEPSS rescore
  18. 2026-06-28 16:14 UTCEG score recompute
  19. 2026-06-28 14:07 UTCEPSS rescore
  20. 2026-06-28 04:56 UTCEPSS rescore
  21. 2026-06-27 17:48 UTCEG score recompute
  22. 2026-06-27 03:08 UTCEPSS rescore
  23. 2026-06-26 19:21 UTCEG score recompute
  24. 2026-06-25 20:55 UTCEG score recompute
  25. 2026-06-25 13:49 UTCEPSS rescore
Show 53 more
  1. 2026-06-25 13:49 UTCEPSS rescore
  2. 2026-06-24 22:28 UTCEG score recompute
  3. 2026-06-24 14:05 UTCEPSS rescore
  4. 2026-06-23 21:33 UTCEPSS rescore
  5. 2026-06-23 19:54 UTCEG score recompute
  6. 2026-06-22 14:25 UTCEPSS rescore
  7. 2026-06-22 14:25 UTCEPSS rescore
  8. 2026-06-21 14:56 UTCEPSS rescore
  9. 2026-06-21 14:56 UTCEPSS rescore
  10. 2026-06-21 01:59 UTCEPSS rescore
  11. 2026-06-20 13:08 UTCEG score recompute
  12. 2026-06-19 19:25 UTCEPSS rescore
  13. 2026-06-18 17:52 UTCEPSS rescore
  14. 2026-06-18 17:52 UTCEPSS rescore
  15. 2026-06-18 16:41 UTCEG score recompute
  16. 2026-06-17 17:53 UTCEPSS rescore
  17. 2026-06-17 17:30 UTCEG score recompute
  18. 2026-06-16 18:08 UTCEG score recompute
  19. 2026-06-16 17:52 UTCEPSS rescore
  20. 2026-06-15 19:07 UTCEG score recompute
  21. 2026-06-15 17:49 UTCEPSS rescore
  22. 2026-06-14 18:35 UTCEG score recompute
  23. 2026-06-13 23:00 UTCEPSS rescore
  24. 2026-06-13 20:08 UTCEG score recompute
  25. 2026-06-12 23:12 UTCEPSS rescore
  26. 2026-06-12 23:12 UTCEPSS rescore
  27. 2026-06-12 21:26 UTCEG score recompute
  28. 2026-06-11 22:59 UTCEG score recompute
  29. 2026-06-11 14:00 UTCEPSS rescore
  30. 2026-06-11 00:33 UTCEG score recompute
  31. 2026-06-10 22:18 UTCEPSS rescore
  32. 2026-06-10 13:22 UTCEPSS rescore
  33. 2026-06-10 13:22 UTCEPSS rescore
  34. 2026-06-10 02:07 UTCEG score recompute
  35. 2026-06-09 03:41 UTCEG score recompute
  36. 2026-06-08 14:17 UTCEPSS rescore
  37. 2026-06-08 14:17 UTCEPSS rescore
  38. 2026-06-08 05:14 UTCEG score recompute
  39. 2026-06-07 15:25 UTCEPSS rescore
  40. 2026-06-07 15:25 UTCEPSS rescore
  41. 2026-06-07 06:48 UTCEG score recompute
  42. 2026-06-06 13:47 UTCEPSS rescore
  43. 2026-06-06 13:47 UTCEPSS rescore
  44. 2026-06-06 08:21 UTCEG score recompute
  45. 2026-06-05 22:47 UTCEPSS rescore
  46. 2026-06-05 09:55 UTCEG score recompute
  47. 2026-06-05 06:10 UTCEPSS rescore
  48. 2026-06-05 06:10 UTCEPSS rescore
  49. 2026-06-04 13:12 UTCEPSS rescore
  50. 2026-06-04 13:12 UTCEPSS rescore
  51. 2026-06-04 11:28 UTCEG score recompute
  52. 2026-06-03 13:01 UTCEG score recompute
  53. 2026-06-02 14:34 UTCEG score recompute

Frequently asked(5)

What is CVE-2026-42795?
CVE-2026-42795 is a medium vulnerability published on June 2, 2026. 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 (gleamfiles, nativefiles, privatefiles) in compiler-cli/src/fs.rs use followlinks(true) when walking publishable…
When was CVE-2026-42795 disclosed?
CVE-2026-42795 was first published in the National Vulnerability Database on June 2, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-42795 actively exploited?
CVE-2026-42795 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 3.1% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-42795?
CVE-2026-42795 has a CVSS v4.0 base score of 5.1 (CNA self-assessment; NVD's own analysis pending).
How do I remediate CVE-2026-42795?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-42795, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2026-42795

Explore →

Is Your Infrastructure Affected by CVE-2026-42795?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.