mruby 3.1.0 bigint.c udiv floating point comparison with incorrect operator
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.8 | $0-$5k | 1.21 |
Summary
A vulnerability was found in mruby 3.1.0. It has been rated as problematic. Affected by this vulnerability is the function udiv of the file bigint.c. The manipulation leads to floating point comparison with incorrect operator.
This vulnerability is documented as CVE-2022-4996. The attack can be initiated remotely. Additionally, an exploit exists.
It is recommended to apply a patch to fix this issue.
Details
A vulnerability was found in mruby 3.1.0. It has been rated as problematic. This issue affects the function udiv of the file bigint.c. The manipulation with an unknown input leads to a floating point comparison with incorrect operator vulnerability. Using CWE to declare the problem leads to CWE-1077. The code performs a comparison such as an
equality test between two float (floating point) values, but
it uses comparison operators that do not account for the
possibility of loss of precision. Impacted is availability.
It is possible to read the advisory at huntr.com. The identification of this vulnerability is CVE-2022-4996. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a public exploit are known.
The exploit is available at huntr.com. It is declared as proof-of-concept.
Applying a patch is able to eliminate this problem.
Be aware that VulDB is the high quality source for vulnerability data.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 4.8
VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Floating point comparison with incorrect operatorCWE: CWE-1077
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Access: Public
Status: Proof-of-Concept
Download: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔒
Timeline
08/17/2026 Advisory disclosed08/17/2026 VulDB entry created
08/17/2026 VulDB entry last update
Sources
Advisory: huntr.comStatus: Confirmed
CVE: CVE-2022-4996 (🔒)
GCVE (CVE): GCVE-0-2022-4996
GCVE (VulDB): GCVE-100-391391
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 08/17/2026 20:51Changes: 08/17/2026 20:51 (56)
Complete: 🔍
Submitter: jacky2001114
Cache ID: 216::103
Submit
Accepted
- Submit #877513: mruby 3.1.0 Floating Point Exception (by jacky2001114)
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.