VYPR
Unrated severityNVD Advisory· Published Jan 25, 2006· Updated Apr 16, 2026

CVE-2006-0225

CVE-2006-0225

Description

A flaw in scp (OpenSSH 4.2p1) allows attackers to execute arbitrary commands via double expansion of shell metacharacters in filenames.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A flaw in scp (OpenSSH 4.2p1) allows attackers to execute arbitrary commands via double expansion of shell metacharacters in filenames.

Vulnerability

A command injection vulnerability exists in the scp utility as shipped in OpenSSH 4.2p1. The flaw stems from improper handling of filenames containing shell metacharacters (e.g., ;, |, ` `) or spaces. During local-to-local or remote-to-remote file copies, the shell expands these metacharacters a second time, allowing an attacker to inject arbitrary commands [2]. Affected packages include openssh-client` in Ubuntu 4.10, 5.04, and 5.10, and various enterprise Linux distributions [2][3][4].

Exploitation

An attacker can exploit this vulnerability by tricking a user into running scp on a specially crafted filename (e.g., by using an innocuous wildcard like * that matches the malicious filename). No authentication or special privileges are needed beyond the user executing scp; the attack can be performed locally or via a remote-to-remote copy where the attacker controls the source or destination filename [2]. The attacker supplies a filename containing shell metacharacters, which scp passes to a shell without proper sanitization, resulting in execution of the injected commands with the user's privileges.

Impact

Successful exploitation allows the attacker to execute arbitrary shell commands with the privileges of the user running scp. This leads to partial compromise of confidentiality, integrity, and availability (CVSS 4.6, impact subscore 6.4/10) [2]. The attacker can read, modify, or delete files accessible to the user, install malware, or pivot to other systems.

Mitigation

Patched versions are available: Ubuntu packages were fixed in versions 1:3.8.1p1-11ubuntu3.3 (4.10), 1:3.9p1-1ubuntu2.2 (5.04), and 1:4.1p1-7ubuntu4.1 (5.10) [2]. Red Hat and Avaya issued security updates (e.g., RHSA-2006-0298, ASA-2006-174) [3][4]. Users are advised to upgrade their openssh packages. Where possible, use sftp instead of scp for operations involving untrusted filenames, as scp is not designed to handle them securely [2]. No workaround exists other than applying the patch.

AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

35
  • OpenBSD/OpenSSH34 versions
    cpe:2.3:a:openbsd:openssh:3.0:*:*:*:*:*:*:*+ 33 more
    • cpe:2.3:a:openbsd:openssh:3.0:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.0.1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.0.1p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.0.2:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.0.2p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.0p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.1p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.2:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.2.2p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.2.3p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.3:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.3p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.4:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.4p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.5:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.5p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.6:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.6.1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.6.1p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.6.1p2:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.7:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.7.1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.7.1p2:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.8:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.8.1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.8.1p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.9:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.9.1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:3.9.1p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:4.0p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:4.1p1:*:*:*:*:*:*:*
    • cpe:2.3:a:openbsd:openssh:4.2p1:*:*:*:*:*:*:*
    • (no CPE)range: = 4.2p1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

64

News mentions

0

No linked articles in our index yet.