Lucene search
+L

CVE-2026-42795

🗓️ 02 Jun 2026 13:41:39Reported by EEFType 
cve
 cve
🔗 web.nvd.nist.gov👁 41 Views🌐 WEB

Symlink following in Gleam Hex export embeds files outside the project root into the tarball.

Related
Detection
Affected
Refs
Paths
CNA
Node
gleam-langgleamRange0.10.0-rc11.17.0
[
  {
    "cpes": [
      "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*"
    ],
    "defaultStatus": "unaffected",
    "modules": [
      "compiler-cli"
    ],
    "packageName": "gleam",
    "packageURL": "pkg:sid/gleam.run/gleam",
    "product": "Gleam",
    "programFiles": [
      "compiler-cli/src/fs.rs",
      "compiler-cli/src/publish.rs"
    ],
    "programRoutines": [
      {
        "name": "compiler_cli::fs::gleam_files"
      },
      {
        "name": "compiler_cli::fs::native_files"
      },
      {
        "name": "compiler_cli::fs::private_files"
      },
      {
        "name": "compiler_cli::publish::project_files"
      },
      {
        "name": "compiler_cli::publish::add_path_to_tar"
      }
    ],
    "vendor": "Gleam",
    "versions": [
      {
        "lessThan": "1.17.0",
        "status": "affected",
        "version": "0.10.0-rc1",
        "versionType": "semver"
      }
    ]
  },
  {
    "collectionURL": "https://github.com",
    "cpes": [
      "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*"
    ],
    "defaultStatus": "unaffected",
    "modules": [
      "compiler-cli"
    ],
    "packageName": "gleam-lang/gleam",
    "packageURL": "pkg:github/gleam-lang/gleam",
    "product": "Gleam",
    "programFiles": [
      "compiler-cli/src/fs.rs",
      "compiler-cli/src/publish.rs"
    ],
    "programRoutines": [
      {
        "name": "compiler_cli::fs::gleam_files"
      },
      {
        "name": "compiler_cli::fs::native_files"
      },
      {
        "name": "compiler_cli::fs::private_files"
      },
      {
        "name": "compiler_cli::publish::project_files"
      },
      {
        "name": "compiler_cli::publish::add_path_to_tar"
      }
    ],
    "repo": "https://github.com/gleam-lang/gleam",
    "vendor": "Gleam",
    "versions": [
      {
        "lessThan": "1.17.0",
        "status": "affected",
        "version": "0.10.0-rc1",
        "versionType": "semver"
      },
      {
        "lessThan": "6435a5528b9ae0449e2f32be579641ec485f6866",
        "status": "affected",
        "version": "c82a2d83bd0c06cafdc196820deb3f89a9b3ff7c",
        "versionType": "git"
      }
    ]
  },
  {
    "collectionURL": "https://ghcr.io",
    "cpes": [
      "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*"
    ],
    "defaultStatus": "unaffected",
    "modules": [
      "compiler-cli"
    ],
    "packageName": "gleam-lang/gleam",
    "packageURL": "pkg:oci/gleam?repository_url=ghcr.io/gleam-lang",
    "product": "Gleam",
    "programFiles": [
      "compiler-cli/src/fs.rs",
      "compiler-cli/src/publish.rs"
    ],
    "programRoutines": [
      {
        "name": "compiler_cli::fs::gleam_files"
      },
      {
        "name": "compiler_cli::fs::native_files"
      },
      {
        "name": "compiler_cli::fs::private_files"
      },
      {
        "name": "compiler_cli::publish::project_files"
      },
      {
        "name": "compiler_cli::publish::add_path_to_tar"
      }
    ],
    "vendor": "Gleam",
    "versions": [
      {
        "lessThan": "v1.17.0-elixir",
        "status": "affected",
        "version": "v0.10.0-rc1-elixir",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-erlang",
        "status": "affected",
        "version": "v0.10.0-rc1-erlang",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-node",
        "status": "affected",
        "version": "v0.10.0-rc1-node",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-node-slim",
        "status": "affected",
        "version": "v0.10.0-rc1-node-slim",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-elixir-slim",
        "status": "affected",
        "version": "v0.10.0-rc1-elixir-slim",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-erlang-slim",
        "status": "affected",
        "version": "v0.10.0-rc1-erlang-slim",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-erlang-alpine",
        "status": "affected",
        "version": "v0.10.0-rc1-erlang-alpine",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-elixir-alpine",
        "status": "affected",
        "version": "v0.10.0-rc1-elixir-alpine",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-node-alpine",
        "status": "affected",
        "version": "v0.10.0-rc1-node-alpine",
        "versionType": "other"
      },
      {
        "lessThan": "v1.17.0-scratch",
        "status": "affected",
        "version": "v0.10.0-rc1-scratch",
        "versionType": "other"
      }
    ]
  }
]
ParameterPositionPathDescriptionCWE
src/pathsrc/Symlink following in publishable directories can cause target files outside project root to be embedded in generated Hex package during gleam publish or export hex-tarball.CWE-59
priv/pathsrc/Symlink following in publishable directories can cause target files outside project root to be embedded in generated Hex package during gleam publish or export hex-tarball.CWE-59

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

22 Jul 2026 19:10Current
5.9Medium risk
Vulners AI Score5.9
CVSS 45.1
EPSS0.00132
SSVC
41