Skip to main content

Laravel MongoDB CVE-2026-96744

| EUVDEUVD-2026-86258 HIGH
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-09-24 mongodb GHSA-vm72-96wq-2ppv
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Laravel app using MongoDB cache lock
  2. Delivery
    Influence lock owner value with $-prefixed expression
  3. Exploit
    Owner evaluated as aggregation expression not literal
  4. Execution
    Hijack or prematurely expire another process's lock
  5. Impact
    Trigger duplicated or conflicting operations

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Requires the Laravel application to use the MongoDB integration's cache lock (MongoLock) backend AND to derive the lock 'owner' value from input an authenticated user can influence during lock acquire or restoreLock calls. The attacker must be an authenticated user (PR:L) supplying a MongoDB-operator-style owner string (e.g. '$owner', '$literal', '$$ROOT') that is evaluated as an aggregation expression. Limiting factors: only affects deployments using the MongoDB cache lock feature on versions before 5.11.0; impact is confined to lock takeover / premature expiry (integrity and limited availability), with no confidentiality exposure and no code execution; exploitability hinges on the application actually passing user-influenced data as the owner, which is not the standard usage pattern.

Impact

This is a genuine but moderate integrity-focused flaw, not a code-execution or data-exposure crisis. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L) correctly captures the impact as integrity-only: an authenticated actor who can influence the lock 'owner' value abuses MongoDB aggregation-expression evaluation (CWE-943) to hijack or prematurely expire another process's lock, causing duplicated or conflicting operations. There is NO confidentiality impact (VC:N), so the 'Information Disclosure' tag conflicts with both the vendor vector and the description - the real damage is data/state integrity (VI:H) plus limited availability (VA:L). No EPSS score, no CISA KEV listing, and no public exploit are provided; the PR ships regression tests demonstrating the malicious payloads ($owner, $literal, $$ROOT) but that is proof of the fix, not a weaponized exploit. Key limiting factor: exploitation requires the application to route the MongoDB cache lock's owner value from attacker-influenceable input, which is not the default coding pattern, so real-world reachability depends heavily on application design. Net: a real correctness/integrity bug worth patching, but low probability of widespread opportunistic exploitation.

Exploit ScenarioDerived

An authenticated user of a Laravel app that uses the MongoDB cache-lock backend supplies a crafted lock owner value such as '$owner' or '$$ROOT' where the application forwards user input into lock acquisition/restoration. Because the owner is evaluated as an aggregation expression rather than a literal, the attacker's lock matches or overrides the legitimate holder, letting them take over or prematurely expire another process's lock and force duplicated or conflicting operations. No public exploit code is identified, though the fix commit includes tests illustrating the exact malicious owner strings.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 24, 2026

Cache lock takeover in the MongoDB integration for Laravel (mongodb/laravel-mongodb) before 5.11.0 lets an authenticated user who can influence the lock 'owner' value hijack or prematurely expire a lock held by another process, producing duplicated or conflicting operations. The root cause is a NoSQL/aggregation-expression injection (CWE-943) in the MongoLock implementation, where a dollar-prefixed owner string such as '$owner', '$literal' or '$$ROOT' is evaluated by MongoDB as an aggregation expression instead of being treated as a literal value. CVSS 7.1 (VI:H, VA:L, no confidentiality or scope impact) places this as a genuine but moderate integrity-focused flaw: it only affects deployments using the MongoDB cache-lock backend on pre-5.11.0 versions, exploitability depends on the application deriving lock owner values from user-influenced input (not the standard usage pattern), and no public exploit code has been identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade mongodb/laravel-mongodb to 5.11.0, which is the release referenced alongside fix PR https://github.com/mongodb/laravel-mongodb/pull/3579 and https://github.com/mongodb/laravel-mongodb/releases/tag/5.11.0; the change wraps the owner value in ['$literal' => $this->owner] in both the $eq lock filter and the conditional 'then' branch so it can no longer be evaluated as an aggregation expression. If immediate upgrade is not possible, the highest-value compensating control is architectural: never derive the lock owner from user-influenced input - generate it server-side as an opaque random value (for example a UUID or a hash of process/request identity) so a dollar-prefixed string can never reach MongoLock, though this requires auditing every call site and breaks any code that relies on predictable owner values. As a second layer, validate and reject owner values beginning with '$' before they reach the cache lock API (side effect: legitimate owners starting with a dollar sign, if any exist in the application, will fail and must be regenerated). Restricting which authenticated users or code paths may influence lock names/owners reduces reachability at the cost of functionality, and monitoring for duplicated or conflicting jobs around locks can surface abuse but does not prevent it; note that no vendor-released patch exists for versions below 5.11.0 and no public exploit code has been identified at time of analysis.

