Vulnerability · Published Jan 19, 2022 · Assigned by GitHub_M
CVE-2022-21704Incorrect Default Permissions in log4js-node
Medium 5.5
In plain English
A medium-severity incorrect default permissions in log4js-node from log4js-node. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-log4js | 6.4.1+~cs8.3.5-1 | DEBIAN-CVE-2022-21704 |
| Debian:13 | node-log4js | 6.4.1+~cs8.3.5-1 | DEBIAN-CVE-2022-21704 |
| Debian:14 | node-log4js | 6.4.1+~cs8.3.5-1 | DEBIAN-CVE-2022-21704 |
| npm | log4js | 6.4.0 | GHSA-82v2-mx6x-wq7q |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| log4js-node | log4js-node | < 6.4.0 |
Weakness: CWE-276 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q
- https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76
- https://github.com/log4js-node/streamroller/pull/87
- https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640
- [debian-lts-announce] 20221206 [SECURITY] [DLA 3229-1] node-log4js security update mailing-list