CVE-2026-109152

jbardin scp.py SCP Receive _recv_pushd path traversal

Published Oct 13, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A security vulnerability has been detected in jbardin scp.py up to 0.16.1. The impacted element is the function _recv_file/_recv_pushd of the component SCP Receive Handler. The manipulation leads to path traversal. Remote exploitation of the attack is possible. Upgrading to version 0.16.2 is sufficient to resolve this issue. The identifier of the patch is 42fc3aaa71411daed60544e3b40179c1038bed5d. Upgrading the affected component is advised. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

Analysis

AI-generated

Technical impact

Affected is the _recv_file and _recv_pushd functions in the SCP Receive Handler of scp.py up to version 0.16.1. An attacker can craft SCP commands that cause a path traversal condition, enabling the creation or modification of files outside the intended destination directory. This remote exploitation can compromise confidentiality by reading protected files, integrity by altering critical files, and availability if essential files are overwritten. The weakness aligns with CWE‑22.

Affected Systems

The vulnerability impacts jbardin:scp.py. All releases through 0.16.1 are susceptible, while the patch incorporated in commit 42fc3aaa71411daed60544e3b40179c1038bed5d is available in release v0.16.2. Earlier versions lacking this commit remain at risk.

Risk and Exploitability

The CVSS base score is 5.3, indicating a moderate severity. EPSS is not available, so the current exploitation probability is unknown. The issue is remote and the component is commonly used for SCP transfers, making it a potential attack vector. The vulnerability is not listed in CISA’s KEV catalog. Attackers can trigger the traversal by initiating an SCP session that sends a filename including directory jumps to reach paths outside the intended base directory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade scp.py to version 0.16.2 or later to patch the vulnerability.
  • If immediate upgrade is not possible, configure the SCP service to run in a chroot or restrict the base directory so that _recv_file/_recv_pushd never writes outside the allowed path. Adjust file permissions to prevent unintended writes from untrusted clients.
  • Implement logging of SCP transfer attempts and audit file paths for abnormal traversal patterns, alerting on suspicious activity.

Generated by OpenCVE AI on October 13, 2026 at 11:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A security vulnerability has been detected in jbardin scp.py up to 0.16.1. The impacted element is the function _recv_file/_recv_pushd of the component SCP Receive Handler. The manipulation leads to path traversal. Remote exploitation of the attack is possible. Upgrading to version 0.16.2 is sufficient to resolve this issue. The identifier of the patch is 42fc3aaa71411daed60544e3b40179c1038bed5d. Upgrading the affected component is advised. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.
Title jbardin scp.py SCP Receive _recv_pushd path traversal
First Time appeared Jbardin
Jbardin scp.py
Weaknesses CWE-22
CPEs cpe:2.3:a:jbardin:scp.py:*:*:*:*:*:*:*:*
Vendors & Products Jbardin
Jbardin scp.py
References
Metrics cvssV2_0

{'score': 6.4, 'vector': 'AV:N/AC:L/Au:N/C:N/I:P/A:P/E:ND/RL:OF/RC:C'}

cvssV3_0

{'score': 5.4, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L/E:X/RL:O/RC:C'}

cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L/E:X/RL:O/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Oct 13, 2026, 10:56 AM
Reserved
Oct 12, 2026, 11:40 AM
Status
Deferred
Published
Oct 13, 2026, 10:17 AM
Modified
Oct 13, 2026, 1:29 PM
Severity
Moderate
Public date
Oct 13, 2026, 9:45 AM