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 VendorProductAffected 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.
Fix within
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
Exploitation
<1% chance of attack within 30 days
Type
CWE-1077Floating Point Comparison with Incorrect Operator
Timeline
Published20 Aug 2026
Updated4 Nov 2026
First seen20 Aug 2026
Sources
CVE-2022-4996 · NVD
CVE-2022-4996 · MITRE
Track software like this
Free during beta