CVE-2022-21704

Incorrect Default Permissions in log4js-node

Published Jan 19, 2022 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3229-1 node-log4js security update
EUVD EUVD EUVD-2022-0513 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.
Github GHSA Github GHSA GHSA-82v2-mx6x-wq7q Incorrect Default Permissions in log4js
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 23, 2025, 7:10 PM
Reserved
Nov 16, 2021, 12:00 AM
Status
Modified
Published
Jan 19, 2022, 11:15 PM
Modified
Jun 17, 2026, 4:26 AM