🛡️ CVE-2022-21704 on Ubuntu — node-log4js

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

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.

Distribution advisory

This page covers CVE-2022-21704 as tracked by Ubuntu, for the package node-log4js. No fixed version has been recorded for this distribution yet.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

Weakness class

UBUNTU-CVE-2022-21704 is classified as CWE-276: Incorrect Default Permissions. Files or resources are created with permissions that are broader than they need to be.

Affected software

UBUNTU-CVE-2022-21704 is recorded against 1 package.

  • node-log4js

Timeline and source

Published on 19 January 2022 and last revised on 24 October 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

ubuntu.com (Report)
github.com (Report)
github.com (Report)
github.com (Report)
github.com (Report)
www.cve.org (Report)

CVE-2022-21704 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2022-01-19
Updated 2026-08-20
Modified 2025-10-24
Fix URL N/A

Affected Packages

Software From version Fixed in
node-log4js

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in node-log4js

UBUNTU-CVE-2022-21704 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesUbuntuUbuntu 2022