SecurityContext

CVE-2020-11934: snapd - Command Injection

  • Cve: CVE-2020-11934
  • Name: snapd - Command Injection
  • 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.
  • Impact: Attackers can bypass confinement and execute arbitrary scripts on the host system by manipulating environment variables during URL handling.
  • Remediation: Update to snapd version 2.45.1ubuntu0.2, 2.45.1+18.04.2, or 2.45.1+20.04.2.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.9
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
  • Epss score: 0.00365
  • Epss percentile: 0.30969
  • Assignee: [email protected]
  • Published at: 2020-07-29T17:15:12Z
  • Age in days: 2309
  • Modified at: 2026-06-17T02:51:05Z
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-11934
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-668Exposure of Resource to Wrong Sphere

References

UrlSourceTags
https://ubuntu.com/USN-4424-1nvdVendor Advisory
https://launchpad.net/bugs/1880085nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
canonical:ubuntu_linux= 20.04, = 19.10, = 18.04, = 16.04nonvd/v1/products/canonical/ubuntu_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 21216412
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports