Incorrect Default Permissions Affecting node-log4js package, versions <4.0.2-2+deb10u1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.05% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Default Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN10-NODELOG4JS-2393724
  • published4 Feb 2022
  • disclosed19 Jan 2022

Introduced: 19 Jan 2022

CVE-2022-21704  (opens in a new tab)
CWE-276  (opens in a new tab)

How to fix?

Upgrade Debian:10 node-log4js to version 4.0.2-2+deb10u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-log4js package and not the node-log4js package as distributed by Debian. See How to fix? for Debian:10 relevant fixed versions and status.

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 Base Scores

version 3.1