396 lines
19 KiB
JSON
396 lines
19 KiB
JSON
{
|
|
"dataType": "CVE_RECORD",
|
|
"dataVersion": "5.2",
|
|
"cveMetadata": {
|
|
"cveId": "CVE-2026-43965",
|
|
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
|
|
"state": "PUBLISHED",
|
|
"assignerShortName": "EEF",
|
|
"dateReserved": "2026-05-04T18:23:25.573Z",
|
|
"datePublished": "2026-06-02T13:41:37.421Z",
|
|
"dateUpdated": "2026-11-10T19:19:01.551Z"
|
|
},
|
|
"containers": {
|
|
"cna": {
|
|
"affected": [
|
|
{
|
|
"cpes": [
|
|
"cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*"
|
|
],
|
|
"defaultStatus": "unaffected",
|
|
"modules": [
|
|
"compiler-cli"
|
|
],
|
|
"packageName": "gleam",
|
|
"packageURL": "pkg:software-id/gleam.run/gleam",
|
|
"product": "Gleam",
|
|
"programFiles": [
|
|
"compiler-cli/src/dependencies.rs"
|
|
],
|
|
"programRoutines": [
|
|
{
|
|
"name": "compiler_cli::dependencies::remove_extra_packages"
|
|
},
|
|
{
|
|
"name": "compiler_cli::dependencies::LocalPackages::read_from_disc"
|
|
},
|
|
{
|
|
"name": "compiler_cli::dependencies::LocalPackages::extra_local_packages"
|
|
}
|
|
],
|
|
"vendor": "Gleam",
|
|
"versions": [
|
|
{
|
|
"lessThan": "1.17.0",
|
|
"status": "affected",
|
|
"version": "0.18.0-rc1",
|
|
"versionType": "semver"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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%2Fgleam-lang%2Fgleam",
|
|
"product": "Gleam",
|
|
"programFiles": [
|
|
"compiler-cli/src/dependencies.rs"
|
|
],
|
|
"programRoutines": [
|
|
{
|
|
"name": "compiler_cli::dependencies::remove_extra_packages"
|
|
},
|
|
{
|
|
"name": "compiler_cli::dependencies::LocalPackages::read_from_disc"
|
|
},
|
|
{
|
|
"name": "compiler_cli::dependencies::LocalPackages::extra_local_packages"
|
|
}
|
|
],
|
|
"vendor": "Gleam",
|
|
"versions": [
|
|
{
|
|
"lessThan": "v1.17.0-elixir",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-elixir",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-erlang",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-erlang",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-node",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-node",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-node-slim",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-node-slim",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-elixir-slim",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-elixir-slim",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-erlang-slim",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-erlang-slim",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-erlang-alpine",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-erlang-alpine",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-elixir-alpine",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-elixir-alpine",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-node-alpine",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-node-alpine",
|
|
"versionType": "other"
|
|
},
|
|
{
|
|
"lessThan": "v1.17.0-scratch",
|
|
"status": "affected",
|
|
"version": "v0.18.0-rc1-scratch",
|
|
"versionType": "other"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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/dependencies.rs"
|
|
],
|
|
"programRoutines": [
|
|
{
|
|
"name": "compiler_cli::dependencies::remove_extra_packages"
|
|
},
|
|
{
|
|
"name": "compiler_cli::dependencies::LocalPackages::read_from_disc"
|
|
},
|
|
{
|
|
"name": "compiler_cli::dependencies::LocalPackages::extra_local_packages"
|
|
}
|
|
],
|
|
"repo": "https://github.com/gleam-lang/gleam",
|
|
"vendor": "Gleam",
|
|
"versions": [
|
|
{
|
|
"lessThan": "690ca069817bee5f77a28fc3e360627c1da19291",
|
|
"status": "affected",
|
|
"version": "ed7aec0484f10d60978b63788c8a6497590855ab",
|
|
"versionType": "git"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"cpeApplicability": [
|
|
{
|
|
"nodes": [
|
|
{
|
|
"cpeMatch": [
|
|
{
|
|
"criteria": "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*",
|
|
"versionEndExcluding": "1.17.0",
|
|
"versionStartIncluding": "0.18.0-rc1",
|
|
"vulnerable": true
|
|
}
|
|
],
|
|
"negate": false,
|
|
"operator": "OR"
|
|
}
|
|
],
|
|
"operator": "AND"
|
|
}
|
|
],
|
|
"credits": [
|
|
{
|
|
"lang": "en",
|
|
"type": "finder",
|
|
"value": "Aly (spect3r1)"
|
|
},
|
|
{
|
|
"lang": "en",
|
|
"type": "finder",
|
|
"value": "Abdelrahman Ahmed Aboelkasem (0x2face)"
|
|
},
|
|
{
|
|
"lang": "en",
|
|
"type": "remediation developer",
|
|
"value": "Louis Pilfold"
|
|
},
|
|
{
|
|
"lang": "en",
|
|
"type": "analyst",
|
|
"value": "Jonatan Männchen / EEF"
|
|
}
|
|
],
|
|
"datePublic": "2026-06-02T13:41:37.000Z",
|
|
"descriptions": [
|
|
{
|
|
"lang": "en",
|
|
"supportingMedia": [
|
|
{
|
|
"base64": false,
|
|
"type": "text/html",
|
|
"value": "<p>Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious <code>build/packages/packages.toml</code> content.</p>\n<p>Package keys read from <code>build/packages/packages.toml</code> by <code>LocalPackages::read_from_disc</code> are passed without validation to <code>paths.build_packages_package()</code>, which constructs a filesystem path by joining the project build directory with the attacker-controlled key. The resulting path is then passed to <code>fs::delete_directory</code> (which calls <code>remove_dir_all</code>). No check is performed to ensure the path remains within the intended <code>build/packages/</code> directory. Both absolute paths and relative traversal sequences (e.g. <code>../</code>) are accepted as package keys, allowing deletion of arbitrary directories.</p>\n<p>An attacker who can cause a victim to run <code>gleam deps download</code> on a project containing a malicious <code>build/packages/packages.toml</code> (e.g. by committing the normally-gitignored file to a repository) can cause arbitrary directories on the victim's system to be recursively deleted.</p>\n<p>This issue affects gleam: from 0.18.0-rc1 before 1.17.0.</p>"
|
|
},
|
|
{
|
|
"base64": false,
|
|
"type": "text/markdown",
|
|
"value": "Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious `build/packages/packages.toml` content.\n\nPackage keys read from `build/packages/packages.toml` by `LocalPackages::read_from_disc` are passed without validation to `paths.build_packages_package()`, which constructs a filesystem path by joining the project build directory with the attacker-controlled key. The resulting path is then passed to `fs::delete_directory` (which calls `remove_dir_all`). No check is performed to ensure the path remains within the intended `build/packages/` directory. Both absolute paths and relative traversal sequences (e.g. `../`) are accepted as package keys, allowing deletion of arbitrary directories.\n\nAn attacker who can cause a victim to run `gleam deps download` on a project containing a malicious `build/packages/packages.toml` (e.g. by committing the normally-gitignored file to a repository) can cause arbitrary directories on the victim's system to be recursively deleted.\n\nThis issue affects gleam: from 0.18.0-rc1 before 1.17.0."
|
|
}
|
|
],
|
|
"value": "Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content.\n\nPackage keys read from build/packages/packages.toml by LocalPackages::read_from_disc are passed without validation to paths.build_packages_package(), which constructs a filesystem path by joining the project build directory with the attacker-controlled key. The resulting path is then passed to fs::delete_directory (which calls remove_dir_all). No check is performed to ensure the path remains within the intended build/packages/ directory. Both absolute paths and relative traversal sequences (e.g. ../) are accepted as package keys, allowing deletion of arbitrary directories.\n\nAn attacker who can cause a victim to run gleam deps download on a project containing a malicious build/packages/packages.toml (e.g. by committing the normally-gitignored file to a repository) can cause arbitrary directories on the victim's system to be recursively deleted.\n\nThis issue affects gleam: from 0.18.0-rc1 before 1.17.0."
|
|
}
|
|
],
|
|
"impacts": [
|
|
{
|
|
"capecId": "CAPEC-139",
|
|
"descriptions": [
|
|
{
|
|
"lang": "en",
|
|
"value": "CAPEC-139 Relative Path Traversal"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"capecId": "CAPEC-597",
|
|
"descriptions": [
|
|
{
|
|
"lang": "en",
|
|
"value": "CAPEC-597 Absolute Path Traversal"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"metrics": [
|
|
{
|
|
"cvssV4_0": {
|
|
"Automatable": "NOT_DEFINED",
|
|
"Recovery": "NOT_DEFINED",
|
|
"Safety": "NOT_DEFINED",
|
|
"attackComplexity": "LOW",
|
|
"attackRequirements": "PRESENT",
|
|
"attackVector": "LOCAL",
|
|
"baseScore": 5.6,
|
|
"baseSeverity": "MEDIUM",
|
|
"privilegesRequired": "NONE",
|
|
"providerUrgency": "NOT_DEFINED",
|
|
"subAvailabilityImpact": "NONE",
|
|
"subConfidentialityImpact": "NONE",
|
|
"subIntegrityImpact": "NONE",
|
|
"userInteraction": "ACTIVE",
|
|
"valueDensity": "NOT_DEFINED",
|
|
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
|
|
"version": "4.0",
|
|
"vulnAvailabilityImpact": "HIGH",
|
|
"vulnConfidentialityImpact": "NONE",
|
|
"vulnIntegrityImpact": "NONE",
|
|
"vulnerabilityResponseEffort": "NOT_DEFINED"
|
|
},
|
|
"format": "CVSS",
|
|
"scenarios": [
|
|
{
|
|
"lang": "en",
|
|
"value": "GENERAL"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"problemTypes": [
|
|
{
|
|
"descriptions": [
|
|
{
|
|
"cweId": "CWE-22",
|
|
"description": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory",
|
|
"lang": "en",
|
|
"type": "CWE"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"providerMetadata": {
|
|
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
|
|
"shortName": "EEF",
|
|
"dateUpdated": "2026-11-10T19:19:01.551Z"
|
|
},
|
|
"references": [
|
|
{
|
|
"name": "Path Traversal in build/packages/packages.toml allows arbitrary directory deletion",
|
|
"tags": [
|
|
"vendor-advisory",
|
|
"related"
|
|
],
|
|
"url": "https://github.com/gleam-lang/gleam/security/advisories/GHSA-jqvf-f6p2-wrv3"
|
|
},
|
|
{
|
|
"name": "EEF CNA record for CVE-2026-43965",
|
|
"tags": [
|
|
"related"
|
|
],
|
|
"url": "https://cna.erlef.org/cves/CVE-2026-43965.html"
|
|
},
|
|
{
|
|
"name": "OSV record EEF-CVE-2026-43965",
|
|
"tags": [
|
|
"related"
|
|
],
|
|
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-43965"
|
|
},
|
|
{
|
|
"name": "Introducing commit ed7aec0 in gleam-lang/gleam",
|
|
"tags": [
|
|
"related"
|
|
],
|
|
"url": "https://github.com/gleam-lang/gleam/commit/ed7aec0484f10d60978b63788c8a6497590855ab"
|
|
},
|
|
{
|
|
"name": "Fix commit 690ca06 in gleam-lang/gleam",
|
|
"tags": [
|
|
"patch"
|
|
],
|
|
"url": "https://github.com/gleam-lang/gleam/commit/690ca069817bee5f77a28fc3e360627c1da19291"
|
|
}
|
|
],
|
|
"source": {
|
|
"discovery": "EXTERNAL"
|
|
},
|
|
"title": "Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion"
|
|
},
|
|
"adp": [
|
|
{
|
|
"references": [
|
|
{
|
|
"url": "https://github.com/gleam-lang/gleam/security/advisories/GHSA-jqvf-f6p2-wrv3",
|
|
"tags": [
|
|
"exploit"
|
|
]
|
|
}
|
|
],
|
|
"metrics": [
|
|
{
|
|
"other": {
|
|
"type": "ssvc",
|
|
"content": {
|
|
"timestamp": "2026-06-02T15:07:44.667204Z",
|
|
"id": "CVE-2026-43965",
|
|
"options": [
|
|
{
|
|
"Exploitation": "poc"
|
|
},
|
|
{
|
|
"Automatable": "no"
|
|
},
|
|
{
|
|
"Technical Impact": "partial"
|
|
}
|
|
],
|
|
"role": "CISA Coordinator",
|
|
"version": "2.0.3"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"title": "CISA ADP Vulnrichment",
|
|
"providerMetadata": {
|
|
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
|
|
"shortName": "CISA-ADP",
|
|
"dateUpdated": "2026-06-02T15:08:13.970Z"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |