Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | librepo | librepo versions before 1.12.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | librepo +1 | 1.11.0-3.el8_2 | RHSA-2020:3658 |
| RHEL 7 | librepo +2 | 1.8.1-8.el7_9 | RHSA-2020:5012 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.1 EUS | librepo +1 | 1.10.3-4.el8_1 | RHSA-2020:3749 |
| RHEL 8.0 E4S | librepo +1 | 1.9.2-2.el8_0 | RHSA-2020:3756 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP2 | librepo | 1.11.2-bp152.2.3.1 | openSUSE-SU-2021:0295-1, openSUSE-SU-2020:1428-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.2 | librepo | 1.11.2-lp152.2.3.1 | openSUSE-SU-2021:0277-1, openSUSE-SU-2020:1289-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | librepo +2 | 1.8.1-8.amzn2 | ALAS2-2020-1568 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | librepo +1 | 1.11.0-3.el8_2 | ELSA-2020-3658 |
| Oracle Linux 7 | librepo +2 | 1.8.1-8.el7_9 | ELSA-2020-5012 |
Advisories 12
- WID-SEC-2025-0227 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- RHSA-2020:5012 Red Hat Security Advisory: librepo security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- openSUSE-SU-2021:0295-1 Security update for librepo SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1289-1 Security update for librepo SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0277-1 Security update for librepo SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2020:3756 Red Hat Security Advisory: librepo security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2020:3749 Red Hat Security Advisory: librepo security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2020:3658 Red Hat Security Advisory: librepo security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- openSUSE-SU-2020:1428-1 Security update for librepo SUSE / openSUSE Security Updates · May 7, 2025
- ALAS2-2020-1568 Important: librepo security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 8, 2020
- ELSA-2020-5012 Moderate: librepo security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 12, 2020
- ELSA-2020-3658 Important: librepo security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Sep 9, 2020
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1866498
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00072.html
- openSUSE-SU-2020:1428 vendor-advisory
- FEDORA-2020-5d9f0ce2b3 vendor-advisory
- FEDORA-2020-7906a64449 vendor-advisory
- FEDORA-2020-b40fc174b5 vendor-advisory