CVE-2004-0815 in Samba
The unix_clean_name function in Samba 2.2.x through 2.2.11, and 3.0.x before 3.0.2a, trims certain directory names down to absolute paths, which could allow remote attackers to bypass the specified share restrictions and read, write, or list arbitrary files via "/.////" style sequences in pathnames.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Samba | Samba | 2.2.0 2.2.0a 2.2.1a 2.2.2 2.2.3 2.2.3a+14 more2.2.4 2.2.5 2.2.6 2.2.7 2.2.7a 2.2.8 2.2.8a 2.2.9 2.2.11 2.2a 3.0.0 3.0.1 3.0.2 3.0.2a |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
The unix_clean_name function in Samba 2.2.x through 2.2.11, and 3.0.x before 3.0.2a, trims certain directory names down to absolute paths, which could allow remote attackers to bypass the specified share restrictions and read, write, or list arbitrary files via "/.////" style sequences in pathnames.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2004-0815 |
|---|---|
| BreachSpider ID | BS-2004-GLOBAL-008139-H |
| CVSS vector | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Published | 2004-11-03 |
| Last modified | 2026-06-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2004. A high severity vulnerability affects Samba systems (CVE-2004-0815). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: The unix_clean_name function in Samba 2.2.x through 2.2.11, and 3.0.x before 3.0.2a, trims certain directory names down to absolute paths, which could allow remote attackers to bypass the specified share restrictions and read, write, or list arbitrary files via "/.////" style sequences in pathnames. CVSS vector: AV:N/AC:L/Au:N/C:P/I:P/A:P.
Questions
What is CVE-2004-0815?
This vulnerability was disclosed in 2004. A high severity vulnerability affects Samba systems (CVE-2004-0815). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2004-0815?
CVE-2004-0815 has CVSS 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. EPSS: 4.9%.
Is CVE-2004-0815 actively exploited?
No confirmed active exploitation of CVE-2004-0815 as of 2026-09-25.
How do I remediate CVE-2004-0815?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2004-0815?
CVE-2004-0815 affects Samba Samba.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Samba","product":"Samba","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.