Skip to content
Fencer Intel
medium 6.5

CVE-2018-20803 json

Infinite loop in aggregation expression

published 5y ago modified 4mo ago also EUVD-2018-13345

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 73%
public exploits
0
none known

Summary

A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries, which loop indefinitely in mathematics processing while retaining locks. This issue affects MongoDB Server v4.0 versions prior to 4.0.5; MongoDB Server v3.6 versions prior to 3.6.10 and MongoDB Server v3.4 versions prior to 3.4.19.

Patch / fix

  • MongoDB Inc. MongoDB Server 3.4.19, 3.6.10, 4.0.5

Is CVE-2018-20803 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-20803 updated cvss 6.5

mongodb: Infinite loop in aggregation expression

  • Red Hat OpenStack Platform 10 (Newton) mongodb, mongodb-server
    affected: no fix planned “Out of support scope”
  • Red Hat Software Collections rh-mongodb36-mongodb, rh-mongodb36-mongodb-test, rh-mongodb36-mongodb-server, rh-mongodb36-mongodb-syspaths, rh-mongodb36-mongodb-server-syspaths
    affected: no fix planned “Will not fix”
  • Red Hat Advanced Cluster Management for Kubernetes 2 mongodb Red Hat Update Infrastructure 3 for Cloud Providers mongodb
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.44% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 4.0 AV:N/AC:L/Au:S/C:N/I:N/A:P

Affected products

  • MongoDB Inc. MongoDB Server

Classification

Weakness
  • CWE-835 Loop with Unreachable Exit Condition
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.