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

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2022-01-19T00:00:00.000Z
- Modified: 2026-06-17T04:26:48.187Z
- Also known as: GHSA-82v2-mx6x-wq7q
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- log4js-node log4js-node: < 6.4.0
- log4js (npm): before 6.4.0
- log4js_project log4js: before 6.4.0
- debian debian_linux: 10.0

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q> (patch, third-party-advisory, web)
- <https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76> (patch, third-party-advisory, web)
- <https://github.com/log4js-node/streamroller/pull/87> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640> (release-notes, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21704> (advisory)
- <https://github.com/log4js-node/log4js-node> (package)

## Sources

- CVE List: [CVE-2022-21704](https://www.cve.org/CVERecord?id=CVE-2022-21704), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-82v2-mx6x-wq7q](https://github.com/advisories/GHSA-82v2-mx6x-wq7q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-21704](https://nvd.nist.gov/vuln/detail/CVE-2022-21704), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21704 · Whole record: https://cve.day/CVE-2022-21704.json · Rebuilt by cve.day 2026-11-25T22:58:09.377Z
