# CVE-2021-20285: A flaw was found in upx canPack in plxelf.cpp in UPX 3.96.

- Severity: Medium 6.6 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-26T16:35:14.000Z
- Modified: 2026-06-17T03:33:36.467Z
- Weaknesses: CWE-119, CWE-787
- Assigned by: redhat

## Description

A flaw was found in upx canPack in p_lx_elf.cpp in UPX 3.96. This flaw allows attackers to cause a denial of service (SEGV or buffer overflow and application crash) or possibly have unspecified other impacts via a crafted ELF. The highest threat from this vulnerability is to system availability.

(As written by CVE List.)

## Affected

- upx: UPX 3.96
- upx upx: 3.96

## Every score

- NVD: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- NVD: CVSS:2.0 8.3 High `AV:N/AC:M/Au:N/C:P/I:P/A:C`

## References

- <https://github.com/upx/upx/issues/421> (exploit, issue-tracking, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1937787> (issue-tracking, third-party-advisory)

## Sources

- CVE List: [CVE-2021-20285](https://www.cve.org/CVERecord?id=CVE-2021-20285), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20285](https://nvd.nist.gov/vuln/detail/CVE-2021-20285), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20285 · Whole record: https://cve.day/CVE-2021-20285.json · Rebuilt by cve.day 2026-11-25T22:58:00.465Z
