{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "a21a102e10d63da3251421b17a60b977e6c4b5c8"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "d087606b9a041f3b0debe44a9b9c3beab28b6e6c"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "1.18.6",
                "range": [
                  {
                    "fixed": "7a986ba376d9e2fd8857b0afcdf5d171ef733b1f"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "a21a102e10d63da3251421b17a60b977e6c4b5c8"
            },
            {
              "fixed": "d087606b9a041f3b0debe44a9b9c3beab28b6e6c"
            },
            {
              "fixed": "7a986ba376d9e2fd8857b0afcdf5d171ef733b1f"
            }
          ],
          "repo": "https://github.com/flatpak/flatpak",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-p4mw-6jfq-r82r"
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-281"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133842.json"
  },
  "details": "A flaw was found in Flatpak’s flatpak-system-helper. When a system-wide app, runtime, or extension uses the extra-data mechanism and its apply_extra logic creates a deeply nested directory tree, permission canonicalization can fail (for example with EMFILE). Affected Flatpak versions can still report success without clearing setuid/setgid bits, leaving a setuid-root executable under /var/lib/flatpak. A local attacker who can install or update such content system-wide, or who can already execute code as a local user in cooperation with that content, can escalate privileges to root.",
  "id": "CVE-2026-133842",
  "modified": "2026-11-27T09:46:06.190364785Z",
  "published": "2026-11-27T08:19:17.884Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-133842"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2585329"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133842.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/flatpak/flatpak/commit/a21a102e10d63da3251421b17a60b977e6c4b5c8"
    },
    {
      "type": "FIX",
      "url": "https://github.com/flatpak/flatpak/commit/d087606b9a041f3b0debe44a9b9c3beab28b6e6c"
    },
    {
      "type": "WEB",
      "url": "https://github.com/flatpak/flatpak/releases/tag/1.18.6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-133842"
    },
    {
      "type": "WEB",
      "url": "https://www.openwall.com/lists/oss-security/2026/11/24/15"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Flatpak: flatpak: flatpak-system-helper extra-data privilege escalation if canonicalizing permissions fails with emfile"
}