Skip to content

Malicious HTTP requests could close arbitrary opening file descriptors

Moderate
likebreath published GHSA-g6mw-f26h-4jgp Apr 19, 2023

Package

cargo Cloud Hypervisor (Rust)

Affected versions

v30.0, v31.0

Patched versions

v30.1, v31.1

Description

Impact

This vulnerability allows users to close arbitrary opening file descriptors in the Cloud Hypervisor process via sending malicious HTTP request through the HTTP API socket. As a result, the Cloud Hypervisor process can be easily crashed, causing Deny-of-Service (DoS). This can also be a potential Use-After-Free (UAF) vulnerability. Users require to have the write access to the API socket file to trigger this vulnerability.

Impacted versions of Cloud Hypervisor include upstream main branch, v31.0, and v30.0. The vulnerability was initially detected by our http_api_fuzzer via oss-fuzz [1] [2].

Patches

#5350
#5373

Workarounds

The issue can be mitigated by ensuring the write access to the API socket file is granted to trusted users only.

References

[1] https://oss-fuzz.com/testcase-detail/5426283514560512
[2] https://oss-fuzz.com/testcase-detail/5260873569796096

Severity

Moderate
4.0
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L

CVE ID

CVE-2023-30612

Weaknesses

No CWEs