UBUNTU-CVE-2024-21891

Source
https://ubuntu.com/security/CVE-2024-21891
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21891.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-21891
Upstream
Withdrawn
2025-07-18T16:56:23Z
Published
2024-02-20T02:15:00Z
Modified
2025-07-16T07:46:54.802445Z
Severity
  • 7.9 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

References

Affected packages

Ubuntu:25.04 / nodejs

Package

Name
nodejs
Purl
pkg:deb/ubuntu/nodejs@20.18.1+dfsg-1ubuntu2?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
20.18.1+dfsg-1ubuntu2

Affected versions

20.*

20.16.0+dfsg-1ubuntu1
20.17.0+dfsg-2ubuntu1
20.18.0+dfsg-2
20.18.1+dfsg-1ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libnode-dev",
            "binary_version": "20.18.1+dfsg-1ubuntu2"
        },
        {
            "binary_name": "libnode115",
            "binary_version": "20.18.1+dfsg-1ubuntu2"
        },
        {
            "binary_name": "libnode115-dbgsym",
            "binary_version": "20.18.1+dfsg-1ubuntu2"
        },
        {
            "binary_name": "nodejs",
            "binary_version": "20.18.1+dfsg-1ubuntu2"
        },
        {
            "binary_name": "nodejs-dbgsym",
            "binary_version": "20.18.1+dfsg-1ubuntu2"
        },
        {
            "binary_name": "nodejs-doc",
            "binary_version": "20.18.1+dfsg-1ubuntu2"
        }
    ],
    "availability": "No subscription required"
}