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 package | Versions | Reported by |
|---|---|---|
| org.nanohttpd:nanohttpd | before unspecified | CVE List |
| nanohttpd nanohttpd | up to 2.3.1 | NVD |
All scores
| snyk | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.1low CVSS:2.0 | AV: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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21230 changed 2024-09-16 | CVE Terms of Use |
| NVD | CVE-2022-21230 changed 2026-06-17 | Public domain |