Vulnerabilities in pkg:golang/github.com/lima-vm/lima/v2
PACKAGECVE-2026-53657 is a HIGH (CVSS 8.2) an arbitrary user vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Lima libraries in the Go ecosystem. The issue involves an arbitrary user in a qemu vm could gain the root privilege in the vm via the guest agent socket. Remediation is available by upgrading affected packages to version 2.1.3.
pkg:golang/github.com/lima-vm/lima/v2
Vulnerability advisories affecting package pkg:golang/github.com/lima-vm/lima/v2. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2j9v-p4xj-cjw2 | CVE-2026-53657 | HIGH | Lima: An arbitrary user in a QEMU VM could gain the root privilege in the VM via the guest agent socket |
CVE-2026-53657 at a Glance
Security Impact
CVSS: 8.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-53657
To remediate this vulnerability, upgrade all affected Lima dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/lima-vm/lima/v2 to 2.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/lima-vm/lima/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-53657, inspect your project dependencies for Lima:
inspect dependencies for github.com/lima-vm/lima/v2
Analyze the terminal output to locate any version of Lima in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Lima, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-53657 Affected Lima Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/lima-vm/lima/v2
|
Go |
< 2.1.3
|
2.1.3
|
References
Frequently Asked Questions
What is CVE-2026-53657?
Which Lima versions are affected?
What version fixes CVE-2026-53657?
Is github.com/lima-vm/lima/v2 affected?
What is the CVSS score of CVE-2026-53657?
What CWE is associated with CVE-2026-53657?
How can I check Go dependencies for CVE-2026-53657?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2j9v-p4xj-cjw2",
"modified" : "2026-08-14T19:24:33Z",
"published" : "2026-08-14T19:24:33Z",
"aliases" : [ "CVE-2026-53657" ],
"summary" : "Lima: An arbitrary user in a QEMU VM could gain the root privilege in the VM via the guest agent socket",
"details" : "### Impact\nOn an instance of Lima running with `qemu` driver, an arbitrary user in the VM could access `/run/lima-guestagent.sock` when the guest agent is enabled.\n\nThis could result in running an arbitrary command with the root privileges in the VM (**not on the host**), as `lima-guestagent.sock` provides the tunneling service for an arbitrary address, including a Unix socket address for privileged daemons like D-Bus.\n\nThis vulnerability is not exploitable on `vz` driver, as the guest agent uses vsocks instead of Unix sockets.\n\n### Patches\nPatched in Lima v2.1.3 (8a45892378d22f40505c31a38f786a07701b6d50)\n\n> [!NOTE]\n> The default user account in the VM can still run an arbitrary command as the root via the guest agent socket.\n> This is not a vulnerability, as the user can already run an arbitrary command with `sudo` by design.\n\n### Workarounds\n- On macOS hosts, use `vz` driver instead of `qemu` (`limactl create --vm-type=vz`. Default since v1.0.)\n- Or, disable the guest agent (`limactl create --plain`)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/lima-vm/lima/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.1.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/lima-vm/lima/security/advisories/GHSA-2j9v-p4xj-cjw2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-53657"
}, {
"type" : "WEB",
"url" : "https://github.com/lima-vm/lima/commit/8a45892378d22f40505c31a38f786a07701b6d50"
}, {
"type" : "WEB",
"url" : "https://github.com/lima-vm/lima/commit/b08cae8a670cf916d5da11c48a6de76dabd89678"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lima-vm/lima"
}, {
"type" : "WEB",
"url" : "https://github.com/lima-vm/lima/releases/tag/v2.1.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276", "CWE-668" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-14T19:24:33Z",
"nvd_published_at" : "2026-07-10T17:16:57Z"
}
}