Skip to content
Noroxi
CVE-2004-0175· NVD / CVE Program· CNA mitre

Directory traversal vulnerability in scp for OpenSSH before 3.4p1 allows remote malicious servers to overwrite arbitrary files.

Directory traversal vulnerability in scp for OpenSSH before 3.4p1 allows remote malicious servers to overwrite arbitrary files. NOTE: this may be a rediscovery of CVE-2000-0992.

MediumCVSS 4.3 · v2.0—No exploit Fix available
Published
Aug 18, 2004
Updated
Jun 16, 2026
EPSS
1.8% · 78th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

18

Monitor

Low priority for now.

CVSS
17 / 40 · 4.3 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 1.8%

Affected systems

VendorProduct
openbsdopenssh

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • openbsd openssh3.0
  • openbsd openssh3.0.1
  • openbsd openssh3.0.1p1
  • openbsd openssh3.0.2
  • openbsd openssh3.0.2p1
  • openbsd openssh3.0p1
  • openbsd openssh3.1
  • openbsd openssh3.1p1
  • openbsd openssh3.2
  • openbsd openssh3.2.2p1
  • openbsd openssh3.2.3p1
  • openbsd openssh3.3
  • openbsd openssh3.3p1
  • openbsd openssh3.4
  • openbsd openssh3.4p1

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12opensshbefore 1:3.9p1-11:3.9p1-1
Red Hat:enterprise_linux:3::askrb5before 0:1.2.7-470:1.2.7-47
Red Hat:enterprise_linux:3::askrb5-debuginfobefore 0:1.2.7-470:1.2.7-47
Red Hat:enterprise_linux:3::askrb5-develbefore 0:1.2.7-470:1.2.7-47
Red Hat:enterprise_linux:3::askrb5-libsbefore 0:1.2.7-470:1.2.7-47
Red Hat:enterprise_linux:3::askrb5-serverbefore 0:1.2.7-470:1.2.7-47
Red Hat:enterprise_linux:3::askrb5-workstationbefore 0:1.2.7-470:1.2.7-47
Red Hat:enterprise_linux:3::asopensshbefore 0:3.6.1p2-33.30.40:3.6.1p2-33.30.4
Red Hat:enterprise_linux:3::asopenssh-askpassbefore 0:3.6.1p2-33.30.40:3.6.1p2-33.30.4
Red Hat:enterprise_linux:3::asopenssh-askpass-gnomebefore 0:3.6.1p2-33.30.40:3.6.1p2-33.30.4
Red Hat:enterprise_linux:3::asopenssh-clientsbefore 0:3.6.1p2-33.30.40:3.6.1p2-33.30.4
Red Hat:enterprise_linux:3::asopenssh-debuginfobefore 0:3.6.1p2-33.30.40:3.6.1p2-33.30.4
Red Hat:enterprise_linux:3::asopenssh-serverbefore 0:3.6.1p2-33.30.40:3.6.1p2-33.30.4
Red Hat:enterprise_linux:3::asrshbefore 0:0.17-17.60:0.17-17.6
Red Hat:enterprise_linux:3::asrsh-debuginfobefore 0:0.17-17.60:0.17-17.6
Red Hat:enterprise_linux:3::asrsh-serverbefore 0:0.17-17.60:0.17-17.6
Red Hat:enterprise_linux:4::askrb5before 0:1.3.4-170:1.3.4-17
Red Hat:enterprise_linux:4::askrb5-debuginfobefore 0:1.3.4-170:1.3.4-17
Red Hat:enterprise_linux:4::askrb5-develbefore 0:1.3.4-170:1.3.4-17
Red Hat:enterprise_linux:4::askrb5-libsbefore 0:1.3.4-170:1.3.4-17
Red Hat:enterprise_linux:4::askrb5-serverbefore 0:1.3.4-170:1.3.4-17
Red Hat:enterprise_linux:4::askrb5-workstationbefore 0:1.3.4-170:1.3.4-17
Red Hat:enterprise_linux:4::asrshbefore 0:0.17-25.30:0.17-25.3
Red Hat:enterprise_linux:4::asrsh-debuginfobefore 0:0.17-25.30:0.17-25.3

+1

Other highest-scoring records for the same primary product.

  • CVE-2023-38408The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if
    63This week
  • CVE-2023-25136OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling.
    53Plan
  • CVE-2018-15473OpenSSH through 7.7 is prone to a user enumeration vulnerability due to not delaying bailout for an invalid authenticating user until after
    51Plan
  • CVE-2016-6210sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static password when the us
    50Plan
  • CVE-2016-6515The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password authentication, which
    48Plan
  • CVE-2002-0640Buffer overflow in sshd in OpenSSH 2.3.1 through 3.3 may allow remote attackers to execute arbitrary code via a large number of responses du
    48Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:openssh1:3.9p1-1 · Debian:12Package registry (OSV)
red hat:krb50:1.2.7-47 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:krb5-debuginfo0:1.2.7-47 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:krb5-devel0:1.2.7-47 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:openssh0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:openssh-askpass0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:openssh-askpass-gnome0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:openssh-clients0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:openssh-debuginfo0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:openssh-server0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rsh0:0.17-17.6 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rsh-debuginfo0:0.17-17.6 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rsh-server0:0.17-17.6 · Red Hat:enterprise_linux:3::asPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

    If successful

    Confidentiality
    none
    Integrity
    P · data or configuration can be modified
    Availability
    none
    Attack complexity
    M
    Confidentiality impact
    None
    Integrity impact
    P
    Availability impact
    None

    CVSS vector

    AV:N/AC:M/Au:N/C:N/I:P/A:N

    nvd-primary

    Root cause

    A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.

    A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

    Vulnerable

    ts
    const file = path.join(ROOT, req.query.name);res.sendFile(file);

    Fixed

    ts
    const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) {  return res.sendStatus(400);}res.sendFile(file);

    Noroxi analysis

    No Noroxi analysis for this record yet

    We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

    We use this product, ask for help

    Change log

    1. Fix✗ → ✓

    For records you follow, these changes also arrive as notifications. →

    References

    All records