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

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T23:45:07.775Z
- Modified: 2026-11-10T12:10:00.177Z
- Weaknesses: CWE-1077
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulDB

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

(As written by CVE List.)

## Affected

- mruby: 3.1.0

## Every score

- VulDB: CVSS: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: CVSS: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: CVSS: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: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C`

## References

- <https://huntr.com/bounties/5a5092df-1699-4497-a8b2-38318bce0c4e> (exploit)
- <https://vuldb.com/vuln/391391> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/391391/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2022-4996> (third-party-advisory)
- <https://vuldb.com/submit/877513> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-4996](https://www.cve.org/CVERecord?id=CVE-2022-4996), CVE Terms of Use, modified 2026-08-21
- NVD: [CVE-2022-4996](https://nvd.nist.gov/vuln/detail/CVE-2022-4996), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-4996 · Whole record: https://cve.day/CVE-2022-4996.json · Rebuilt by cve.day 2026-11-25T22:58:21.449Z
