CVE-2022-21704
MEDIUM 5.5CVSS 3.1Incorrect Default Permissions in log4js
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.
- Published
- 19 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-276
- Also known as
- GHSA-82v2-mx6x-wq7q
- Sources
- NVDJSONOSV GHSA-82v2-mx6x-wq7qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | log4js_project | log4jscpe:2.3:a:log4js_project:log4js:*:*:*:*:*:node.js:*:* |
< 6.4.0 | 6.4.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | npm | log4js | < 6.4.0 | 6.4.0 |
References
- https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640 · Release Notes, Third Party Advisory, WEB
- https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76 · Patch, Third Party Advisory, WEB
- https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q · Patch, Third Party Advisory, WEB
- https://github.com/log4js-node/streamroller/pull/87 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21704 · ADVISORY
- https://github.com/log4js-node/log4js-node · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 19 Jan 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 21 Jan 2022)