{"api_version":"1","generated_at":"2026-07-23T13:04:29+00:00","cve":"CVE-2022-21230","urls":{"html":"https://cve.report/CVE-2022-21230","api":"https://cve.report/api/cve/CVE-2022-21230.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21230","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21230"},"summary":{"title":"CVE-2022-21230","description":"This affects all versions of package org.nanohttpd:nanohttpd. Whenever an HTTP Session is parsing the body of an HTTP request, the body of the request is written to a RandomAccessFile when the it is larger than 1024 bytes. This file is created with insecure permissions that allow its contents to be viewed by all users on the host machine. **Workaround:** Manually specifying the -Djava.io.tmpdir= argument when launching Java to set the temporary directory to a directory exclusively controlled by the current user can fix this issue.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-05-01 16:15:00","updated_at":"2022-05-11 14:34:00"},"problem_types":["NVD-CWE-Other"],"metrics":[],"references":[{"url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFile.java%23L58","name":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFile.java%23L58","refsource":"MISC","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-2r85-x9cf-8fcg","name":"https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-2r85-x9cf-8fcg","refsource":"MISC","tags":[],"title":"Creation of Temporary File With Insecure Permissions in org.nanohttpd:nanohttpd · Advisory · JLLeitschuh/security-research · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFileManager.java%23L60","name":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFileManager.java%23L60","refsource":"MISC","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGNANOHTTPD-2422798","name":"https://snyk.io/vuln/SNYK-JAVA-ORGNANOHTTPD-2422798","refsource":"MISC","tags":[],"title":"Information Exposure in org.nanohttpd:nanohttpd | CVE-2022-21230 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFile.java#L58","name":"MISC:https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFile.java%23L58","refsource":"MITRE","tags":[],"title":"nanohttpd/DefaultTempFile.java at efb2ebf85a2b06f7c508aba9eaad5377e3a01e81 · NanoHttpd/nanohttpd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFileManager.java#L60","name":"MISC:https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFileManager.java%23L60","refsource":"MITRE","tags":[],"title":"nanohttpd/DefaultTempFileManager.java at efb2ebf85a2b06f7c508aba9eaad5377e3a01e81 · NanoHttpd/nanohttpd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21230","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21230","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Jonathan Leitschuh","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"21230","vulnerable":"1","versionEndIncluding":"2.3.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nanohttpd","cpe5":"nanohttpd","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-05-01T15:19:52.709244Z","ID":"CVE-2022-21230","STATE":"PUBLIC","TITLE":"Information Exposure"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"org.nanohttpd:nanohttpd","version":{"version_data":[{"version_affected":">=","version_value":"0"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Information Exposure"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JAVA-ORGNANOHTTPD-2422798","name":"https://snyk.io/vuln/SNYK-JAVA-ORGNANOHTTPD-2422798"},{"refsource":"MISC","url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFile.java%23L58","name":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFile.java%23L58"},{"refsource":"MISC","url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFileManager.java%23L60","name":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFileManager.java%23L60"},{"refsource":"MISC","url":"https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-2r85-x9cf-8fcg","name":"https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-2r85-x9cf-8fcg"}]},"description":{"description_data":[{"lang":"eng","value":"This affects all versions of package org.nanohttpd:nanohttpd. Whenever an HTTP Session is parsing the body of an HTTP request, the body of the request is written to a RandomAccessFile when the it is larger than 1024 bytes. This file is created with insecure permissions that allow its contents to be viewed by all users on the host machine. **Workaround:** Manually specifying the -Djava.io.tmpdir= argument when launching Java to set the temporary directory to a directory exclusively controlled by the current user can fix this issue."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"}},"credit":[{"lang":"eng","value":"Jonathan Leitschuh"}]},"nvd":{"publishedDate":"2022-05-01 16:15:00","lastModifiedDate":"2022-05-11 14:34:00","problem_types":["NVD-CWE-Other"],"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:nanohttpd:nanohttpd:*:*:*:*:*:*:*:*","versionEndIncluding":"2.3.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}