Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-41051

LOW 2.5EPSS 16%

Default functions in VolatileMemory trait lack bounds checks in vm-memory

Also known as GHSA-49hh-fprx-m68g, RUSTSEC-2023-0056

Mitigation

  • Upgrade vm-memory to 0.12.2 or later.

Who should check

  • Projects that depend on crates.io package vm-memory (< 0.12.2)
  • Anyone running rust-vmm vm-memory >= 0.1.0, < 0.12.2

Vulnerability facts

Affected
vm-memory < 0.12.2
Fixed in
0.12.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
2.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: Low
EPSS
0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
CWE
CWE-125
Published
Modified

Description

In a typical Virtual Machine Monitor (VMM) there are several components, such as boot loader, virtual device drivers, virtio backend drivers and vhost drivers, that need to access the VM physical memory. The vm-memory rust crate provides a set of traits to decouple VM memory consumers from VM memory providers. An issue was discovered in the default implementations of the `VolatileMemory::{get_atomic_ref, aligned_as_ref, aligned_as_mut, get_ref, get_array_ref}` trait functions, which allows out-of-bounds memory access if the `VolatileMemory::get_slice` function returns a `VolatileSlice` whose length is less than the function’s `count` argument. No implementations of `get_slice` provided in `vm_memory` are affected. Users of custom `VolatileMemory` implementations may be impacted if the custom implementation does not adhere to `get_slice`'s documentation. The issue started in version 0.1.0 but was fixed in version 0.12.2 by inserting a check that verifies that the `VolatileSlice` returned by `get_slice` is of the correct length. Users are advised to upgrade. There are no known workarounds for this issue.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io vm-memory< 0.12.20.12.2osv
rust-vmm vm-memory>= 0.1.0, < 0.12.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-41051. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-41051.md
Affected: vm-memory < 0.12.2
Fixed in: 0.12.2

Steps:
1. Search this machine and project for vm-memory (crates.io), rust-vmm vm-memory: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-41051 being exploited?

There is no confirmed exploitation: CVE-2023-41051 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-41051?

Low: CVSS 2.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2023-41051?

vm-memory < 0.12.2.

Is there a fix for CVE-2023-41051?

Yes. Fixed in 0.12.2. Upgrade vm-memory to 0.12.2 or later.

How do I check if I'm affected by CVE-2023-41051?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors