CVE-2020-11934

NameCVE-2020-11934
DescriptionIt 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
snapd (PTS)stretch (security)2.21-2+deb9u1fixed
stretch (lts), stretch2.21-2+deb9u3fixed
buster (security), buster, buster (lts)2.37.4-1+deb10u3vulnerable
bullseye (security), bullseye2.49-1+deb11u2fixed
bookworm2.57.6-1fixed
trixie, sid2.65.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
snapdsourcestretch(not affected)
snapdsource(unstable)2.45.2-1

Notes

[buster] - snapd <no-dsa> (Minor issue)
[stretch] - snapd <not-affected> (Vulnerable code not present)
https://github.com/snapcore/snapd/commit/06342a31878f1cf99d56da5483e71b9af61f46ad

Search for package or bug name: Reporting problems