Skip to content

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

MediumCVSS 5.5 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

10 packages: 5 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/node-log4js(Ubuntu 16.04) = 0.6.18-1; All versions No fix listed No fix yet
ubuntu/node-log4js(Ubuntu 18.04) = 0.6.18-1; All versions No fix listed No fix yet
ubuntu/node-log4js(Ubuntu 20.04) = 4.5.1-3; = 5.2.1-1; = 6.1.0-1; All versions No fix listed No fix yet
debian/node-log4js(Debian 12) < 6.4.1+~cs8.3.5-1 6.4.1+~cs8.3.5-1 Fixed
debian/node-log4js(Debian 13) < 6.4.1+~cs8.3.5-1 6.4.1+~cs8.3.5-1 Fixed
debian/node-log4js(Debian 14) < 6.4.1+~cs8.3.5-1 6.4.1+~cs8.3.5-1 Fixed
log4js project log4js < 6.4.0 6.4.0 Fixed
npm log4js(npm) < 6.4.0 6.4.0 Fixed
debian linux = 10.0 No fix listed Versions listed
log4js-node = < 6.4.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm log4js(npm) < 6.4.0 6.4.0
log4js-node = < 6.4.0 No fix listed
log4js project log4js < 6.4.0 6.4.0
debian linux = 10.0 No fix listed
debian/node-log4js(Debian:12) < 6.4.1+~cs8.3.5-1 6.4.1+~cs8.3.5-1
debian/node-log4js(Debian:14) < 6.4.1+~cs8.3.5-1 6.4.1+~cs8.3.5-1
debian/node-log4js(Debian:13) < 6.4.1+~cs8.3.5-1 6.4.1+~cs8.3.5-1
ubuntu/node-log4js(Ubuntu:16.04) All versions No fix listed
ubuntu/node-log4js(Ubuntu:16.04) = 0.6.18-1 No fix listed
ubuntu/node-log4js(Ubuntu:18.04) All versions No fix listed
ubuntu/node-log4js(Ubuntu:18.04) = 0.6.18-1 No fix listed
ubuntu/node-log4js(Ubuntu:20.04) All versions No fix listed
ubuntu/node-log4js(Ubuntu:20.04) = 4.5.1-3 No fix listed
ubuntu/node-log4js(Ubuntu:20.04) = 5.2.1-1 No fix listed
ubuntu/node-log4js(Ubuntu:20.04) = 6.1.0-1 No fix listed

References