modules — security advisory
A flaw was found in environment-modules. A local attacker can exploit this vulnerability by placing a maliciously named modulefile in a location visible to the victim's `MODULEPATH`. When the victim uses Bash completion for `module` or `ml` commands, the malicious module name, containing shell metacharacters, is evaluated as a command. This can lead to arbitrary command execution in the completing user's shell, impacting their confidentiality, integrity, and availability.
- Products
- modules
- Affected versions
- 5.2.0-1, 5.3.0-1, 5.3.0-2, 5.3.1-1, 5.4.0-1, 5.5.0-1, 5.6.0-1, 5.6.1-1, 5.6.1-2, 5.6.1-3, 5.6.2-1, 5.7.0-1
- Fixed versions
- 5.6.1-3
- CVEs
- CVE-2026-85013
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 23:20 UTC · Revision 1
Source evidence
A flaw was found in environment-modules. A local attacker can exploit this vulnerability by placing a maliciously named modulefile in a location visible to the victim's `MODULEPATH`. When the victim uses Bash completion for `module` or `ml` commands, the malicious module name, containing shell metacharacters, is evaluated as a command. This can lead to arbitrary command execution in the completing user's shell, impacting their confidentiality, integrity, and availability.
osv:DEBIAN-CVE-2026-85013
modules
Fixed versions: Not specified
modules
Fixed versions: Not specified
modules
Fixed versions: 5.6.1-3
Complete source record
{
"id": "c68fd82e37b7ca643733d38e24656b1d299c1f824e88a74b4da9e1a96aa7dce8",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-85013",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-85013",
"summary": "A flaw was found in environment-modules. A local attacker can exploit this vulnerability by placing a maliciously named modulefile in a location visible to the victim's `MODULEPATH`. When the victim uses Bash completion for `module` or `ml` commands, the malicious module name, containing shell metacharacters, is evaluated as a command. This can lead to arbitrary command execution in the completing user's shell, impacting their confidentiality, integrity, and availability.",
"evidence": "osv:DEBIAN-CVE-2026-85013",
"products": [
{
"name": {
"value": "modules",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.2.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.3.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.3.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "5.3.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.4.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.5.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.6.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.6.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.6.1-2",
"evidence": "/affected/0/versions"
},
{
"value": "5.6.1-3",
"evidence": "/affected/0/versions"
},
{
"value": "5.6.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.7.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "modules",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.5.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "5.6.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "5.6.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "5.6.1-2",
"evidence": "/affected/1/versions"
},
{
"value": "5.6.1-3",
"evidence": "/affected/1/versions"
},
{
"value": "5.6.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "5.7.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "modules",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.6.1-3",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "5.5.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "5.6.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "5.6.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "5.6.1-2",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-85013",
"aliases": [
"DEBIAN-CVE-2026-85013"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/debian/modules?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"5.2.0-1",
"5.3.0-1",
"5.3.0-2",
"5.3.1-1",
"5.4.0-1",
"5.5.0-1",
"5.6.0-1",
"5.6.1-1",
"5.6.1-2",
"5.6.1-3",
"5.6.2-1",
"5.7.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85013.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/debian/modules?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"5.5.0-1",
"5.6.0-1",
"5.6.1-1",
"5.6.1-2",
"5.6.1-3",
"5.6.2-1",
"5.7.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85013.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.6.1-3"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/debian/modules?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"5.5.0-1",
"5.6.0-1",
"5.6.1-1",
"5.6.1-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85013.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T17:47:40.846819235Z",
"provider": "osv",
"upstream": [
"CVE-2026-85013"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-85013"
]
},
"related_cves": [
{
"value": "CVE-2026-85013",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 418313,
"published_at": "2026-09-15T16:17:34.543+00:00"
}