flatpak is vulnerable to Heap-based Buffer Overflow
64
Medium Risk
Flatpak's OCI delta stream parser reads size values as 64-bit integers but passes them to allocation and I/O functions that take a pointer-sized gsize, which is 32 bits on 32-bit systems. The silent truncation produces undersized allocations while later operations use the full 64-bit size, causing heap buffer overflows. On 32-bit systems a malicious OCI registry can craft a delta stream that triggers this during install or update, potentially achieving code execution in the Flatpak client process. The fix uses gsize consistently, adds overflow checks, and limits delta path length.
You are affected if you are using a version that falls within the vulnerable range, run on a 32-bit system and install or update applications from an untrusted OCI registry.
flatpak is vulnerable to Heap-based Buffer Overflow in versions 0.0.1 - 1.18.0.
Upgrade the flatpak library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant