Vulnerability · Published Jul 29, 2020 · Assigned by canonical
CVE-2020-11934Sandbox escape vulnerability via snapctl user-open (xdg-open)
Medium 5.9
In plain English
A medium-severity security flaw in snapd from Canonical. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
It was discovered that snapctl user-open allowed altering the $XDG_DATA_DIRS environment variable when calling the system xdg-open. OpenURL() in usersession/userd/launcher.go would alter $XDG_DATA_DIRS to append a path to a directory controlled by the calling snap. A malicious snap could exploit this to bypass intended access restrictions to control how the host system xdg-open script opens the URL and, for example, execute a script shipped with the snap without confinement. This issue did not affect Ubuntu Core systems. Fixed in snapd versions 2.45.1ubuntu0.2, 2.45.1+18.04.2 and 2.45.1+20.04.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | snapd | 2.45.2-1 | DEBIAN-CVE-2020-11934 |
| Debian:13 | snapd | 2.45.2-1 | DEBIAN-CVE-2020-11934 |
| Debian:14 | snapd | 2.45.2-1 | DEBIAN-CVE-2020-11934 |
Affected products (as reported)
References
- https://ubuntu.com/USN-4424-1 x_refsource_CONFIRM
- https://launchpad.net/bugs/1880085 x_refsource_CONFIRM