cve.bz

CVE-2021-3139 tcmu-runner project tcmu-runner: Path traversal

8.1 highEPSS 2.7%Fix available

High (8.1) in tcmu-runner project tcmu-runner. EPSS 2.7% estimated probability of exploitation activity in the next 30 days.

On this page
In Open-iSCSI tcmu-runner 1.3.x, 1.4.x, and 1.5.x through 1.5.2, xcopy_locate_udev in tcmur_cmd_handler.c lacks a check for transport-layer restrictions, allowing remote attackers to read or write files via directory traversal in an XCOPY request. For example, an attack can occur over a network if the attacker has access to one iSCSI LUN. NOTE: relative to CVE-2020-28374, this is a similar mistake in a different algorithm.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
2.7% (unchanged from 2.7% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3139 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3139?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3139?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3139 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tcmu-runner_project:tcmu-runnerfrom 1.3.0 through 1.5.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14tcmu1.5.2-6DEBIAN-CVE-2021-3139
Ubuntu20.04:LTStcmu1.5.2-5ubuntu0.20.04.1UBUNTU-CVE-2021-3139 USN-4707-1
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moretcmuno fix listedUBUNTU-CVE-2021-3139
Red Hatceph_storage:3::el7ceph, librbd1, librgw2 and 23 more2:12.2.12-139.el7cpRHSA-2021:1518
Red Hatceph_storage:3::el7ceph-ansible0:3.2.56-1.el7cpRHSA-2021:1518
Red Hatceph_storage:3::el7cephmetrics, cephmetrics-ansible0:2.0.10-1.el7cpRHSA-2021:1518
Red Hatceph_storage:3::el7grafana0:5.2.4-3.el7cpRHSA-2021:1518
Red Hatceph_storage:3::el7tcmu-runner, tcmu-runner-debuginfo0:1.4.0-3.el7cpRHSA-2021:1518
Red Hatceph_storage:4::el7ceph, librbd1, librgw2 and 31 more2:14.2.11-147.el7cpRHSA-2021:1452
Red Hatceph_storage:4::el7ceph-ansible0:4.0.49.2-1.el7cpRHSA-2021:1452
Red Hatceph_storage:4::el7libtcmu, tcmu-runner0:1.5.2-2.el7cpRHSA-2021:1452
Red Hatceph_storage:4::el8ceph, librbd1, librgw2 and 53 more2:14.2.11-147.el8cpRHSA-2021:1452
Red Hatceph_storage:4::el8ceph-ansible0:4.0.49.2-1.el8cpRHSA-2021:1452
Red Hatceph_storage:4::el8gperftools, gperftools-libs, gperftools-debugsource and 1 more0:2.6.3-3.el8cpRHSA-2021:1452
Red Hatceph_storage:4::el8libtcmu, tcmu-runner0:1.5.2-3.el8cpRHSA-2021:1452
SUSEEnterprise Storage 6tcmu-runner1.4.0-4.3.1SUSE-SU-2021:0143-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 moretcmu-runner1.4.0-3.9.1SUSE-SU-2021:0158-1
SUSELinux Enterprise Module for Server Applications 15 SP2tcmu-runner1.5.2-3.3.1SUSE-SU-2021:0093-1
openSUSELeap 15.1tcmu-runner1.4.0-lp151.3.9.1openSUSE-SU-2021:0128-1
openSUSELeap 15.2tcmu-runner1.5.2-lp152.2.3.1openSUSE-SU-2021:0097-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue did not affect the version of tcmu-runner as shipped with Red Hat Gluster Storage 3, as it did not include support for Extended Copy (XCOPY).

Red Hat Ceph Storage 3 and 4 are affected, as they ship an affected version of tcmu-runner with XCOPY.

Red Hat OpenShift Container Storage (RHOCS) 4 shipped tcmu-runner package for the usage of RHOCS 4.2 only, that has reached End Of Life. The shipped version of tcmu-runner package is no longer used and supported with the release of RHOCS 4.3.

Red Hat's mitigation

As this feature can be guarded behind an authentication and firewall rules, limit access with firewall rules and enforcing strong password hygiene. This may not be a suitable option if many uncontrolled hosts mount the networked iSCSI device.

ProductPackageStateAdvisory
Red Hat Ceph Storage 3 - ELSceph-2:12.2.12-139.el7cpFixed 2021-05-06RHSA-2021:1518
Red Hat Ceph Storage 3 - ELSceph-ansible-0:3.2.56-1.el7cpFixed 2021-05-06RHSA-2021:1518
Red Hat Ceph Storage 3 - ELScephmetrics-0:2.0.10-1.el7cpFixed 2021-05-06RHSA-2021:1518
Red Hat Ceph Storage 3 - ELSgrafana-0:5.2.4-3.el7cpFixed 2021-05-06RHSA-2021:1518
Red Hat Ceph Storage 3 - ELStcmu-runner-0:1.4.0-3.el7cpFixed 2021-05-06RHSA-2021:1518
Red Hat Ceph Storage 4.2ceph-2:14.2.11-147.el7cpFixed 2021-04-28RHSA-2021:1452
Red Hat Ceph Storage 4.2ceph-ansible-0:4.0.49.2-1.el7cpFixed 2021-04-28RHSA-2021:1452
Red Hat Ceph Storage 4.2gperftools-0:2.6.3-3.el8cpFixed 2021-04-28RHSA-2021:1452
Red Hat Ceph Storage 4.2tcmu-runner-0:1.5.2-2.el7cpFixed 2021-04-28RHSA-2021:1452
Red Hat Openshift Container Storage 4tcmu-runnerWill not fix
Red Hat Storage 3tcmu-runnerNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3139.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON