CVE-2022-21230 Information Exposure

Medium 5.5 Published Updated

Local attackers can read sensitive HTTP request bodies from temporary files due to insecure file permissions in the NanoHTTPD library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-21230?

CVE-2022-21230 is a medium-severity vulnerability in org.nanohttpd:nanohttpd, published on 1 May 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2022-21230?

It affects 1 product.

Products include Nanohttpd Nanohttpd.

How do I fix CVE-2022-21230?

No fix has been published for CVE-2022-21230 yet. Limit exposure of the affected software until one is available.

Is CVE-2022-21230 being exploited?

There is no known exploitation of CVE-2022-21230 in the wild and no public exploit code.

Sources

Also known as GHSA-2r85-x9cf-8fcg, SNYK-JAVA-ORGNANOHTTPD-2422798.

Is CVE-2022-21230 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free