Heap Buffer Overflow Vulnerability in UPX Package

upx Updated 05 Jun 2026

Summary

21/05/2026
MEDIUM
No i
Medium
Not published

OSV-2026-787: Heap-buffer-overflow in N_BELE_RTP::BEPolicy::get32. Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

UPX (Ultimate Packer for eXecutables) is a popular open-source executable packer that compresses executable files to reduce their size while maintaining functionality. It is widely used in various software applications to optimize storage and transmission. However, UPX has been found to contain a vulnerability that could lead to a heap buffer overflow, potentially allowing attackers to exploit the application.

Vulnerability Detail

The vulnerability identified in UPX is a heap buffer overflow occurring in the N_BELE_RTP::BEPolicy::get32 function. This issue was reported by OSS-Fuzz and can lead to unauthorized memory access, which may result in application crashes or arbitrary code execution. The crash state indicates that the overflow happens during the reading process, which can be exploited by malicious actors to manipulate the execution flow of the application.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid using the affected function or limit the input size to prevent triggering the buffer overflow. Additionally, running the application in a controlled environment or sandbox can help mitigate potential risks until a patch is applied.

Conclusion

The heap buffer overflow vulnerability in the UPX package poses significant risks to applications utilizing this tool. It is crucial for users to update to the latest version to mitigate these risks. Additionally, implementing workarounds can provide temporary relief until a patch is applied. Monitoring tools like Vulert can assist in keeping applications secure from such vulnerabilities.

See every vulnerability recorded for upx →

Share this vulnerability

FAQ

A heap buffer overflow occurs when a program writes more data to a buffer located on the heap than it can hold, leading to memory corruption and potential exploitation.

If exploited, this vulnerability can lead to application crashes, data corruption, or unauthorized access to system resources, allowing attackers to execute arbitrary code.

Yes, users are advised to update UPX to the latest version to ensure they have the patch that addresses this vulnerability.

If an immediate update is not possible, consider implementing workarounds such as limiting input sizes or running the application in a secure environment.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check your application for vulnerabilities without any signup at the Vulert playground.

Related vulnerabilities

Recent vulnerabilities recorded for upx.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback