ID CVE-2020-14352
Summary A flaw was found in librepo in versions before 1.12.1. A directory traversal vulnerability was found where it failed to sanitize paths in remote repository metadata. An attacker controlling a remote repository may be able to copy files outside of the destination directory on the targeted system via path traversal. This flaw could potentially result in system compromise via the overwriting of critical system files. The highest threat from this flaw is to users that make use of untrusted third-party repositories.
References
Vulnerable Configurations
  • cpe:2.3:a:redhat:librepo:1.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.3:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.3:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.4:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.4:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.5:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.5:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.6:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.6:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.7:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.7:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.8:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.8:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.9:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.9:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.10:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.10:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.11:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.11:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.12:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.12:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.13:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.13:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.14:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.14:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.15:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.15:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.16:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.16:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.17:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.17:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.18:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.18:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.19:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.19:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.7.20:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.7.20:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.8.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.8.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.8.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.8.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.9.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.9.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.9.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.9.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.9.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.9.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.9.3:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.9.3:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.9.4:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.9.4:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.9.5:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.9.5:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.9.6:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.9.6:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.10.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.10.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.10.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.10.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.10.3:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.10.3:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.10.4:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.10.4:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.10.5:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.10.5:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.10.6:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.10.6:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.11.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.11.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.11.1:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.11.1:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.11.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.11.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.11.3:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.11.3:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:librepo:1.12.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:librepo:1.12.0:*:*:*:*:*:*:*
  • cpe:2.3:a:opensuse:backports_sle:15.0:sp2:*:*:*:*:*:*
    cpe:2.3:a:opensuse:backports_sle:15.0:sp2:*:*:*:*:*:*
  • cpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:*
    cpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
CVSS
Base: 8.5 (as of 09-11-2020 - 14:28)
Impact:
Exploitability:
CWE CWE-22
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Using Slashes and URL Encoding Combined to Bypass Validation Logic
    This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple ways of encoding a URL and abuse the interpretation of the URL. A URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
  • Using Escaped Slashes in Alternate Encoding
    This attack targets the use of the backslash in alternate encoding. An attacker can provide a backslash as a leading character and causes a parser to believe that the next character is special. This is called an escape. By using that trick, the attacker tries to exploit alternate ways to encode the same character which leads to filter problems and opens avenues to attack.
  • Path Traversal
    An adversary uses path manipulation methods to exploit insufficient input validation of a target to obtain access to data that should be not be retrievable by ordinary well-formed requests. A typical variety of this attack involves specifying a path to a desired file together with dot-dot-slash characters, resulting in the file access API or function traversing out of the intended directory structure and into the root file system. By replacing or modifying the expected path information the access function or API retrieves the file desired by the attacker. These attacks either involve the attacker providing a complete path to a targeted file or using control characters (e.g. path separators (/ or \) and/or dots (.)) to reach desired directories or files.
  • Using Slashes in Alternate Encoding
    This attack targets the encoding of the Slash characters. An attacker would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the attacker many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.
Access
VectorComplexityAuthentication
NETWORK MEDIUM SINGLE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:N/AC:M/Au:S/C:C/I:C/A:C
redhat via4
advisories
bugzilla
id 1866498
title CVE-2020-14352 librepo: missing path validation in repomd.xml may lead to directory traversal
oval
OR
  • comment Red Hat Enterprise Linux must be installed
    oval oval:com.redhat.rhba:tst:20070304026
  • AND
    • comment Red Hat Enterprise Linux 8 is installed
      oval oval:com.redhat.rhba:tst:20193384074
    • OR
      • AND
        • comment librepo is earlier than 0:1.11.0-3.el8_2
          oval oval:com.redhat.rhsa:tst:20203658001
        • comment librepo is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20193583050
      • AND
        • comment librepo-debugsource is earlier than 0:1.11.0-3.el8_2
          oval oval:com.redhat.rhsa:tst:20203658003
        • comment librepo-debugsource is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20193583052
      • AND
        • comment python3-librepo is earlier than 0:1.11.0-3.el8_2
          oval oval:com.redhat.rhsa:tst:20203658005
        • comment python3-librepo is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20193583054
rhsa
id RHSA-2020:3658
released 2020-09-08
severity Important
title RHSA-2020:3658: librepo security update (Important)
rpms
  • librepo-0:1.11.0-3.el8_2
  • librepo-debuginfo-0:1.11.0-3.el8_2
  • librepo-debugsource-0:1.11.0-3.el8_2
  • python3-librepo-0:1.11.0-3.el8_2
  • python3-librepo-debuginfo-0:1.11.0-3.el8_2
  • librepo-0:1.10.3-4.el8_1
  • librepo-debuginfo-0:1.10.3-4.el8_1
  • librepo-debugsource-0:1.10.3-4.el8_1
  • python3-librepo-0:1.10.3-4.el8_1
  • python3-librepo-debuginfo-0:1.10.3-4.el8_1
  • librepo-0:1.9.2-2.el8_0
  • librepo-debuginfo-0:1.9.2-2.el8_0
  • librepo-debugsource-0:1.9.2-2.el8_0
  • python3-librepo-0:1.9.2-2.el8_0
  • python3-librepo-debuginfo-0:1.9.2-2.el8_0
refmap via4
misc
suse openSUSE-SU-2020:1428
Last major update 09-11-2020 - 14:28
Published 30-08-2020 - 15:15
Last modified 09-11-2020 - 14:28
Back to Top