UBUNTU-CVE-2024-22018

Source
https://ubuntu.com/security/CVE-2024-22018
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-22018.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2024-22018
Related
Published
2024-07-10T02:15:00Z
Modified
2025-06-03T08:52:17Z
Severity
  • 2.9 (Low) CVSS_V3 - CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
[none]
Details

A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-read flag is used. This flaw arises from an inadequate permission model that fails to restrict file stats through the fs.lstat API. As a result, malicious actors can retrieve stats from files that they do not have explicit read access to. 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:22.04:LTS / nodejs

Package

Name
nodejs
Purl
pkg:deb/ubuntu/nodejs@12.22.9~dfsg-1ubuntu3.6?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

12.*

12.22.5~dfsg-5ubuntu1
12.22.7~dfsg-2ubuntu1
12.22.7~dfsg-2ubuntu3
12.22.9~dfsg-1ubuntu2
12.22.9~dfsg-1ubuntu3
12.22.9~dfsg-1ubuntu3.1
12.22.9~dfsg-1ubuntu3.2
12.22.9~dfsg-1ubuntu3.3
12.22.9~dfsg-1ubuntu3.4
12.22.9~dfsg-1ubuntu3.5
12.22.9~dfsg-1ubuntu3.6

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / nodejs

Package

Name
nodejs
Purl
pkg:deb/ubuntu/nodejs@20.16.0+dfsg-1ubuntu1?arch=source&distro=oracular

Affected ranges

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

Affected versions

18.*

18.19.1+dfsg-6ubuntu5
18.20.1+dfsg-4ubuntu4

20.*

20.13.1+dfsg-2ubuntu6
20.14.0+dfsg-1ubuntu1
20.14.0+dfsg-2ubuntu1
20.14.0+dfsg-3ubuntu1
20.15.0+dfsg-1ubuntu3

Ecosystem specific

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

Ubuntu:24.04:LTS / nodejs

Package

Name
nodejs
Purl
pkg:deb/ubuntu/nodejs@18.19.1+dfsg-6ubuntu5?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

18.*

18.13.0+dfsg1-1ubuntu2
18.19.1+dfsg-2ubuntu4
18.19.1+dfsg-6ubuntu1
18.19.1+dfsg-6ubuntu2
18.19.1+dfsg-6ubuntu5

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:25.04 / nodejs

Package

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

Affected ranges

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

Ecosystem specific

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