Vulnerability · Published Aug 19, 2026 · Assigned by VulDB
CVE-2022-4996mruby bigint.c udiv floating point comparison with incorrect operator
Medium 5.3
In plain English
A medium-severity security flaw in mruby. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities).
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 49.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-4996 |
| Ubuntu:24.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-4996 |
| Ubuntu:26.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-4996 |
| Ubuntu:26.10 | mruby | no fix listed | UBUNTU-CVE-2022-4996 |
Affected products (as reported)
Weakness: CWE-1077 · Vector: 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
References
- VDB-391391 | mruby bigint.c udiv floating point comparison with incorrect operator vdb-entry, technical-description
- VDB-391391 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- CVE-2022-4996 | CVE Analysis and Report third-party-advisory
- Submit #877513 | mruby 3.1.0 Floating Point Exception third-party-advisory
- https://huntr.com/bounties/5a5092df-1699-4497-a8b2-38318bce0c4e exploit