CVE-2022-21704

Incorrect Default Permissions in log4js-node

MEDIUM
5.5
CVSS Score
Published: January 19, 2022 at 12:00 AM UTC
Updated: June 17, 2026 at 04:26 AM UTC
3 products affected across 3 vendorsDebian LinuxLOG4JSLOG4JS Node

Using log4js-node by log4js-node?

Get instant alerts when new vulnerabilities affect log4js-node - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.4.0
Affected range stops below 6.4.0, so it looks safe — our inference, not a vendor statement
v < 6.4.0
Affected range stops below 6.4.0, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMGitHub_M
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-276

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card