Directory Traversal Affecting librepo package, versions <0:1.8.1-8.amzn2


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
2.53% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-LIBREPO-1692128
  • published27 Sept 2021
  • disclosed30 Aug 2020

Introduced: 30 Aug 2020

CVE-2020-14352  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 librepo to version 0:1.8.1-8.amzn2 or higher.
This issue was patched in ALAS2-2020-1568.

NVD Description

Note: Versions mentioned in the description apply only to the upstream librepo package and not the librepo package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1