CVE-2022-21704

NameCVE-2022-21704
Descriptionlog4js-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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3229-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-log4js (PTS)buster4.0.2-2vulnerable
buster (security)4.0.2-2+deb10u1fixed
bullseye6.3.0+~cs8.3.10-1+deb11u1fixed
bookworm6.7.1+~cs8.4.17-1fixed
sid, trixie6.9.1+~cs8.4.19-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-log4jssourcestretch(unfixed)end-of-life
node-log4jssourcebuster4.0.2-2+deb10u1DLA-3229-1
node-log4jssourcebullseye6.3.0+~cs8.3.10-1+deb11u1
node-log4jssource(unstable)6.4.1+~cs8.3.5-1

Notes

[stretch] - node-log4js <end-of-life> (Nodejs in stretch not covered by security support)
https://github.com/log4js-node/log4js-node/pull/1141 (v6.4.1)
https://github.com/log4js-node/streamroller/pull/87
https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q
https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640

Search for package or bug name: Reporting problems