CVE-2022-21704 MEDIUM

CVE-2022-21704: Incorrect Default Permissions in log4js-node

Vendor Log4Js-Node
Product log4js-node
Weakness CWE-276
Published January 19, 2022
Last update April 23, 2025

CVSS base score

5.5/10
Attack vector Local
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity None

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

January 19, 2022 CVE published
April 23, 2025 Record updated