← Back to CVE Explorer

CVE-2026-40354

Full vulnerability record from the local CVENow database.

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.

Severity
MEDIUM
CVSS score
6.3 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-04-11 01:16:16.270000
Last modified
2026-10-26 21:10:00.170000
View original CVE JSON
{
  "id": "CVE-2026-40354",
  "sourceIdentifier": "[email protected]",
  "published": "2026-04-11T01:16:16.270",
  "lastModified": "2026-10-26T21:10:00.170",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "Flatpak xdg-desktop-portal anterior a 1.20.4 y 1.21.x anterior a 1.21.1 permite a cualquier aplicación Flatpak enviar cualquier archivo a la papelera en el contexto del host mediante un ataque de enlace simbólico en g_file_trash."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "Flatpak",
          "product": "xdg-desktop-portal",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0",
              "lessThan": "1.20.4",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "1.21.0",
              "lessThan": "1.21.1",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L",
          "baseScore": 2.9,
          "baseSeverity": "LOW",
          "attackVector": "LOCAL",
          "attackComplexity": "HIGH",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "availabilityImpact": "LOW"
        },
        "exploitabilityScore": 1.4,
        "impactScore": 1.4
      },
      {
        "source": "[email protected]",
        "type": "Primary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H",
          "baseScore": 6.3,
          "baseSeverity": "MEDIUM",
          "attackVector": "LOCAL",
          "attackComplexity": "HIGH",
          "privilegesRequired": "LOW",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 1.0,
        "impactScore": 5.2
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-04-15T15:13:04.765142Z",
          "id": "CVE-2026-40354",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-61"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:flatpak:xdg-desktop-portal:*:*:*:*:*:*:*:*",
              "versionEndExcluding": "1.20.4",
              "matchCriteriaId": "6EE2AC77-CD98-4889-B26F-9EB4391D3970"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:flatpak:xdg-desktop-portal:1.21.0:*:*:*:*:*:*:*",
              "matchCriteriaId": "9314DB96-4EDF-43A8-BC7A-5074770F1E4A"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4",
      "source": "[email protected]",
      "tags": [
        "Product"
      ]
    },
    {
      "url": "https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1",
      "source": "[email protected]",
      "tags": [
        "Product"
      ]
    },
    {
      "url": "https://github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj",
      "source": "[email protected]",
      "tags": [
        "Vendor Advisory"
      ]
    },
    {
      "url": "https://www.openwall.com/lists/oss-security/2026/04/10/14",
      "source": "[email protected]",
      "tags": [
        "Mailing List"
      ]
    }
  ]
}