CVE-2022-4996 mruby bigint.c udiv floating point comparison with incorrect operator

Medium 6.9 Published Updated

A flaw in mruby's bigint.c allows remote attackers to trigger incorrect floating point comparisons, potentially leading to undefined behavior.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-4996?

CVE-2022-4996 is a medium-severity vulnerability in mruby, published on 19 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-1077

Which versions are affected by CVE-2022-4996?

How do I fix CVE-2022-4996?

No fix has been published for CVE-2022-4996 yet. Limit exposure of the affected software until one is available.

Is CVE-2022-4996 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-4996 exists.

Sources

Also known as AZL-97542, GHSA-rm4w-cfgf-329j, UBUNTU-CVE-2022-4996.

Is CVE-2022-4996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free