CVE-2022-21230

Summary

CVECVE-2022-21230
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-05-01 16:15:00 UTC
Updated2022-05-11 14:34:00 UTC
DescriptionThis 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.

Risk And Classification

Problem Types: NVD-CWE-Other

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Nanohttpd Nanohttpd All All All All

References

ReferenceSourceLinkTags
github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a0... MISC github.com
Creation of Temporary File With Insecure Permissions in org.nanohttpd:nanohttpd · Advisory · JLLeitschuh/security-research · GitHub MISC github.com
github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a0... MISC github.com
Information Exposure in org.nanohttpd:nanohttpd | CVE-2022-21230 | Snyk MISC snyk.io
nanohttpd/DefaultTempFile.java at efb2ebf85a2b06f7c508aba9eaad5377e3a01e81 · NanoHttpd/nanohttpd · GitHub MITRE github.com
nanohttpd/DefaultTempFileManager.java at efb2ebf85a2b06f7c508aba9eaad5377e3a01e81 · NanoHttpd/nanohttpd · GitHub MITRE github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

LEGACY: Jonathan Leitschuh

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report