Path Traversal Vulnerability in Gleam Dependency Management
CVE-2026-43965

5.6MEDIUM

Key Information:

Vendor

Gleam

Status
Vendor
CVE Published:
2 June 2026

What is CVE-2026-43965?

A path traversal vulnerability in Gleam's dependency management system allows attackers to delete arbitrary directories on a victim's system. This occurs when unvalidated package keys from the build/packages/packages.toml file are passed to the filesystem via paths.build_packages_package(). Malicious actors can exploit this flaw by crafting a malicious packages.toml file, leading unsuspecting users to execute commands that trigger directory deletions, regardless of whether the paths are absolute or exploit relative traversals. This vulnerability impacts Gleam from version 0.18.0-rc1 up to 1.17.0, posing a significant risk to systems using these affected versions.

Affected Version(s)

Gleam 0.18.0-rc1 < 1.17.0

Gleam 0.18.0-rc1 < 1.17.0

Gleam ed7aec0484f10d60978b63788c8a6497590855ab < 690ca069817bee5f77a28fc3e360627c1da19291

References

CVSS V4

Score:
5.6
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Aly (spect3r1)
Abdelrahman Ahmed Aboelkasem (0x2face)
Louis Pilfold
Jonatan Männchen / EEF
.