{"schemaVersion":3,"id":"CVE-2022-21704","aliases":["UBUNTU-CVE-2022-21704","DEBIAN-CVE-2022-21704","DLA-3229-1","GHSA-82v2-mx6x-wq7q"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-01-19T00:00:00.000Z","modified":"2025-04-23T19:10:12.838Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00304,"percentile":0.21703,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00304},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00304,"percentile":0.21703}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00304,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00304,"percentile":0.21703}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-276","name":"Incorrect Default Permissions","description":"During installation, installed file permissions are set to allow anyone to modify those files.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/276.html"}],"affected":[{"vendor":"debian","product":"node-log4js","name":"node-log4js","label":"node-log4js","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-log4js","purlType":"deb","versions":[{"text":"< 4.0.2-2+deb10u1","noFixRecorded":false,"fixedIn":null},{"text":"< 6.4.1+~cs8.3.5-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.2-2+deb10u1 | < 6.4.1+~cs8.3.5-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-log4js","name":"node-log4js","label":"node-log4js","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-log4js","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"log4js_project","product":"log4js","name":"log4js","label":"log4js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.4.0","eol":null,"hubHref":"/vendor/log4js_project/log4js"},{"vendor":"log4js-node","product":"log4js-node","name":"log4js-node","label":"log4js-node","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.4.0","eol":null,"hubHref":"/vendor/log4js-node/log4js-node"},{"vendor":"Npm","product":"log4js","name":"log4js","label":"log4js","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/log4js","purlType":"npm","versions":[{"text":"< 6.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.4.0","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q","label":"github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q","hostname":"github.com","tags":["REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76","label":"github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76","hostname":"github.com","tags":["WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/log4js-node/streamroller/pull/87","label":"github.com/log4js-node/streamroller/pull/87","hostname":"github.com","tags":["REPORT","WEB","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640","label":"github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md","hostname":"github.com","tags":["REPORT","WEB","Release Notes","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html","label":"lists.debian.org/debian-lts-announce/2022/12/msg00014.html","hostname":"lists.debian.org","tags":["Mailing List","WEB","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-21704","label":"ubuntu.com/security/CVE-2022-21704","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/log4js-node/log4js-node/pull/1141","label":"github.com/log4js-node/log4js-node/pull/1141","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21704","label":"www.cve.org/CVERecord?id=CVE-2022-21704","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-21704","label":"security-tracker.debian.org/tracker/CVE-2022-21704","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21704","label":"nvd.nist.gov/vuln/detail/CVE-2022-21704","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/log4js-node/log4js-node","label":"github.com/log4js-node/log4js-node","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-01-19T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T19:10:12.838Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T02:03:06.124Z","stale":false,"partial":false}}