CVE-2023-28101 Flatpak metadata with ANSI control codes can cause misleading terminal output

Medium 5.0 Published Updated

Attackers can hide elevated permissions in Flatpak apps using ANSI codes, misleading users via CLI and bypassing security checks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-28101?

CVE-2023-28101 is a medium-severity vulnerability in flatpak, published on 16 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. In versions prior to 1.10.8, 1.12.8, 1.14.4, and 1.15.4, if an attacker publishes a Flatpak app with elevated permissions, they can hide those permissions from users of the `flatpak(1)` command-line interface by setting other permissions to crafted values that contain non-printable control characters such as `ESC`. A fix is available in versions 1.10.8, 1.12.8, 1.14.4, and 1.15.4. As a workaround, use a GUI like GNOME Software rather than the command-line interface, or only install apps whose maintainers you trust.

Weakness: CWE-116

Which versions are affected by CVE-2023-28101?

It affects 1 product.

Products include Flatpak Flatpak.

How do I fix CVE-2023-28101?

Upgrade to a fixed version.

Is CVE-2023-28101 being exploited?

There is no known exploitation of CVE-2023-28101 in the wild and no public exploit code.

Sources

Also known as CLSA-2025-1740740956, DEBIAN-CVE-2023-28101, GHSA-h43h-fwqx-mpp8, UBUNTU-CVE-2023-28101.

Is CVE-2023-28101 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free