CVE-2026-96279
Public on 2026-09-24
Modified on 2026-09-24
Description
When extracting OCI layer archives, Flatpak rebases archive entry pathnames to the destination directory using g_build_filename, and sets ARCHIVE_EXTRACT_SECURE_NODOTDOT to reject .. components in both pathnames and hardlink targets. However, hardlink targets were not rebased to the destination directory. A crafted
archive entry with an absolute hardlink target (e.g. /etc/shadow) causes libarchive to call link() with that path directly, hardlinking the host file into the extraction directory and making its contents readable.
An attacker controlling an OCI registry can serve a crafted layer archive that exploits this during flatpak install or flatpak update.
archive entry with an absolute hardlink target (e.g. /etc/shadow) causes libarchive to call link() with that path directly, hardlinking the host file into the extraction directory and making its contents readable.
An attacker controlling an OCI registry can serve a crafted layer archive that exploits this during flatpak install or flatpak update.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
| Platform | Package | Release Date | Advisory | Status |
|---|---|---|---|---|
| Amazon Linux 2 - Core | flatpak | Not Affected | ||
| Amazon Linux 2023 | flatpak | Not Affected | ||
| Amazon Linux 2027 Preview | flatpak | Not Affected | ||
| Amazon Linux 2023 | flatpak-builder | Not Affected | ||
| Amazon Linux 2027 Preview | flatpak-builder | Not Affected |
CVSS Scores
| Score Type | Score | Vector | |
|---|---|---|---|
| Amazon Linux | CVSSv3 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |