CVE-2017-3316: Oracle VM VirtualBox privilege escalation in GUI update downloader

CVE-2017-3316 · Severity: high · CVSS 8.4 · Published 2017-01-27

Oracle VM VirtualBox is a popular virtualization tool used to run multiple operating systems on a single computer. A vulnerability in its update mechanism allows an attacker to take full control of the host computer if a user is tricked into downloading a malicious update. This could lead to the theft of sensitive data, system-wide service outages, or the installation of ransomware on the host machine.

Technologies: Oracle VirtualBox. Vendors: Oracle.

Quick answers

Is CVE-2017-3316 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2017-3316 being exploited in the wild.
How severe is CVE-2017-3316?
High severity, with a CVSS score of 8.4, published 27 January 2017.
Which products and versions are affected?
Oracle VirtualBox prior to 5.0.32, prior to 5.1.14.
Is there a fix for CVE-2017-3316?
A patch was published on 2017-01-17: Oracle released a patch in the January Critical Patch Update Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2017-3316 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2017-3316?
Check whether you run Oracle VirtualBox at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A privilege escalation vulnerability exists in the Oracle VM VirtualBox GUI subcomponent, specifically within the Extension Pack update downloader. The root cause is improper input validation (CWE-20) where the downloader fails to strip or verify setuid permissions on files contained within downloaded tar-archive Extension Packs. An attacker positioned to perform a Man-in-the-Middle (MitM) attack can intercept the unencrypted HTTP update request and provide a malicious Extension Pack containing a setuid binary. When the victim installs the update (requiring administrative interaction), the malicious binary is stored with root ownership and setuid permissions, allowing for local privilege escalation to root. This is addressed in VirtualBox versions 5.0.32 and 5.1.14.

Affected products

  • Oracle VM VirtualBox prior to 5.0.32, prior to 5.1.14

Timeline

  • 2016-12: disclosed: Vulnerability reported to Oracle by Wolfgang Hotwagner
  • 2017-01-17: patched: Oracle released a patch in the January Critical Patch Update
  • 2017-01-27: advisory: Initial public disclosure and NVD publication

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.