Vulnerability · Published May 26, 2021 · Assigned by redhat
CVE-2021-30500
High 7.8
In plain English
A high-severity null pointer dereference 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.2% (higher than 69% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.8High
Exploit odds (30 days)1.2%top 30.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
Null pointer dereference was found in upx PackLinuxElf::canUnpack() in p_lx_elf.cpp,in version UPX 4.0.0. That allow attackers to execute arbitrary code and cause a denial of service via a crafted file.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30500 |
| Alpine:v3.21 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30500 |
| Alpine:v3.22 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30500 |
| Alpine:v3.23 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30500 |
| Alpine:v3.24 | upx | 4.0.0-r0 | ALPINE-CVE-2021-30500 |
| Debian:13 | upx-ucl | 4.2.2-1 | DEBIAN-CVE-2021-30500 |
| Debian:14 | upx-ucl | 4.2.2-1 | DEBIAN-CVE-2021-30500 |
| Ubuntu:22.04:LTS | upx-ucl | no fix listed | UBUNTU-CVE-2021-30500 |
| Ubuntu:24.04:LTS | upx-ucl | no fix listed | UBUNTU-CVE-2021-30500 |
| Ubuntu:25.10 | upx-ucl | no fix listed | UBUNTU-CVE-2021-30500 |
| Ubuntu:26.04:LTS | upx-ucl | no fix listed | UBUNTU-CVE-2021-30500 |
| Ubuntu:26.10 | upx-ucl | no fix listed | UBUNTU-CVE-2021-30500 |
Affected products (as reported)
Weakness: CWE-476
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1948692 x_refsource_MISC
- https://github.com/upx/upx/issues/485 x_refsource_MISC
- https://github.com/upx/upx/commit/90279abdfcd235172eab99651043051188938dcc x_refsource_MISC