# CVE-2026-40354: 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 symlin…

- Severity: Low 2.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-11T00:29:03.467Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Flatpak xdg-desktop-portal: before 1.20.4; from 1.21.0 before 1.21.1; 1.21.0

## Every score

- mitre: CVSS:3.1 2.9 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1> (product)
- <https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4> (product)
- <https://www.openwall.com/lists/oss-security/2026/04/10/14> (mailing-list)
- <https://github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-40354](https://www.cve.org/CVERecord?id=CVE-2026-40354), CVE Terms of Use, modified 2026-04-15
- NVD: [CVE-2026-40354](https://nvd.nist.gov/vuln/detail/CVE-2026-40354), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40354 · Whole record: https://cve.day/CVE-2026-40354.json · Rebuilt by cve.day 2026-11-25T22:59:18.554Z
