CVE-2013-1939: Sabre/dav Path Traversal Vulnerability
MODERATECVE-2013-1939 is a MODERATE path traversal vulnerability (CWE-20: Improper Input Validation) affecting Sabre/dav libraries in the Packagist ecosystem. The issue involves sabredav directory traversal vulnerability. Remediation is available by upgrading affected packages to version 1.7.7, 1.8.5, 1.6.9.
CVE-2013-1939 at a Glance
How to Fix CVE-2013-1939
To remediate this vulnerability, upgrade all affected Sabre/dav dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade sabre/dav to 1.7.7
Upgrade sabre/dav to 1.8.5
Upgrade sabre/dav to 1.6.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sabre/dav
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-1939, inspect your project dependencies for Sabre/dav:
inspect dependencies for sabre/dav
Analyze the terminal output to locate any version of Sabre/dav in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Sabre/dav, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2013-1939 Affected Sabre/dav Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sabre/dav
|
Packagist |
≥ 1.7.0
< 1.7.7
|
1.7.7
|
|
sabre/dav
|
Packagist |
≥ 1.8.0
< 1.8.5
|
1.8.5
|
|
sabre/dav
|
Packagist |
≥ 1.6.0
< 1.6.9
|
1.6.9
|
References
Frequently Asked Questions
What is CVE-2013-1939?
Which Sabre/dav versions are affected?
What version fixes CVE-2013-1939?
Is sabre/dav affected?
What CWE is associated with CVE-2013-1939?
How can I check Packagist dependencies for CVE-2013-1939?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qg5v-jw6f-rpfj",
"modified" : "2023-07-07T15:45:57Z",
"published" : "2022-05-14T01:52:20Z",
"aliases" : [ "CVE-2013-1939" ],
"summary" : "SabreDAV Directory Traversal vulnerability",
"details" : "The HTML\\Browser plugin in SabreDAV before 1.6.9, 1.7.x before 1.7.7, and 1.8.x before 1.8.5, as used in ownCloud, when running on Windows, does not properly check path separators in the base path, which allows remote attackers to read arbitrary files via a `\\` (backslash) character.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "sabre/dav"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7.0"
}, {
"fixed" : "1.7.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "sabre/dav"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.8.0"
}, {
"fixed" : "1.8.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "sabre/dav"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.6.0"
}, {
"fixed" : "1.6.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1939"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/sabre/dav/CVE-2013-1939.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sabre-io/dav"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/?fromgroups=#!topic/sabredav-discuss/ehOUu7wTSGQ"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/?fromgroups=#%21topic/sabredav-discuss/ehOUu7wTSGQ"
}, {
"type" : "WEB",
"url" : "http://owncloud.org/about/security/advisories/oC-SA-2013-016"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-07T15:45:57Z",
"nvd_published_at" : "2014-03-14T16:55:00Z"
}
}