CVE-2022-21230
Last modified
CVE-2022-21230 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nanohttpd | Nanohttpd | <= 2.3.1 |
References
- https://snyk.io/vuln/SNYK-JAVA-ORGNANOHTTPD-2422798Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGNANOHTTPD-2422798Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-21230?
How severe is CVE-2022-21230?
How do I fix CVE-2022-21230?
Are you affected by CVE-2022-21230?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
