Vulnerability · Published May 26, 2021 · Assigned by redhat
CVE-2021-30501
Medium 5.5
In plain English
A medium-severity improper input validation in upx. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)1.0%top 35.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
An assertion abort was found in upx MemBuffer::alloc() in mem.cpp, in version UPX 4.0.0. The flow allows attackers to cause a denial of service (abort) via a crafted file.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30501 |
| Alpine:v3.21 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30501 |
| Alpine:v3.22 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30501 |
| Alpine:v3.23 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30501 |
| Alpine:v3.24 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30501 |
| Debian:13 | upx-ucl | 4.2.2-1 | DEBIAN-CVE-2021-30501 |
| Debian:14 | upx-ucl | 4.2.2-1 | DEBIAN-CVE-2021-30501 |
| Ubuntu:22.04:LTS | upx-ucl | no fix listed | UBUNTU-CVE-2021-30501 |
| Ubuntu:24.04:LTS | upx-ucl | no fix listed | UBUNTU-CVE-2021-30501 |
| Ubuntu:25.10 | upx-ucl | no fix listed | UBUNTU-CVE-2021-30501 |
| Ubuntu:26.04:LTS | upx-ucl | no fix listed | UBUNTU-CVE-2021-30501 |
| Ubuntu:26.10 | upx-ucl | no fix listed | UBUNTU-CVE-2021-30501 |
Affected products (as reported)
Weakness: CWE-20
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1948696 x_refsource_MISC
- https://github.com/upx/upx/issues/486 x_refsource_MISC
- https://github.com/upx/upx/pull/487 x_refsource_MISC
- https://github.com/upx/upx/commit/28e761cd42211dfe0124b7a29b2f74730f453e46 x_refsource_MISC