Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.8
CVE-2022-4996: mruby 3.1.0: Incorrect Floating Point Comparison
CVE-2022-4996 · published 2 months ago
Summary
A flaw in mruby's udiv function can cause incorrect calculations. This could potentially lead to security issues. We recommend applying a patch to fix this issue as soon as possible.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | – | mruby | 3.1.0 |
| Ubuntu:16.04:LTS | canonical | mruby | All versions |
Original advisory text
mruby bigint.c udiv floating point comparison with incorrect operator
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.
References
- https://huntr.com/bounties/5a5092df-1699-4497-a8b2-38318bce0c4e Third Party Advisory
- https://ubuntu.com/security/CVE-2022-4996 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2022-4996 Third Party Advisory
- https://vuldb.com/cve/CVE-2022-4996 Third Party Advisory
- https://vuldb.com/submit/877513 Third Party Advisory
- https://vuldb.com/vuln/391391 Third Party Advisory
- https://vuldb.com/vuln/391391/cti Third Party Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Severity
7.8
High
Type
CWE-1077Floating Point Comparison with Incorrect Operator
Timeline
Published20 Aug 2026
Updated4 Nov 2026
First seen20 Aug 2026
Track software like this
Free during beta