CVE-2025-55132: fs.futimes() Bypasses Read-Only Permission Model
A flaw in Node.js's permission model allows a file's access and modification timestamps to be changed via futimes() even when the process has only read permissions. Unlike utimes(), futimes() does not apply the expected write-permission checks, which means file metadata can be modified in read-only directories. This behavior could be used to alter timestamps in ways that obscure activity, reducing the reliability of logs. This vulnerability affects users of the permission model on Node.js v20, v22, v24, and v25.
Other sources
A flaw in Node.js's permission model allows a file's access and modification timestamps to be changed via futimes() even when the process has only read permissions.
Unlike utimes(), futimes() does not apply the expected write-permission checks, which means file metadata can be modified in read-only directories. This behavior could be used to alter timestamps in ways that obscure activity, reducing the reliability of logs.
— Node.Js
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 20.20.0Fixed in 22.22.0Fixed in 24.13.0Fixed in 25.3.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 20.20.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 22.22.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 24.13.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.3.0 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 20.19.2+dfsg-1+deb13u1Fixed in 22.22.0+dfsg+~cs22.19.6-1 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 20.19.2+dfsg-1+deb13u1 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 22.22.0+dfsg+~cs22.19.6-1 - Upgrade
Upgrade
alpine/nodejsto a version that resolves this vulnerability.Fixed in 22.22.2-r0 - Upgrade
Upgrade
alpine/nodejsto a version that resolves this vulnerability.Fixed in 22.22.0-r0 - Upgrade
Upgrade
alpine/nodejsto a version that resolves this vulnerability.Fixed in 24.13.0-r0
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2025-55132?
CVE-2025-55132 is classified as a medium severity vulnerability due to its potential for unauthorized modification of file metadata.
How do I fix CVE-2025-55132?
To mitigate CVE-2025-55132, update to the latest version of Node.js where the vulnerability is patched.
What impact does CVE-2025-55132 have on file management in Node.js?
CVE-2025-55132 allows unauthorized changes to file access and modification timestamps, potentially compromising file integrity.
Which versions of Node.js are affected by CVE-2025-55132?
CVE-2025-55132 affects multiple versions of Node.js prior to the security patches released in December 2025.
Is there a workaround for CVE-2025-55132 if I cannot update Node.js?
There is no official workaround for CVE-2025-55132, making updating to a patched version the best mitigation.