{"id":"CVE-2022-21704","published":"2022-01-19T00:00:00Z","modified":"2025-04-23T19:10:12Z","title":"Incorrect Default Permissions in log4js-node","vendor":"log4js-node","product":"log4js-node","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0038,"percentile":0.23892,"provenance":"source"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q","tags":[]},{"url":"https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76","tags":[]},{"url":"https://github.com/log4js-node/streamroller/pull/87","tags":[]},{"url":"https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html","tags":["mailing-list"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":4.78},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"log4js-node","affectedVersions":[{"vendor":"log4js-node","product":"log4js-node","versions":["< 6.4.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:11:49.538794Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"log4js","vulnerableRanges":["<6.4.0"],"patched":["6.4.0"],"from":["GHSA-82v2-mx6x-wq7q"],"provenance":"source"}],"summary":{"text":"Incorrect default file permissions in log4js-node, a Node.js port of log4js, cause log files created by the file, fileSync and dateFile appenders to be world-readable on Unix systems. An attacker with local access to the host, and a low-privilege account there, could read log contents, which may include sensitive information; the exposure affects only users who have not set their own permissions through the mode parameter in the configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:40Z"},"euvd":{"id":"EUVD-2022-0513","exploited":false,"provenance":"source"}}