CVE-2022-4996
mruby bigint.c udiv floating point comparison with incorrect operator
- State
- Published
- Severity
- 6.9 Medium
- Published
- Aug 19, 2026
- Updated
- Aug 21, 2026
- Reserved
- Aug 17, 2026
Description
A flaw has been found in mruby 3.1.0. Affected is the function udiv of the file bigint.c. Executing a manipulation can lead to floating point comparison with incorrect operator. It is possible to launch the attack remotely. The exploit has been published and may be used. It is best practice to apply a patch to resolve this issue.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 5.3 Medium | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C | VulDB |
| 3.0 | 5.3 Medium | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C | VulDB |
| 2.0 | 5.0 Medium | AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C | VulDB |
Weaknesses
- CWE-1077 Floating Point Comparison with Incorrect Operator
Affected Products
| Product | Versions |
|---|---|
mrubyn/a |
|
References
- VDB-391391 | mruby bigint.c udiv floating point comparison with incorrect operatorvdb-entrytechnical-description
- VDB-391391 | CTI Indicators (IOB, IOC, IOA)signaturepermissions-required
- CVE-2022-4996 | CVE Analysis and Reportthird-party-advisory
- Submit #877513 | mruby 3.1.0 Floating Point Exceptionthird-party-advisory
- https://huntr.com/bounties/5a5092df-1699-4497-a8b2-38318bce0c4eexploit
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.