Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2022-21682— flatpak-builder can access files outside the build directory.

Quick assessment

Affected
flatpak flatpak
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Flatpak是一套用于Linux桌面应用计算机环境的应用程序虚拟化系统。 Flatpak 1.12.3和1.10.6之前版本存在安全漏洞,攻击者可利用该漏洞通过恶意应用程序替换appstream util二进制文件,并可能执行其他恶意操作。

CVSS 7.7 · High EPSS 1.68% · P76
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-21682

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
flatpak-builder can access files outside the build directory.
Source: CVE Program / CVE List V5
Vulnerability Description
Flatpak is a Linux application sandboxing and distribution framework. A path traversal vulnerability affects versions of Flatpak prior to 1.12.3 and 1.10.6. flatpak-builder applies `finish-args` last in the build. At this point the build directory will have the full access that is specified in the manifest, so running `flatpak build` against it will gain those permissions. Normally this will not be done, so this is not problem. However, if `--mirror-screenshots-url` is specified, then flatpak-builder will launch `flatpak build --nofilesystem=host appstream-utils mirror-screenshots` after finalization, which can lead to issues even with the `--nofilesystem=host` protection. In normal use, the only issue is that these empty directories can be created wherever the user has write permissions. However, a malicious application could replace the `appstream-util` binary and potentially do something more hostile. This has been resolved in Flatpak 1.12.3 and 1.10.6 by changing the behaviour of `--nofilesystem=home` and `--nofilesystem=host`.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Flatpak 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Flatpak是一套用于Linux桌面应用计算机环境的应用程序虚拟化系统。 Flatpak 1.12.3和1.10.6之前版本存在安全漏洞,攻击者可利用该漏洞通过恶意应用程序替换appstream util二进制文件,并可能执行其他恶意操作。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
flatpak flatpak >= 1.11.0, < 1.12.3 -

II. Public POCs for CVE-2022-21682

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-21682

请登录查看更多情报信息。

Patches & Fixes for CVE-2022-21682 (2)

Vendor Advisories for CVE-2022-21682 (3)

Mailing List Discussions for CVE-2022-21682 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2022-21682

No comments yet


Leave a comment