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
- 3.2.10-10, 3.2.10-9, 4.0.0-1, 4.0.0-2, 4.1.0-1, 4.1.1-1, 4.3.0-2, 4.3.1-1, 4.4.0-1, 4.4.1-1, 5.0.0~alpha-1, 5.0.1-1, 5.3.1-1, 5.4.0-1, 5.5.0-1, 5.6.0-1, 5.6.1-1, 5.6.1-2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-85013
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:23 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:UBUNTU-CVE-2026-85013
modules
Fixed versions: Not specified
modules
Fixed versions: Not specified
modules
Fixed versions: Not specified
modules
Fixed versions: Not specified
modules
Fixed versions: Not specified
modules
Fixed versions: Not specified
modules
Fixed versions: Not specified
Complete source record
{
"id": "a6f597a8f3943aa925118cf320b68aa5dab7f302eb588dccba1e5b3afe362d14",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-85013",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-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:UBUNTU-CVE-2026-85013",
"products": [
{
"name": {
"value": "modules",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.2.10-9",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "modules",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.2.10-10",
"evidence": "/affected/1/versions"
},
{
"value": "4.0.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.0.0-2",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.1-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "modules",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.3.0-2",
"evidence": "/affected/2/versions"
},
{
"value": "4.3.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.4.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.4.1-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "modules",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.0~alpha-1",
"evidence": "/affected/3/versions"
},
{
"value": "5.0.1-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "modules",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.3.1-1",
"evidence": "/affected/4/versions"
},
{
"value": "5.4.0-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "modules",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.6.1-1",
"evidence": "/affected/5/versions"
},
{
"value": "5.6.1-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "modules",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.5.0-1",
"evidence": "/affected/6/versions"
},
{
"value": "5.6.0-1",
"evidence": "/affected/6/versions"
},
{
"value": "5.6.1-1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-85013",
"aliases": [
"UBUNTU-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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/ubuntu/modules?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"3.2.10-9"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85013.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "environment-modules",
"binary_version": "3.2.10-9"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/ubuntu/modules?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"3.2.10-10",
"4.0.0-1",
"4.0.0-2",
"4.1.0-1",
"4.1.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85013.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "environment-modules",
"binary_version": "4.1.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/ubuntu/modules?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"4.3.0-2",
"4.3.1-1",
"4.4.0-1",
"4.4.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85013.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "environment-modules",
"binary_version": "4.4.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/ubuntu/modules?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"5.0.0~alpha-1",
"5.0.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85013.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "environment-modules",
"binary_version": "5.0.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/ubuntu/modules?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"5.3.1-1",
"5.4.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85013.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "environment-modules",
"binary_version": "5.4.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/ubuntu/modules?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"5.6.1-1",
"5.6.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85013.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "environment-modules",
"binary_version": "5.6.1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "modules",
"purl": "pkg:deb/ubuntu/modules?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"5.5.0-1",
"5.6.0-1",
"5.6.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85013.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "environment-modules",
"binary_version": "5.6.1-1"
}
]
}
}
],
"modified": "2026-10-17T13:01:13.459651697Z",
"provider": "osv",
"upstream": [
"CVE-2026-85013"
],
"references": [
"https://ubuntu.com/security/CVE-2026-85013",
"https://www.cve.org/CVERecord?id=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": 361297,
"published_at": "2026-09-15T16:17:00+00:00"
}