{"id":"CVE-2022-4996","aliases":["AZL-97542","EUVD-2022-56020","GHSA-rm4w-cfgf-329j","UBUNTU-CVE-2022-4996"],"status":"published","title":"mruby bigint.c udiv floating point comparison with incorrect operator","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.","severity":{"version":"4.0","score":6.9,"vector":"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00637,"percentile":0.50822,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1077"],"published":"2026-08-19T23:45:07Z","modified":"2026-11-05T05:40:51Z","affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"nghttp2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.61.0-3"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0+20150817+gita1731254-1","1.1.0+20150906+git1cbbb7e1-1","1.2.0+20160315+git4f20d58a-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.0-1","1.3.0+20170925+git38185028-1","1.3.0+20171029+git77edafb0-1","1.4.0-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2-3","3.0.0-1","3.0.0-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.0-1","3.2.0-2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-2","3.4.0-3","4.0.0-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.0-1","3.4.0-2"]}],"references":[{"url":"https://vuldb.com/vuln/391391","tags":["vdb-entry","technical-description","report"]},{"url":"https://vuldb.com/vuln/391391/cti","tags":["signature","permissions-required","report"]},{"url":"https://vuldb.com/cve/CVE-2022-4996","tags":["third-party-advisory","report"]},{"url":"https://vuldb.com/submit/877513","tags":["third-party-advisory","report"]},{"url":"https://huntr.com/bounties/5a5092df-1699-4497-a8b2-38318bce0c4e","tags":["exploit","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4996","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rm4w-cfgf-329j"},{"url":"https://ubuntu.com/security/CVE-2022-4996","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-4996","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-4996","title":"mruby bigint.c udiv floating point comparison with incorrect operator","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.","status":"published","published":"2026-08-19T23:45:07.775Z","modified":"2026-08-21T16:46:40.492Z","cvss":[{"version":"4.0","score":6.9,"vector":"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","level":"medium","assessor":"cna"},{"version":"3.1","score":5.3,"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","level":"medium","assessor":"cna"},{"version":"3.0","score":5.3,"vector":"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","level":"medium","assessor":"cna"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C","assessor":"cna"}],"cwes":["CWE-1077"],"updated_at":"2026-11-02T14:34:37.932195Z"}],"euvd":[{"id":"EUVD-2022-56020","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.","status":"published","published":"2026-08-19T23:45:07Z","modified":"2026-08-21T16:46:40Z","cvss":[{"version":"4.0","score":6.9,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T18:01:37.198267Z"}],"ghsa":[{"id":"GHSA-rm4w-cfgf-329j","title":"A flaw has been found in mruby 3.1.0. Affected is the function udiv of the file bigint.c....","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.","status":"published","published":"2026-08-20T00:35:10Z","modified":"2026-08-20T00:35:17Z","cvss":[{"version":"4.0","score":5.5,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-1077"],"updated_at":"2026-11-02T15:10:45.95343Z"}],"nvd":[{"id":"CVE-2022-4996","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.","status":"published","published":"2026-08-20T00:16:50.98Z","modified":"2026-08-21T17:16:26.43Z","cvss":[{"version":"4.0","score":5.5,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"secondary"}],"cwes":["CWE-1077"],"updated_at":"2026-11-02T14:07:43.752276Z"}],"osv":[{"id":"UBUNTU-CVE-2022-4996","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.","status":"published","published":"2026-08-20T00:16:00Z","modified":"2026-10-17T12:56:23.030253587Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"},{"version":"4.0","score":5.5,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T16:54:09.234424Z"},{"id":"AZL-97542","title":"CVE-2022-4996 affecting package nghttp2 1.61.0-3","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.","status":"published","published":"2026-08-20T00:16:50Z","modified":"2026-11-05T05:40:51Z","updated_at":"2026-11-05T16:41:26.280152Z"}]}}
