{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-21230","published":"2022-05-01T16:15:08.250000Z","last_modified":"2026-06-17T04:25:49.200000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":[],"cpes":[{"criteria":"cpe:2.3:a:nanohttpd:nanohttpd:*:*:*:*:*:*:*:*","part":"a","vendor":"nanohttpd","product":"nanohttpd","version_end_including":"2.3.1"}],"cpes_truncated":false,"vendors":["nanohttpd"],"products":["nanohttpd/nanohttpd"],"epss":{"score":0.00355,"percentile":0.21618,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2022-21230/","html_en":"/en/cve/CVE-2022-21230/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21230","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21230"},"untrusted":{"vendor_name":"Nanohttpd","product_name":"Nanohttpd","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-2r85-x9cf-8fcg","tags":["Third Party Advisory"]},{"url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFile.java%23L58","tags":["Broken Link"]},{"url":"https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/core/src/main/java/org/nanohttpd/protocols/http/tempfiles/DefaultTempFileManager.java%23L60","tags":["Broken Link"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGNANOHTTPD-2422798","tags":["Third Party Advisory"]}]}}