All vulnerabilities

Servers and applications

CVE-2024-21896

The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve(). By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, the application can modify the result of path.resolve(), which…

Severity
Critical 9.8
Published
20 Feb 2024
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
20.11.1, 21.6.2
Sources
NVD

Affected software

SoftwareAffected versions
Node.jsServers and applications · cpe:a:nodejs:node.js
  • From 20.0.0 before 20.11.1
  • From 21.0.0 before 21.6.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2024-21896
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2024-21896