Flatpak xdg-desktop-portal up to 1.20.3/1.21.0 g_file_trash symlink

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
3.2$0-$5k0.85-

Summaryinfo

A vulnerability has been found in Flatpak xdg-desktop-portal up to 1.20.3/1.21.0 and classified as critical. Affected by this vulnerability is the function g_file_trash. Performing a manipulation results in symlink. This vulnerability is identified as CVE-2026-40354. The attack is only possible with local access. There is not any exploit available. The affected component should be upgraded.

Detailsinfo

A vulnerability, which was classified as problematic, was found in Flatpak xdg-desktop-portal up to 1.20.3/1.21.0. This affects the function g_file_trash. The manipulation with an unknown input leads to a symlink vulnerability. CWE is classifying the issue as CWE-61. The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files. This is going to have an impact on integrity, and availability. The summary by CVE is:

Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.

The advisory is shared at github.com. This vulnerability is uniquely identified as CVE-2026-40354 since 04/11/2026. The exploitability is told to be difficult. An attack has to be approached locally. Technical details are known, but no exploit is available.

Upgrading to version 1.20.4 or 1.21.1 eliminates this vulnerability. The upgrade is hosted for download at github.com.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Vendor

Name

Version

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 3.3
VulDB Meta Temp Score: 3.2

VulDB Base Score: 3.6
VulDB Temp Score: 3.5
VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA Base Score: 2.9
CNA Vector (MITRE): 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Symlink
CWE: CWE-61 / CWE-59
CAPEC: 🔒
ATT&CK: 🔒

Physical: Partially
Local: Yes
Remote: No

Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: xdg-desktop-portal 1.20.4/1.21.1

Timelineinfo

04/11/2026 Advisory disclosed
04/11/2026 +0 days CVE reserved
04/11/2026 +0 days VulDB entry created
04/11/2026 +0 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: GHSA-rqr9-jwwf-wxgj
Status: Confirmed

CVE: CVE-2026-40354 (🔒)
GCVE (CVE): GCVE-0-2026-40354
GCVE (VulDB): GCVE-100-356961

Entryinfo

Created: 04/11/2026 04:11
Changes: 04/11/2026 04:11 (66)
Complete: 🔍
Cache ID: 216:5BE:103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!