CVE-2022-21704

Incorrect Default Permissions in log4js-node

State
Published
Severity
5.5 Medium
Published
Jan 19, 2022
Updated
Apr 23, 2025
Reserved
Nov 16, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NGitHub_M

Weaknesses

  • CWE-276 Incorrect Default Permissions

Affected Products

ProductVersions
log4js-nodelog4js-node
  • < 6.4.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.