Vulnerability · Published Mar 16, 2023 · Assigned by GitHub_M
CVE-2023-28100TIOCLINUX can send commands outside sandbox if running on a virtual console
Critical 10.0
In plain English
A critical-severity improper input validation in flatpak from flatpak. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Versions prior to 1.10.8, 1.12.8, 1.14.4, and 1.15.4 contain a vulnerability similar to CVE-2017-5226, but using the `TIOCLINUX` ioctl command instead of `TIOCSTI`. If a Flatpak app is run on a Linux virtual console such as `/dev/tty1`, it can copy text from the virtual console and paste it into the command buffer, from which the command might be run after the Flatpak app has exited. Ordinary graphical terminal emulators like xterm, gnome-terminal and Konsole are unaffected. This vulnerability is specific to the Linux virtual consoles `/dev/tty1`, `/dev/tty2` and so on. A patch is available in versions 1.10.8, 1.12.8, 1.14.4, and 1.15.4. As a workaround, don't run Flatpak on a Linux virtual console. Flatpak is primarily designed to be used in a Wayland or X11 graphical environment.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | flatpak | 1.10.8-1.el8 | ALSA-2023:7038 |
| AlmaLinux:9 | flatpak | 1.12.8-1.el9 | ALSA-2023:6518 |
| AlmaLinux:8 | flatpak-devel | 1.10.8-1.el8 | ALSA-2023:7038 |
| AlmaLinux:9 | flatpak-devel | 1.12.8-1.el9 | ALSA-2023:6518 |
| AlmaLinux:8 | flatpak-libs | 1.10.8-1.el8 | ALSA-2023:7038 |
| AlmaLinux:9 | flatpak-libs | 1.12.8-1.el9 | ALSA-2023:6518 |
| AlmaLinux:8 | flatpak-selinux | 1.10.8-1.el8 | ALSA-2023:7038 |
| AlmaLinux:9 | flatpak-selinux | 1.12.8-1.el9 | ALSA-2023:6518 |
| AlmaLinux:8 | flatpak-session-helper | 1.10.8-1.el8 | ALSA-2023:7038 |
| AlmaLinux:9 | flatpak-session-helper | 1.12.8-1.el9 | ALSA-2023:6518 |
| Debian:12 | flatpak | 1.14.4-1 | DEBIAN-CVE-2023-28100 |
| Debian:13 | flatpak | 1.14.4-1 | DEBIAN-CVE-2023-28100 |
| Debian:14 | flatpak | 1.14.4-1 | DEBIAN-CVE-2023-28100 |
| Rocky Linux:9 | flatpak | 0:1.12.8-1.el9 | RLSA-2023:6518 |
| Ubuntu:25.10 | flatpak | no fix listed | UBUNTU-CVE-2023-28100 |
| Ubuntu:26.10 | flatpak | no fix listed | UBUNTU-CVE-2023-28100 |
Affected products (as reported)
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/flatpak/flatpak/security/advisories/GHSA-7qpw-3vjv-xrqp x_refsource_CONFIRM
- https://github.com/flatpak/flatpak/commit/8e63de9a7d3124f91140fc74f8ca9ed73ed53be9 x_refsource_MISC
- https://marc.info/?l=oss-security&m=167879021709955&w=2 x_refsource_MISC
- https://security.gentoo.org/glsa/202312-12