{"id":"CVE-2026-96807","state":"PUBLISHED","title":"In Flatpak before 1.18.1, a malicious sandboxed app can replace ~/.var/app/$appid/.ld.so with a symlink, causing regenerate_ld_cache to write files at an arbitrary location. The fi","description":"In Flatpak before 1.18.1, a malicious sandboxed app can replace ~/.var/app/$appid/.ld.so with a symlink, causing regenerate_ld_cache to write files at an arbitrary location. The filenames and content are not attacker controlled, making this hard to exploit.","publishedAt":"2026-09-23T16:54:16.931Z","updatedAt":"2026-09-26T22:51:21.873Z","severity":{"score":4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","source":"mitre"},"assigner":"mitre","products":["Flatpak Flatpak"],"affected":[{"vendor":"Flatpak","product":"Flatpak","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.18.1","versionType":"semver"}],"platforms":["Linux"],"programFiles":["common/flatpak-run.c"],"programRoutines":[{"name":"regenerate_ld_cache"}],"repo":"https://github.com/flatpak/flatpak"}],"references":["https://github.com/flatpak/flatpak/security/advisories/GHSA-99wv-m8rp-g58x"],"weaknesses":["CWE-61"],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/96xxx/CVE-2026-96807.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-96807","state":"PUBLISHED","datePublished":"2026-09-23T16:54:16.931Z","dateUpdated":"2026-09-26T22:51:21.873Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2026-09-23T16:54:16.535Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"In Flatpak before 1.18.1, a malicious sandboxed app can replace ~/.var/app/$appid/.ld.so with a symlink, causing regenerate_ld_cache to write files at an arbitrary location. The filenames and content are not attacker controlled, making this hard to exploit."}],"affected":[{"vendor":"Flatpak","product":"Flatpak","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.18.1","versionType":"semver"}],"platforms":["Linux"],"programFiles":["common/flatpak-run.c"],"programRoutines":[{"name":"regenerate_ld_cache"}],"repo":"https://github.com/flatpak/flatpak"}],"references":[{"url":"https://github.com/flatpak/flatpak/security/advisories/GHSA-99wv-m8rp-g58x"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":4,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-61","description":"CWE-61 UNIX Symbolic Link (Symlink) Following","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2026-09-23T16:54:16.931Z"},"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The issue has been fixed in version 1.18.1 by commits:</p>\n<ul>\n<li><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/flatpak/flatpak/commit/e13dfeda330625d2fecc3a54672dfd4dc9c83a5c\">e13dfed</a> \"common: Fix return value and typos in flatpak_switch_symlink_and_remove\"</li>\n<li><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/flatpak/flatpak/commit/f6c8fb5fdb3737e2f45068afe12c4bf1d808fd55\">f6c8fb5</a> \"common: Use fd-based operations in flatpak_switch_symlink_and_remove\"</li>\n<li><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/flatpak/flatpak/commit/76c9296b6780ca67f44cf67f0823f086d692a592\">76c9296</a> \"run: Harden regenerate_ld_cache against symlink attacks\"</li>\n</ul>\n<p>For LTS operating system distributions, backports of these changes are available in the <code>flatpak-1.16.x</code>\n branch. Please note that cherry-picked libglnx changes \"chase: Add \ninternal glnx_chaseat_full for a strategic callback\" and \"chase: Add \nglnx_chase_and_mkdirat\" are also required.</p>"}],"value":"The issue has been fixed in version 1.18.1 by commits:\n\n\n\n  *   e13dfed https://github.com/flatpak/flatpak/commit/e13dfeda330625d2fecc3a54672dfd4dc9c83a5c  \"common: Fix return value and typos in flatpak_switch_symlink_and_remove\"\n\n  *   f6c8fb5 https://github.com/flatpak/flatpak/commit/f6c8fb5fdb3737e2f45068afe12c4bf1d808fd55  \"common: Use fd-based operations in flatpak_switch_symlink_and_remove\"\n\n  *   76c9296 https://github.com/flatpak/flatpak/commit/76c9296b6780ca67f44cf67f0823f086d692a592  \"run: Harden regenerate_ld_cache against symlink attacks\"\n\n\n\n\nFor LTS operating system distributions, backports of these changes are available in the flatpak-1.16.x\n branch. Please note that cherry-picked libglnx changes \"chase: Add \ninternal glnx_chaseat_full for a strategic callback\" and \"chase: Add \nglnx_chase_and_mkdirat\" are also required."}],"x_generator":{"engine":"CVE-Request-form 0.0.1"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*","versionEndExcluding":"1.18.1"}]}]}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-96807","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-09-26T22:45:37.260895Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-26T22:51:21.873Z"}}]}}}