IM
IronMonkey Threat Research

CVE-2021-32040 HIGH

Published: 2022-04-12 | Last Modified: 2024-11-21 | Status: Modified

Description

It may be possible to have an extremely long aggregation pipeline in conjunction with a specific stage/operator and cause a stack overflow due to the size of the stack frames used by that stage. If an attacker could cause such an aggregation to occur, they could maliciously crash MongoDB in a DoS attack. This vulnerability affects MongoDB Server v4.4 versions prior to and including 4.4.28, MongoDB Server v5.0 versions prior to 5.0.4 and MongoDB Server v4.2 versions prior to 4.2.16. Workaround: >= v4.2.16 users and all v4.4 users can add the --setParameter internalPipelineLengthLimit=50 instead of the default 1000 to mongod at startup to prevent a crash.

Additional Descriptions (1)

Puede ser posible tener una tubería de agregación extremadamente larga en conjunto con una etapa/operador específico y causar un desbordamiento de pila debido al tamaño de los marcos de pila usados por esa etapa. Si un atacante pudiera causar tal agregación, podría colapsar MongoDB de forma maliciosa en un ataque DoS. Esta vulnerabilidad afecta a MongoDB versiones anteriores a 5.0.4, 4.4.11 y 4.2.16

CVSS Metrics

Base Score: 7.5 (HIGH)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack VectorNETWORK
Attack ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
ScopeUNCHANGED
Confidentiality ImpactNONE
Integrity ImpactNONE
Availability ImpactHIGH

Source: [email protected]

Type: Primary

Exploitability Score: 3.9

Impact Score: 3.6

Base Score: 5.0 (MEDIUM)

AV:N/AC:L/Au:N/C:N/I:N/A:P

Access VectorNETWORK
Access ComplexityLOW
AuthenticationNONE
Confidentiality ImpactNONE
Integrity ImpactNONE
Availability ImpactPARTIAL

Source: [email protected]

Type: Primary

Exploitability Score: 10.0

Impact Score: 2.9

Weaknesses

Source Type Description
[email protected] Secondary
en CWE-121
[email protected] Primary
en CWE-787

Affected Products

Vendor Product Version Update Type
mongodb mongodb * <built-in method update of dict object at 0x717bc6234880> Application
mongodb mongodb * <built-in method update of dict object at 0x717bdc8be8c0> Application
mongodb mongodb * <built-in method update of dict object at 0x717bdbb14380> Application

Affected Configurations

Operator: OR

Vulnerable CPE
Yes cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*

References

Notification
Message here