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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-21225Improper neutralization in the Intel(R) Data Center Manager …8
- CVE-2022-21226Out-of-bounds read in the Intel(R) Trace Analyzer and Collec…5.5
- CVE-2022-21227The package sqlite3 before 5.0.3 are vulnerable to Denial of…7.5
- CVE-2022-21228The affected product is vulnerable to a stack-based buffer o…7.8
- CVE-2022-21229Improper buffer restrictions for some Intel(R) NUC 9 Extreme…7.8
- CVE-2022-2123The WP Opt-in WordPress plugin through 1.4.1 is vulnerable t…4.3
- CVE-2022-21231All versions of package deep-get-set are vulnerable to Proto…9.8
- CVE-2022-21233Improper isolation of shared resources in some Intel(R) Proc…5.5
- CVE-2022-21234An SQL injection vulnerability exists in the EchoAssets.aspx…8.8
- CVE-2022-21235The package github.com/masterminds/vcs before 1.13.3 are vul…9.8
- CVE-2022-21236An information disclosure vulnerability exists due to a web …7.5
- CVE-2022-21237Improper buffer access in firmware for some Intel(R) NUCs ma…6.7
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
