CVE-2021-29482
mediumpriority · track · 31EPSS 0.014 · 73 %ileDEEUUSEPSS · scored 2026-10-27
xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
- Red Hat OpenShift Container Platform 4all versionscert_bundDEcpe:/a:redhat:openshift:container_platform_4
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-0970Red Hat OpenShift: Mehrere SchwachstellenDeutsch2022-04-07csaf · cert_bundDE
Ein entfernter, anonymer oder authentisierter Angreifer kann mehrere Schwachstellen in Red Hat OpenShift ausnutzen, um einen Denial-of-Service-Zustand zu verursachen und Sicherheitsmaßnahmen zu umgehen.
- GHSA-25xm-hr59-7c27github.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)2021-05-25ghsa · osvUS
### Impact xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. ### Patches The problem has been fixed in release v0.5.8. ### Workarounds Limit the size of the compressed file input to a reasonable size for your use case. ### References The standard library had recently the same issue and got the [CVE-2020-16845](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-16845) allocated. ### For more information If you have any questions or comments about this advisory: * Open an issue in [xz](https://github.com/ulikunitz/xz/issues).
- GO-2020-0016Infinite loop in github.com/ulikunitz/xz2021-04-14vendor · osvUS
An attacker can construct a series of bytes such that calling Reader.Read on the bytes could cause an infinite loop. If parsing user supplied input, this may be used as a denial of service vector.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9bcnnvd
- https://github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-29482cnnvd
- https://packetstormsecurity.com/files/166174/Red-Hat-Security-Advisory-2022-0687-01.htmlcnnvd
- https://packetstormsecurity.com/files/166643/Red-Hat-Security-Advisory-2022-1276-01.htmlcnnvd
- https://packetstormsecurity.com/files/167116/Red-Hat-Security-Advisory-2022-2183-01.htmlcnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.2657cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.0855cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan