Files or Directories Accessible to External Parties Affecting github.com/lima-vm/lima/pkg package, versions <0.16.0


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMLIMAVMLIMAPKG-5661798
  • published31 May 2023
  • disclosed31 May 2023
  • creditUnknown

Introduced: 31 May 2023

CVE-2023-32684  (opens in a new tab)
CWE-552  (opens in a new tab)

How to fix?

Upgrade github.com/lima-vm/lima/pkg to version 0.16.0 or higher.

Overview

Affected versions of this package are vulnerable to Files or Directories Accessible to External Parties such that a virtual machine instance with a malicious disk image could read a single file on the host filesystem, even when no filesystem is mounted from the host.

Note:

To exploit this issue, the attacker has to embed the target file path (an absolute or a relative path from the instance directory) in a malicious disk image, as the qcow2 (or vmdk) backing file path string.

As Lima refuses to run as the root, it is practically impossible for the attacker to read the entire host disk via /dev/rdiskN.

Also, practically, the attacker cannot read at least the first 512 bytes (MBR) of the target file.

CVSS Scores

version 3.1