CVE-2022-21704 json
Incorrect Default Permissions in log4js-node
published 4y ago modified 4mo ago also GHSA-82v2-mx6x-wq7q , EUVD-2022-0513
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 22%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm log4js 6.4.0
- log4js_project log4js 6.4.0
- node-log4js Debian 14, Debian 13, Debian 12 6.4.1+~cs8.3.5-1
debian advisories DEBIAN-CVE-2022-21704
Is CVE-2022-21704 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.30% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | log4js | <6.4.0 |
6.4.0 |
Affected products
- log4js-node log4js-node
Classification
- Weakness
-
- CWE-276 Incorrect Default Permissions
- Technology feeds
References
-
github.com
/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76
web, patch, third-party-advisory
-
github.com
/log4js-node/streamroller/pull/87
web, issue-tracking, patch, third-party-advisory
-
github.com
/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q
web, patch, third-party-advisory
-
github.com
/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640
web, release-notes, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/12/msg00014.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21704
advisory
-
github.com
/log4js-node/log4js-node
package
Sources
- CVE List CVE-2022-21704
- GitHub Advisory GHSA-82v2-mx6x-wq7q
- NVD CVE-2022-21704
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.