{"id":"CVE-2022-21230","summary":"Information Exposure","details":"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.","aliases":["GHSA-2r85-x9cf-8fcg","SNYK-JAVA-ORGNANOHTTPD-2422798"],"modified":"2026-08-12T03:51:36.559284740Z","published":"2022-05-01T15:20:21.538Z","database_specific":{"unresolved_ranges":[{"extracted_events":[{"last_affected":"0"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"snyk","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21230.json"},"references":[{"type":"WEB","url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFile.java%23L58"},{"type":"WEB","url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFileManager.java%23L60"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21230.json"},{"type":"ADVISORY","url":"https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-2r85-x9cf-8fcg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21230"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JAVA-ORGNANOHTTPD-2422798"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nanohttpd/nanohttpd","events":[{"introduced":"0"},{"last_affected":"16ed41b22c2739838ec7cb0e6ba26d52f4c8db3e"}],"database_specific":{"cpe":"cpe:2.3:a:nanohttpd:nanohttpd:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"2.3.1"}],"source":"CPE_RANGE"}}],"versions":["nanohttpd-project-2.3.1","nanohttpd-project-2.3.0","nanohttpd-project-2.2.0","Release-2.1.0","Release-2.0.5","Release-2.0.4","Release-2.0.3","Release-2.0.2","2.0.0-Release","v1.25"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21230.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}