cve-2026-96807
MEDIUM CVSS 4.0 cvelistv5
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.
Timeline
- Published
- 2026-09-23 16:54 UTC
- Last Modified
- 2026-09-23
CVSS Details
- Attack Vector
- LOCAL
- Attack Complexity
- HIGH
- Privileges Required
- NONE
Affected Products
- Flatpak Flatpak
Weaknesses (CWE)
Linked Vulnerabilities
No linked vulnerabilities found.
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"platforms": [
"Linux"
],
"product": "Flatpak",
"programFiles": [
"common/flatpak-run.c"
],
"programRoutines": [
{
"name": "regenerate_ld_cache"
}
],
"repo": "https://github.com/flatpak/flatpak",
"vendor": "Flatpak",
"versions": [
{
"lessThan": "1.18.1",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.18.1",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"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."
}
],
"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": {
"dateUpdated": "2026-09-23T16:54:16.931Z",
"orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"shortName": "mitre"
},
"references": [
{
"url": "https://github.com/flatpak/flatpak/security/advisories/GHSA-99wv-m8rp-g58x"
}
],
"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"
}
}
},
"cveMetadata": {
"assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"assignerShortName": "mitre",
"cveId": "CVE-2026-96807",
"datePublished": "2026-09-23T16:54:16.931Z",
"dateReserved": "2026-09-23T16:54:16.535Z",
"dateUpdated": "2026-09-23T16:54:16.931Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}