Vulnerability · Published Jan 19, 2022 · Assigned by GitHub_M

CVE-2022-21704Incorrect Default Permissions in log4js-node

Medium 5.5

In plain English

A medium-severity incorrect default permissions in log4js-node from log4js-node. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.3%top 77.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-log4js6.4.1+~cs8.3.5-1DEBIAN-CVE-2022-21704
Debian:13node-log4js6.4.1+~cs8.3.5-1DEBIAN-CVE-2022-21704
Debian:14node-log4js6.4.1+~cs8.3.5-1DEBIAN-CVE-2022-21704
npmlog4js6.4.0GHSA-82v2-mx6x-wq7q

Affected products (as reported)

VendorProductVersions
log4js-node log4js-node < 6.4.0

Weakness: CWE-276 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

References