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.
Published: 2026-08-19
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the udiv function of mruby 3.1.0's bigint.c module, where a floating point comparison uses an incorrect operator. Manipulating input to that function can cause the comparison to evaluate incorrectly, allowing an attacker to influence the result of logical checks performed by mruby scripts. The affected function is part of the big integer arithmetic library, and an incorrect comparison can lead to improper control flow or erroneous decisions, potentially enabling unauthorized actions if the comparison guards security‑critical logic.

Affected Systems

Affected vendor is mruby, specifically the mruby interpreter version 3.1.0. No patch version is listed in the provided data, but the exploit targets exactly this release and earlier distributions compiled from the same source. Other mruby releases are not mentioned as affected.

Risk and Exploitability

The CVSS score of 6.9 places the flaw in the medium severity range. EPSS is not available, and the flaw is not listed in the CISA KEV catalog yet, however a public exploit has been published, indicating the attack can be performed from a remote host. Attackers can trigger the vulnerability by sending crafted data to an mruby component, which will be processed by the faulty udiv routine. Without a patch, the risk remains active and may be employed in automated scanning or targeted attacks.

Generated by OpenCVE AI on August 20, 2026 at 07:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update mruby to the latest version that contains the fix for the udiv function.
  • Verify that any mruby‑based services are only reachable from trusted networks or are protected by firewall rules that limit remote connections.
  • If upgrading is not immediately possible, restrict usage of functions that invoke bigint division to trusted input or wrap calls with additional validation to ensure operands are sane before performing the division.

Generated by OpenCVE AI on August 20, 2026 at 07:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 00:00:00 +0000

Type Values Removed Values Added
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.
Title mruby bigint.c udiv floating point comparison with incorrect operator
First Time appeared Mruby
Mruby mruby
Weaknesses CWE-1077
CPEs cpe:2.3:a:mruby:mruby:*:*:*:*:*:*:*:*
Vendors & Products Mruby
Mruby mruby
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C'}

cvssV3_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'}

cvssV3_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'}

cvssV4_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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-08-19T23:45:07.775Z

Reserved: 2026-08-17T18:46:01.063Z

Link: CVE-2022-4996

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T00:16:50.980

Modified: 2026-08-20T00:16:50.980

Link: CVE-2022-4996

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T08:00:03Z

Weaknesses
  • CWE-1077

    Floating Point Comparison with Incorrect Operator