Simon McVittie discovered that flatpak-portal service allowed sandboxed applications to execute arbitrary code on the host system (a sandbox escape). A malicious user could create a Flatpak application that set environment variables, trusted by the Flatpak "run" command, and use it to execute arbitrary code outside the sandbox.
{
"availability": "No subscription required",
"binaries": [
{
"binary_name": "flatpak",
"binary_version": "1.0.9-0ubuntu0.2"
},
{
"binary_name": "flatpak-tests",
"binary_version": "1.0.9-0ubuntu0.2"
},
{
"binary_name": "gir1.2-flatpak-1.0",
"binary_version": "1.0.9-0ubuntu0.2"
},
{
"binary_name": "libflatpak-dev",
"binary_version": "1.0.9-0ubuntu0.2"
},
{
"binary_name": "libflatpak0",
"binary_version": "1.0.9-0ubuntu0.2"
}
]
}
{
"cves": [
{
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"id": "CVE-2021-21261"
}
],
"ecosystem": "Ubuntu:18.04:LTS"
}
{
"availability": "No subscription required",
"binaries": [
{
"binary_name": "flatpak",
"binary_version": "1.6.5-0ubuntu0.2"
},
{
"binary_name": "flatpak-tests",
"binary_version": "1.6.5-0ubuntu0.2"
},
{
"binary_name": "gir1.2-flatpak-1.0",
"binary_version": "1.6.5-0ubuntu0.2"
},
{
"binary_name": "libflatpak-dev",
"binary_version": "1.6.5-0ubuntu0.2"
},
{
"binary_name": "libflatpak0",
"binary_version": "1.6.5-0ubuntu0.2"
}
]
}
{
"cves": [
{
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"id": "CVE-2021-21261"
}
],
"ecosystem": "Ubuntu:20.04:LTS"
}