CVE-2022-21230
Summary
| CVE | CVE-2022-21230 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-05-01 16:15:00 UTC |
| Updated | 2022-05-11 14:34:00 UTC |
| 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. |
Risk And Classification
Problem Types: NVD-CWE-Other
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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
There are currently no legacy QID mappings associated with this CVE.