Vulnerability Details : CVE-2021-21298
Node-Red is a low-code programming for event-driven applications built using nodejs. Node-RED 1.2.7 and earlier has a vulnerability which allows arbitrary path traversal via the Projects API. If the Projects feature is enabled, a user with `projects.read` permission is able to access any file via the Projects API. The issue has been patched in Node-RED 1.2.8. The vulnerability applies only to the Projects feature which is not enabled by default in Node-RED. The primary workaround is not give untrusted users read access to the Node-RED editor.
Vulnerability category: Directory traversal
Products affected by CVE-2021-21298
- cpe:2.3:a:nodered:node-red:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-21298
0.09%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 38 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-21298
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
3.5
|
LOW | AV:N/AC:M/Au:S/C:P/I:N/A:N |
6.8
|
2.9
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
2.8
|
3.6
|
NIST | |
3.5
|
LOW | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N |
1.8
|
1.4
|
GitHub, Inc. |
CWE ids for CVE-2021-21298
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: security-advisories@github.com (Primary)
References for CVE-2021-21298
-
https://github.com/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f
Path traversal via Projects API · Advisory · node-red/node-red · GitHubThird Party Advisory
-
https://www.npmjs.com/package/@node-red/runtime
@node-red/runtime - npmProduct
-
https://github.com/node-red/node-red/releases/tag/1.2.8
Release 1.2.8: Maintenance Release · node-red/node-red · GitHubRelease Notes;Third Party Advisory
-
https://github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456
Restrict project file access to inside the project directory · node-red/node-red@74db3e1 · GitHubPatch;Third Party Advisory
Jump to