Flatpak vulnerable to path traversal via unvalidated "arch" parameter in DeployAppstream
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Prior to version 1.18.1, on systems where at least one OCI remote is configured (most common on Fedora systems), a malicious local user in an active local session could use a crafted architecture name to trick the flatpak-system-helper process into creating a root-owned directory tree with contents determined by the OCI remote, plus a root-owned lock file and icons directory, outside the intended root directory. If this vulnerability is combined with other vulnerabilities also fixed in 1.18.1, the combination can lead to local root privilege escalation. This particular vulnerability is not believed to be exploitable if there are no OCI remotes configured (common on non-Fedora systems). Version 1.18.1 patches the issue.
Text from CVE List
Affected versions 1
- flatpakaffected: < 1.18.1CVE List
References 5
- github.com/flatpak/flatpak/commit/01773f84021dd090b2426f79675f94f2564f9279Fixvia CVE List
- github.com/flatpak/flatpak/commit/19456b916842b079af833a86b9ab89c5db154b92Fixvia CVE List
- github.com/flatpak/flatpak/commit/aeb369a2723506fabc1f701ef7a0dc6c97c4b983Fixvia CVE List
- github.com/flatpak/flatpak/security/advisories/GHSA-v2gw-v9h5-9q4xAdvisoryvia CVE List
- github.com/flatpak/flatpak/pull/6768Referencevia CVE List