CVE-2026-93761

Denial of service via unbounded regex matching in Mongoid's in-memory query matcher

Published Sep 18, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
An inefficient regular expression complexity issue in the in-memory query evaluation component of the Mongoid library may allow an unauthenticated party to cause excessive processing within an embedding application process. Applications that place user-supplied text into a pattern-matching query condition on an embedded association may become unresponsive.

Analysis

AI-generated

Technical impact

The vulnerability is an inefficient regular expression handling in Mongoid's in‑memory query matcher, designated CWE-1333, allowing a malicious user to submit a pattern that triggers excessive CPU and memory consumption, resulting in denial of service to the application process.

Affected Systems

Affected systems include applications built with MongoDB Inc.'s Mongoid library. No specific product versions are listed in the advisory, so all supported releases of Mongoid that incorporate the in‑memory query matcher should be considered at risk.

Risk and Exploitability

With a CVSS score of 8.7 the vulnerability is high severity. The EPSS of < 1% indicates low current exploitation probability, and the vulnerability is not listed in CISA KEV. The attack vector is inferred to be remote via unauthenticated user‑supplied input to a query that contains a regex. An attacker can craft a pattern that causes the in‑memory matcher to perform extreme backtracking or allocation, causing the application to become unresponsive or crash. Because the flaw resides in the application layer, it can be mitigated by patching or by restricting regex complexity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Mongoid to the latest version that resolves the regular expression inefficiency.
  • Validate or restrict user‑supplied regex patterns before they are used in query conditions, for example by enforcing a maximum length or by prohibiting complex constructs.
  • If updating is not feasible immediately, isolate the application in a protected process or container and monitor for CPU/memory spikes, restarting the service automatically on high usage.

Generated by OpenCVE AI on September 19, 2026 at 16:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mongodb:mongoid:*:*:*:*:*:*:*:*
cpe:2.3:a:mongodb:mongoid:9.1.0:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongoid
Vendors & Products Mongodb
Mongodb mongoid
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An inefficient regular expression complexity issue in the in-memory query evaluation component of the Mongoid library may allow an unauthenticated party to cause excessive processing within an embedding application process. Applications that place user-supplied text into a pattern-matching query condition on an embedded association may become unresponsive.
Title Denial of service via unbounded regex matching in Mongoid's in-memory query matcher
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Sep 19, 2026, 2:11 PM
Reserved
Sep 18, 2026, 4:51 PM
Status
Analyzed
Published
Sep 18, 2026, 6:18 PM
Modified
Sep 24, 2026, 4:06 PM