PT-2022-14939 · Nanohttpd · Nanohttpd

Jonathan Leitschuh

·

Published

2022-05-01

·

Updated

2022-05-11

·

CVE-2022-21230

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions org.nanohttpd:nanohttpd (affected versions not specified)
Description The issue affects the parsing of HTTP request bodies. When the body exceeds 1024 bytes, it is written to a RandomAccessFile with insecure permissions, allowing all users on the host machine to view its contents.
Recommendations For all affected versions, as a temporary workaround, consider manually specifying the -Djava.io.tmpdir= argument when launching Java to set the temporary directory to a directory exclusively controlled by the current user.

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Related Identifiers

CVE-2022-21230
GHSA-2R85-X9CF-8FCG
SNYK-JAVA-ORGNANOHTTPD-2422798

Affected Products

Nanohttpd