CVE-2022-21230: This affects all versions of package org.nanohttpd:nanohttpd
CVE-2022-21230 is a medium-severity flaw (CVSS 5.5) affecting nanohttpd. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 d
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 77%) |
| CISA exploited list | No |
| Published | 2022-05-01 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-21230?
nanohttpd: upgrade to newer than 2.3.1. Exact commands for each OS are on this page.
Is CVE-2022-21230 being exploited?
CVE-2022-21230 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-21230 affect?
CVE-2022-21230 affects nanohttpd. Severity is medium (CVSS 5.5). 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 crea
How urgent is CVE-2022-21230?
Priority 25/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2020-13697 MEDIUM 6.1 UPGRADE An issue was discovered in RouterNanoHTTPD.java in NanoHTTPD through 2.3.1