{"api_version":"1","generated_at":"2026-07-24T19:57:36+00:00","cve":"CVE-2022-21704","urls":{"html":"https://cve.report/CVE-2022-21704","api":"https://cve.report/api/cve/CVE-2022-21704.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21704","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21704"},"summary":{"title":"CVE-2022-21704","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-01-19 23:15:00","updated_at":"2023-02-03 19:16:00"},"problem_types":["CWE-276"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html","name":"[debian-lts-announce] 20221206 [SECURITY] [DLA 3229-1] node-log4js security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3229-1] node-log4js security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/log4js-node/streamroller/pull/87","name":"https://github.com/log4js-node/streamroller/pull/87","refsource":"MISC","tags":[],"title":"Changed default file modes from 0o644 to 0o600 for better security by peteriman · Pull Request #87 · log4js-node/streamroller · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76","name":"https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76","refsource":"MISC","tags":[],"title":"Changed default file modes from 0o644 to 0o600 for better security by peteriman · Pull Request #1141 · log4js-node/log4js-node · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640","name":"https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640","refsource":"MISC","tags":[],"title":"log4js-node/CHANGELOG.md at v6.4.0 · log4js-node/log4js-node · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q","name":"https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q","refsource":"CONFIRM","tags":[],"title":"Incorrect Default Permissions in log4js · Advisory · log4js-node/log4js-node · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21704","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21704","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"21704","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21704","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"log4js_project","cpe5":"log4js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-21704","qid":"181038","title":"Debian Security Update for node-log4js (CVE-2022-21704)"},{"cve":"CVE-2022-21704","qid":"181301","title":"Debian Security Update for node-log4js (DLA 3229-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-21704","STATE":"PUBLIC","TITLE":"Incorrect Default Permissions in log4js-node"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"log4js-node","version":{"version_data":[{"version_value":"< 6.4.0"}]}}]},"vendor_name":"log4js-node"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-276: Incorrect Default Permissions"}]}]},"references":{"reference_data":[{"name":"https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q","refsource":"CONFIRM","url":"https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q"},{"name":"https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76","refsource":"MISC","url":"https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76"},{"name":"https://github.com/log4js-node/streamroller/pull/87","refsource":"MISC","url":"https://github.com/log4js-node/streamroller/pull/87"},{"name":"https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640","refsource":"MISC","url":"https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640"},{"refsource":"MLIST","name":"[debian-lts-announce] 20221206 [SECURITY] [DLA 3229-1] node-log4js security update","url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html"}]},"source":{"advisory":"GHSA-82v2-mx6x-wq7q","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-01-19 23:15:00","lastModifiedDate":"2023-02-03 19:16:00","problem_types":["CWE-276"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:N/A:N","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":2.1},"severity":"LOW","exploitabilityScore":3.9,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:log4js_project:log4js:*:*:*:*:*:node.js:*:*","versionEndExcluding":"6.4.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"21704","Ordinal":"221418","Title":"CVE-2022-21704","CVE":"CVE-2022-21704","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"21704","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2022","CveId":"21704","Ordinal":"2","NoteData":"2022-01-19","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"21704","Ordinal":"3","NoteData":"2022-01-19","Type":"Other","Title":"Modified"}]}}}