Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. log4js
  4. ›
  5. CVE-2022-21704

CVE-2022-21704: Incorrect Default Permissions in log4js

January 19, 2022 (updated February 3, 2023)

log4js-node is a port of log4js to node. 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.

References

  • github.com/advisories/GHSA-82v2-mx6x-wq7q
  • github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md
  • github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76
  • github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q
  • github.com/log4js-node/streamroller/pull/87
  • nvd.nist.gov/vuln/detail/CVE-2022-21704

Code Behaviors & Features

Detect and mitigate CVE-2022-21704 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.4.0

Fixed versions

  • 6.4.0

Solution

Upgrade to version 6.4.0 or above.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-276: Incorrect Default Permissions

Source file

npm/log4js/CVE-2022-21704.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:43 +0000.