Improper control of a resource through its lifetime in Wasmtime - CVE-2025-53901

 

Improper control of a resource through its lifetime in Wasmtime - CVE-2025-53901

Published: April 23, 2026


Vulnerability identifier: #VU127039
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-53901
CWE-ID: CWE-664
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Bytecode Alliance
Affected software:
Wasmtime

Detailed vulnerability description

The vulnerability allows a remote user to cause a denial of service.

The vulnerability exists due to improper state management in the WASIp1 fd_renumber implementation in wasmtime-wasi when processing a crafted sequence of WASI calls. A remote user can call fd_renumber with equal file descriptor values or a previously closed descriptor number and then call path_open to cause a denial of service.

Exploitation requires the ability to open a subsequent file descriptor, which is only possible when a preopened directory was provided to the guest. WASIp2 and embedders using components are not affected.


How to mitigate CVE-2025-53901

Install security update from vendor's website.

Sources