CVE-2013-1939: Sabre/dav Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-qg5v-jw6f-rpfj
CWE-20 CWE-22
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2013-1939
GHSA Identifier GHSA-qg5v-jw6f-rpfj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Sabre/dav
Package Ecosystem Packagist
Published Date
Last Updated

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.

sabre/dav fixed: 1.7.7
Upgrade sabre/dav to 1.7.7
sabre/dav fixed: 1.8.5
Upgrade sabre/dav to 1.8.5
sabre/dav fixed: 1.6.9
Upgrade sabre/dav to 1.6.9
Verify Direct and Transitive Dependencies

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

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.

CVE-2013-1939 Affected Sabre/dav Versions

3 component(s)
Fixed Versions:
1.7.71.8.51.6.9
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?
CVE-2013-1939 is a security vulnerability in Sabre/dav involving SabreDAV Directory Traversal vulnerability under CWE-20: Improper Input Validation.
Which Sabre/dav versions are affected?
Affected versions include releases prior to 1.7.7, 1.8.5, 1.6.9 across affected packages: sabre/dav.
What version fixes CVE-2013-1939?
Upgrading to 1.7.7, 1.8.5, 1.6.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sabre/dav affected?
Yes, sabre/dav is affected in releases prior to 1.7.7, 1.8.5, 1.6.9. Upgrade your dependency to 1.7.7, 1.8.5, 1.6.9 or later.
What CWE is associated with CVE-2013-1939?
CVE-2013-1939 is classified under CWE-20: Improper Input Validation (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.).
How can I check Packagist dependencies for CVE-2013-1939?
Run the dependency tree command: 'inspect dependencies for sabre/dav'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}