Intel

AIKIDO-2026-154373

flatpak is vulnerable to Heap-based Buffer Overflow

Heap-based Buffer OverflowGHSA-jr92-2v97-wgvc Published Aug 13, 2026

64

Medium Risk

This Affects:

OSflatpak
0.0.1 - 1.18.0
Fixed in 1.18.1
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

flatpak is vulnerable to Heap-based Buffer Overflow in versions 0.0.1 - 1.18.0.

How to fix this

Upgrade the flatpak library to the patch version.