CVE-2022-21704Incorrect Default Permissions in Log4js-node

Severity
5.5MEDIUMNVD
OSV4.7
EPSS
0.1%
top 65.52%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJan 19
Latest updateMar 24

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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NExploitability: 1.8 | Impact: 3.6

Affected Packages5 packages

debiandebian/node-log4js< node-log4js 6.4.1+~cs8.3.5-1 (bookworm)
CVEListV5log4js-node/log4js-node< 6.4.0
Ubuntulinux/linux_kernel< 4.4.0-278.312+1

Also affects: Debian Linux 10.0

Patches

🔴Vulnerability Details

11
OSV
linux-azure, linux-azure-4.15 vulnerabilities2026-03-24
OSV
linux-azure vulnerabilities2026-03-24
OSV
linux-azure-fips vulnerabilities2026-03-24
OSV
linux-aws-fips, linux-fips, linux-gcp-fips vulnerabilities2026-03-20
OSV
linux, linux-aws, linux-aws-hwe, linux-gcp, linux-gcp-4.15, linux-hwe, linux-kvm, linux-oracle vulnerabilities2026-03-20

📋Vendor Advisories

1
Debian
CVE-2022-21704: node-log4js - log4js-node is a port of log4js to node.js. In affected versions default file pe...2022

📄Research Papers

1
arXiv
Attack Techniques and Threat Identification for Vulnerabilities2022-06-22