CVE-2022-21230
JSON

5.5medium

Information Exposure

Severity
5.5medium CVSS:3.1 by snyk
Exploit likelihood
0.36% (higher than 22% of CVEs)
Published
Last changed
Assigned by
snyk

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.

Affected

Product or packageVersionsReported by
org.nanohttpd:nanohttpdbefore unspecifiedCVE List
nanohttpd nanohttpdup to 2.3.1NVD

All scores

snyk5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD2.1low CVSS:2.0AV:L/AC:L/Au:N/C:P/I:N/A:N

What each source says

CVE List

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.

NVD (es)

Esto afecta a todas las versiones del paquete org.nanohttpd:nanohttpd. Cuando una sesión HTTP está analizando el cuerpo de una petición HTTP, el cuerpo de la petición es escrita en un RandomAccessFile cuando es mayor de 1024 bytes. Este archivo es creado con permisos inseguros que permiten que su contenido sea visualizado por todos los usuarios de la máquina anfitriona. **Mitigación:** Especificar manualmente el argumento -Djava.io.tmpdir= cuando es iniciado Java para establecer el directorio temporal en un directorio controlado exclusivamente por el usuario actual puede corregir este problema

References

Sources

SourceRecordLicence
CVE ListCVE-2022-21230 changed 2024-09-16CVE Terms of Use
NVDCVE-2022-21230 changed 2026-06-17Public domain