cve.bz

CVE-2019-2386 mongodb mongodb: Insufficient Session Expiration

7.1 highExploit referenceEPSS 1.1%

High (7.1) in mongodb mongodb. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's session to persist and become conflated with new accounts, if those accounts reuse the names of deleted ones. This issue affects MongoDB Server v4.0 versions prior to 4.0.9; MongoDB Server v3.6 versions prior to 3.6.13 and MongoDB Server v3.4 versions prior to 3.4.22. Workaround: After deleting one or more users, restart any nodes which may have had active user authorization sessions. Refrain from creating user accounts with the same name as previously deleted accounts.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-613 Insufficient Session Expiration deprecated by MITRE see CWE-1463, CWE-1464
CWE-285 Improper Authorization
OWASP Top 10
A01:2025 Broken Access Control, A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-2386 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-2386?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-2386?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-2386 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MongoDB Inc. MongoDB Serverfrom 4.0 before 4.0.9
MongoDB Inc. MongoDB Serverfrom 3.6 before 3.6.13
MongoDB Inc. MongoDB Serverfrom 3.4 before 3.4.22

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu18.04:LTSmongodb1:3.6.3-0ubuntu1.3UBUNTU-CVE-2019-2386 USN-5052-1
Ubuntu20.04:LTSmongodb1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.2UBUNTU-CVE-2019-2386 USN-5052-1
UbuntuPro:14.04:LTS, Pro:16.04:LTSmongodbno fix listedUBUNTU-CVE-2019-2386

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The supported versions of Red Hat Satellite do not ship the affected MongoDB and are only consumed through Red Hat Software Collections (RHSCL) repository. However, the product is not affected by the vulnerability because the usage of MongoDB does not add or delete users on a recurring basis.

This issue does affect the versions of MongoDB as shipped with Red Hat Update Infrastructure for Cloud Providers, but the service is only accessible by users who already have access to the Red Hat Update Appliance (RHUA).

Red Hat's mitigation

This vulnerability can be mitigated by either of two administrative practices:

* Whenever a user is deleted, restart all nodes where that user may have an active session

* When a user is deleted, ensure than a new user with the same name will never be created

If your mongodb instance is deployed in a situation where users never need to be deleted, or one of the above mitigations can be applied, this vulnerability can not be exploited.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 10 (Newton)mongodbWill not fix
Red Hat Software Collectionsrh-mongodb34-mongodbWill not fix
Red Hat Software Collectionsrh-mongodb36-mongodbWill not fix
Red Hat Update Infrastructure 3 for Cloud ProvidersmongodbWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-2386.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-285 (16).

References

Check your stackJSON