Affected VersionsENISA

Laravel MongoDB (PHP) 4.3.0 <5.11.0

Affected Packages

euvd laravel_mongodb_php fix: 5.11.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-943 (improper neutralization of special elements in data query logic) applies here to a MongoDB aggregation pipeline rather than a classic SQL query string. The laravel-mongodb package's MongoLock class builds a findAndModify/update operation whose filter contains ['$eq' => ['$owner', $this->owner]] and whose $cond 'then' branch returns $this->owner directly. Because aggregation expressions in MongoDB interpret field paths and variables beginning with '$' (for example '$owner', '$literal', '$$ROOT'), a caller-controlled owner value that starts with a dollar sign is no longer a literal string but an expression that the server evaluates against the document. That allows the match condition to succeed against a lock document owned by a different process, so the attacker's acquire() can take over an existing lock or the release/restore path can force expiry. The upstream fix wraps the value in ['$literal' => $this->owner] in both the $eq comparison and the conditional 'then' branch, forcing literal interpretation. Per the CPE cpe:2.3:a:mongodb:laravel_mongodb_(php):*:*:*:*:*:*:*:* the affected component is the Laravel-facing PHP driver integration package, not the MongoDB server itself, and the type of exploitation is limited to lock-state manipulation rather than arbitrary query execution or code execution.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Authenticated user (PR:L) over the network exploits aggregation-expression injection with no confidentiality impact; lock takeover yields high integrity damage and low availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 24, 2026 - 17:18 EUVD
CVE Published
Sep 24, 2026 - 15:51 cve.org
HIGH 7.1

DescriptionCVE.org

Improper neutralization of special elements in data query logic in the cache lock implementation of the MongoDB integration for Laravel can cause a caller-supplied lock owner value to be evaluated as an aggregation expression rather than as a literal value. An authenticated user who can influence the owner value an application uses when acquiring or restoring a lock may take over or prematurely expire a lock held by another process, which can lead to duplicated or conflicting operations.

Executive ViewAI

Why It Matters

A flaw in the MongoDB cache-lock driver for Laravel (mongodb/laravel-mongodb, releases before 5.11.0) can let a user seize or prematurely release a lock that another process is holding, which in practice means duplicated or conflicting business operations rather than a data breach. Exposure is limited to applications that run Laravel on MongoDB with the MongoDB cache-lock backend and that build lock ownership values from user-influenced input - not the library's standard usage pattern - but where those conditions hold, workflows such as order processing, billing, or job scheduling can silently double up. Leadership should care because the failure mode is quiet data integrity drift in transactional processes, and no vendor-released patch has been identified at time of analysis.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: stop deriving lock 'owner' values from user-influenced input and use server-generated identifiers instead; reject or escape dollar-prefixed owner strings before they reach MongoDB; switch affected workloads to a non-MongoDB cache-lock store (Redis or database); restrict which users and code paths can trigger lock acquisition; monitor logs and downstream transactional records for duplicated or conflicting operations indicative of lock takeover.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
Official MongoDB-Laravel library, but MongoDB cache-lock backend is a niche feature
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy