Vulnerability Details : CVE-2022-21704
log4js-node is a port of log4js to node.js. In affected versions default file permissions for log files created by the file, fileSync and dateFile appenders are world-readable (in unix). This could cause problems if log files contain sensitive information. This would affect any users that have not supplied their own permissions for the files via the mode parameter in the config. Users are advised to update.
Products affected by CVE-2022-21704
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
- cpe:2.3:a:log4js_project:log4js:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-21704
0.05%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 14 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-21704
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
2.1
|
LOW | AV:L/AC:L/Au:N/C:P/I:N/A:N |
3.9
|
2.9
|
NIST | |
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
1.8
|
3.6
|
NIST | |
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
1.8
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2022-21704
-
During installation, installed file permissions are set to allow anyone to modify those files.Assigned by:
- nvd@nist.gov (Secondary)
- security-advisories@github.com (Primary)
References for CVE-2022-21704
-
https://github.com/log4js-node/streamroller/pull/87
Changed default file modes from 0o644 to 0o600 for better security by peteriman · Pull Request #87 · log4js-node/streamroller · GitHubIssue Tracking;Patch;Third Party Advisory
-
https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640
log4js-node/CHANGELOG.md at v6.4.0 · log4js-node/log4js-node · GitHubRelease Notes;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html
[SECURITY] [DLA 3229-1] node-log4js security updateMailing List;Third Party Advisory
-
https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76
Changed default file modes from 0o644 to 0o600 for better security by peteriman · Pull Request #1141 · log4js-node/log4js-node · GitHubPatch;Third Party Advisory
-
https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q
Incorrect Default Permissions in log4js · Advisory · log4js-node/log4js-node · GitHubPatch;Third Party Advisory
Jump to