CVE-2004-0175: Directory traversal vulnerability in scp for OpenSSH before 3.4p1 allows remote malicious servers to overwrite arbitrary files.
Noroxi assessment
Priority: Monitor (action score 18/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.8% (FIRST EPSS); higher than 79% of all records.
- Fixed version: openssh (Debian:12) 1:3.9p1-1; krb5 (Red Hat:enterprise_linux:3::as) 0:1.2.7-47; krb5-debuginfo (Red Hat:enterprise_linux:3::as) 0:1.2.7-47.
Low priority for now. Upgrade to openssh (Debian:12) 1:3.9p1-1; krb5 (Red Hat:enterprise_linux:3::as) 0:1.2.7-47; krb5-debuginfo (Red Hat:enterprise_linux:3::as) 0:1.2.7-47 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Aug 18, 2004
- Updated
- Jun 16, 2026
- EPSS
- 1.8% · 79th percentile
- CWE
- CWE-22
Report tools
Action score
18
Low priority for now.
- CVSS
- 17 / 40 · 4.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 1.8%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is OpenSSH on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| openbsd | openssh | cpe:2.3:a:openbsd:openssh |
Is OpenSSH on your server exposed to the internet?
The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.
Run a port scanAffected 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
+7 more rows
- 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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | openssh | before 1:3.9p1-1 | 1:3.9p1-1 |
| Red Hat:enterprise_linux:3::as | krb5 | before 0:1.2.7-47 | 0:1.2.7-47 |
| Red Hat:enterprise_linux:3::as | krb5-debuginfo | before 0:1.2.7-47 | 0:1.2.7-47 |
| Red Hat:enterprise_linux:3::as | krb5-devel | before 0:1.2.7-47 | 0:1.2.7-47 |
| Red Hat:enterprise_linux:3::as | krb5-libs | before 0:1.2.7-47 | 0:1.2.7-47 |
| Red Hat:enterprise_linux:3::as | krb5-server | before 0:1.2.7-47 | 0:1.2.7-47 |
| Red Hat:enterprise_linux:3::as | krb5-workstation | before 0:1.2.7-47 | 0:1.2.7-47 |
| Red Hat:enterprise_linux:3::as | openssh | before 0:3.6.1p2-33.30.4 | 0:3.6.1p2-33.30.4 |
| Red Hat:enterprise_linux:3::as | openssh-askpass | before 0:3.6.1p2-33.30.4 | 0:3.6.1p2-33.30.4 |
| Red Hat:enterprise_linux:3::as | openssh-askpass-gnome | before 0:3.6.1p2-33.30.4 | 0:3.6.1p2-33.30.4 |
| Red Hat:enterprise_linux:3::as | openssh-clients | before 0:3.6.1p2-33.30.4 | 0:3.6.1p2-33.30.4 |
| Red Hat:enterprise_linux:3::as | openssh-debuginfo | before 0:3.6.1p2-33.30.4 | 0:3.6.1p2-33.30.4 |
| Red Hat:enterprise_linux:3::as | openssh-server | before 0:3.6.1p2-33.30.4 | 0:3.6.1p2-33.30.4 |
| Red Hat:enterprise_linux:3::as | rsh | before 0:0.17-17.6 | 0:0.17-17.6 |
| Red Hat:enterprise_linux:3::as | rsh-debuginfo | before 0:0.17-17.6 | 0:0.17-17.6 |
| Red Hat:enterprise_linux:3::as | rsh-server | before 0:0.17-17.6 | 0:0.17-17.6 |
| Red Hat:enterprise_linux:4::as | krb5 | before 0:1.3.4-17 | 0:1.3.4-17 |
| Red Hat:enterprise_linux:4::as | krb5-debuginfo | before 0:1.3.4-17 | 0:1.3.4-17 |
| Red Hat:enterprise_linux:4::as | krb5-devel | before 0:1.3.4-17 | 0:1.3.4-17 |
| Red Hat:enterprise_linux:4::as | krb5-libs | before 0:1.3.4-17 | 0:1.3.4-17 |
| Red Hat:enterprise_linux:4::as | krb5-server | before 0:1.3.4-17 | 0:1.3.4-17 |
| Red Hat:enterprise_linux:4::as | krb5-workstation | before 0:1.3.4-17 | 0:1.3.4-17 |
| Red Hat:enterprise_linux:4::as | rsh | before 0:0.17-25.3 | 0:0.17-25.3 |
| Red Hat:enterprise_linux:4::as | rsh-debuginfo | before 0:0.17-25.3 | 0:0.17-25.3 |
+1
Same product
openbsd: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-123158sshd in OpenSSH before 10.6p2 on Linux, when musl libc is used without PAM, lacks a workaround for a password authentication bypass…KEV68This week
- 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-2018-15473OpenSSH through 7.7 is prone to a user enumeration vulnerability due to not delaying bailout for an invalid authenticating user until after…60This week
Published before and after this one in the same product
- ← EarlierCVE-2003-0787Nov 17, 2003 · The PAM conversation function in OpenSSH 3.7.1 and 3.7.1p1 interprets an array of structures as an array of pointers, which allows…31Monitor
- ← EarlierCVE-2003-1562Dec 31, 2003 · sshd in OpenSSH 3.6.1p2 and earlier, when PermitRootLogin is disabled and using PAM keyboard-interactive authentication, does not insert a…32Monitor
- Later →CVE-2004-1653Aug 31, 2004 · The default configuration for OpenSSH enables AllowTcpForwarding, which could allow remote authenticated users to perform a port bounce…28Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:openssh | 1:3.9p1-1 · Debian:12 | Package registry (OSV) |
| red hat:krb5 | 0:1.2.7-47 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:krb5-debuginfo | 0:1.2.7-47 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:krb5-devel | 0:1.2.7-47 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:openssh | 0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:openssh-askpass | 0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:openssh-askpass-gnome | 0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:openssh-clients | 0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:openssh-debuginfo | 0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:openssh-server | 0:3.6.1p2-33.30.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:rsh | 0:0.17-17.6 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:rsh-debuginfo | 0:0.17-17.6 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:rsh-server | 0:0.17-17.6 · Red Hat:enterprise_linux:3::as | Package 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.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
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
Weakness class (CWE)
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')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.
The bug in code
The whole CWE-22 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const file = path.join(ROOT, req.query.name);
res.sendFile(file);Fixed
const file = path.resolve(ROOT, req.query.name);
if (!file.startsWith(ROOT + path.sep)) {
return res.sendStatus(400);
}
res.sendFile(file);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Path TraversalCAPEC-126likelihood: High · Very High
- Using Slashes and URL Encoding Combined to Bypass Validation LogicCAPEC-64likelihood: High · High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
- Using Escaped Slashes in Alternate EncodingCAPEC-78likelihood: High · High
- Using Slashes in Alternate EncodingCAPEC-79likelihood: High · High
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000831
- secunia.com/advisories/17135
- secunia.com/advisories/19243
- www.ciac.org/ciac/bulletins/o-212.shtml
- www.juniper.net/support/security/alerts/adv59739.txt
- www.mandriva.com/security/advisories?name=MDKSA-2005:100
- www.mandriva.com/security/advisories?name=MDVSA-2008:191
- www.novell.com/linux/security/advisories/2004_09_kernel.html
- www.osvdb.org/9550
- www.redhat.com/support/errata/RHSA-2005-074.html
- www.redhat.com/support/errata/RHSA-2005-106.html
- www.redhat.com/support/errata/RHSA-2005-165.html
- www.redhat.com/support/errata/RHSA-2005-481.html
- www.redhat.com/support/errata/RHSA-2005-495.html
- www.redhat.com/support/errata/RHSA-2005-562.html
- www.redhat.com/support/errata/RHSA-2005-567.html
- www.securityfocus.com/bid/9986
- bugzilla.redhat.com/bugzilla/show_bug.cgi?id=120147
- exchange.xforce.ibmcloud.com/vulnerabilities/16323
Vendor advisories and official records. Exploit/PoC links are deliberately left out.