Every CVE Search/ Get API key

CVE-2021-43315

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an...

7.5 HighFix available

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5349

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

0.82%Up 0.8 points since Mar 25, 2023
90%50%10%1%

What each source reports

NVD Score used 7.5

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5349

Record
CVE-2021-43315
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-119, CWE-787
Updated
2026-11-02
CVE List No score

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5349

Record
CVE-2021-43315
Weakness
CWE-119
Updated
2026-11-02
EUVDEUVD-2021-30254 0.0

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5349

Record
EUVD-2021-30254
CVSS
0.0 NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-pc9f-fr4v-3pc2 7.5

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an...

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5349

Record
GHSA-pc9f-fr4v-3pc2
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-119, CWE-787
Updated
2026-11-02
OSV 7.5

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5349

Record
CVE-2021-43315
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-43315 7.5

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5349

Record
DEBIAN-CVE-2021-43315
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-43315 7.5

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5349

Record
UBUNTU-CVE-2021-43315
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVopenSUSE-SU-2023:0088-1 No score

Security update for upx

upx was updated to fix the following issues:

Update to release 4.0.2

  • Fix unpack of ELF x86-64 that failed with 'CantUnpackException: corrupt b_info'
  • Resolve SEGV on PackLinuxElf64::invert_pt_dynamic
  • CVE-2021-30500: Fixed Null pointer dereference in PackLinuxElf:canUnpack() in p_lx_elf.cpp
  • CVE-2021-30501: Fixed Assertion abort in function MemBuffer:alloc()
  • CVE-2021-43311: Fixed Heap-based buffer overflow in PackLinuxElf32:elf_lookup() at p_lx_elf.cpp
  • CVE-2021-43312: Fixed Heap-based buffer overflow in PackLinuxElf64:invert_pt_dynamic at p_lx_elf.cpp:5239
  • CVE-2021-43313: Fixed Heap-based buffer overflow in PackLinuxElf32:invert_pt_dynamic at p_lx_elf.cpp:1688
  • CVE-2021-43314: Fixed Heap-based buffer overflows in PackLinuxElf32:elf_lookup() at p_lx_elf.cp
  • CVE-2021-43315: Fixed Heap-based buffer overflows in PackLinuxElf32:elf_lookup() at p_lx_elf.cp
  • CVE-2021-43316: Fixed Heap-based buffer overflow in func get_le64()
  • CVE-2021-43317: Fixed Heap-based buffer overflows in PackLinuxElf64:elf_lookup() at p_lx_elf.cp
  • CVE-2023-23456: Fixed heap-buffer-overflow in PackTmt:pack()
  • CVE-2023-23457: Fixed SEGV on PackLinuxElf64:invert_pt_dynamic() in p_lx_elf.cpp
Record
openSUSE-SU-2023:0088-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
upx-ucl
Debian:13
before 4.2.2-1
4.2.2-1
upx-ucl
Debian:14
before 4.2.2-1
4.2.2-1
upx-ucl
Ubuntu:16.04:LTS
All versions, plus listed versions
3.91-1
None known
upx-ucl
Ubuntu:18.04:LTS
All versions, plus listed versions
3.94-23.94-33.94-4
None known
upx-ucl
Ubuntu:20.04:LTS
All versions, plus listed versions
3.95-23.95-2build1
None known
upx-ucl
Ubuntu:22.04:LTS
All versions, plus listed versions
3.96-23.96-3
None known
upx-ucl
Ubuntu:24.04:LTS
All versions, plus listed versions
3.96-34.2.2-3
None known
upx-ucl
Ubuntu:25.10
All versions, plus listed versions
4.2.4-14.2.4-1.1
None known
upx-ucl
Ubuntu:26.10
All versions, plus listed versions
4.2.4-1.1build1
None known
upx-ucl
Ubuntu:26.04:LTS
All versions, plus listed versions
4.2.4-1.14.2.4-1.1build1
None known
upx
SUSE:Package Hub 15 SP4
From an advisory covering 12 CVEs
before 4.0.2-bp154.4.6.1
4.0.2-bp154.4.6.1
upx
openSUSE:Leap 15.4
From an advisory covering 12 CVEs
before 4.0.2-bp154.4.6.1
4.0.2-bp154.4.6.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-43315 is a high vulnerability (CVSS 7.5) in Upx, published March 24, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.82%, the 57th percentile. Fixed in upx-ucl 4.2.2-1.

References

Show 25 moreShow less
MoveEnter Open