Insufficient Session Expiration Affecting mongodb package, versions *


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.18% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insufficient Session Expiration vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-MONGODB-5256723
  • published26 Mar 2023
  • disclosed6 Aug 2019

Introduced: 6 Aug 2019

CVE-2019-2386  (opens in a new tab)
CWE-613  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:7 mongodb.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mongodb package and not the mongodb package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

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.

CVSS Scores

version 3.1