CVE-2021-41973: Infinite loop in Apache MINA
Summary
CVE-2021-41973: Infinite loop in Apache MINA. Affects org.apache.mina:mina-core across 2 version ranges.
< 2.0.22
>= 2.1.0, < 2.1.5
Fixed in 2.0.22 or 2.1.5, depending on the release line you run. How to fix ↓
Also tracked for
- mina2 · Debian:11
The same CVE-2021-41973 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache MINA is a network application framework that provides a high-performance, event-driven architecture for building scalable and robust network applications. It is commonly used for developing server-side applications that require efficient network communication. The vulnerability identified as CVE-2021-41973 affects the HTTP Header decoder in Apache MINA, which can be exploited by a specially crafted, malformed HTTP request. This vulnerability can lead to an infinite loop in the decoder, causing the application to consume excessive resources and potentially resulting in a denial-of-service (DoS) condition.
Vulnerability Detail
The vulnerability arises from an incorrect assumption made by the HTTP Header decoder in Apache MINA. The decoder expects the HTTP Header to begin at the beginning of the buffer and loops indefinitely if there is more data than expected. This flaw can be exploited by an attacker by sending a specially crafted HTTP request that triggers the infinite loop. As a result, the affected application may become unresponsive or crash due to resource exhaustion. The impact of this vulnerability is considered moderate, with a CVSS score of 6.5.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 2.0.222.0.22 -
>= 2.1.0, < 2.1.52.1.5
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to update Apache MINA to the fixed version as soon as possible to address the issue.
Conclusion
The CVE-2021-41973 vulnerability in Apache MINA exposes a potential risk of resource exhaustion and denial-of-service. It is crucial to update the affected package to version 2.1.5 or later to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.mina:mina-core →
FAQ
Apache MINA is a network application framework used for building scalable and robust network applications.
The vulnerability can lead to an infinite loop in the HTTP Header decoder, causing resource exhaustion and potentially resulting in a denial-of-service condition.
To fix this vulnerability, update Apache MINA to version 2.1.5 or later.
No, there is no known workaround for this vulnerability. Updating to the fixed version is the recommended solution.
The CVSS score of this vulnerability is 6.5, indicating a moderate impact.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.mina:mina-core.