Read the docs

Improper neutralization in Laravel MongoDB incrementEach() and decrementEach()

Priority MEDIUM 43CWE-943Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
High · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

CVE-2026-135147 affects the MongoDB PHP Driver from 4.8.0 before 5.12.2, as used by the Laravel MongoDB integration. The query builder does not neutralize query expressions in incrementEach() and decrementEach(), so the database reads values supplied to these bulk counter-update helpers as query expressions instead of plain text. An application that passes externally supplied data into these helpers may write unintended values into stored documents and disclose other data on the same document, and no credentials are required of the party supplying the value. CVSS 4.0 base score 8.3 (HIGH); CWE-943 Improper Neutralization of Special Elements in Data Query Logic.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

A data-query neutralization weakness in the query builder of the MongoDB integration for a PHP web framework allows values supplied to certain bulk counter-update helpers to be interpreted by the database as query expressions rather than stored as plain text. An application that passes externally supplied data into these helpers may write unintended values into stored documents and may result in unintended disclosure of other data held on the same document. No credentials are required of the party supplying the value.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00585 41st percentileScored 2026-11-30
Fix Fixed PHP Driver (MongoDB): 5.12.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBPHP Driver4.8.0 to before 5.12.25.12.2Patch availableCNA
  • PHP Driver VendorMongoDB Affected 4.8.0 to before 5.12.2 Fixed in 5.12.2 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:*:*:*——MongoDB
  • cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:*:*:* Versions — — ·MongoDB

Remediation

Upgrade the MongoDB PHP Driver to version 5.12.2 or later. Until the upgrade is applied, do not pass externally supplied data into incrementEach() or decrementEach().

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA PHP Driver (MongoDB) Fixed in 5.12.2

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    MongoDB PHP Driver 5.12.2

    5 records Highest priority Priority MEDIUM 1 MEDIUM, 4 LOW

    Other records, highest priority first

    • TI-2026-98321 Missing authorization in Laravel MongoDB skips beforeQuery callbacksPriority LOW 37
    • TI-2026-98322 Incorrect authorization in Laravel MongoDB morph-map handlingPriority LOW 36
    • TI-2026-98324 Mass assignment guard bypass in Laravel MongoDB Eloquent integrationPriority LOW 32

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-135147
  2. 2026-11-25 CISA SSVC decision points changed

References

  • TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
  • TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
  • TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
  • TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
  • TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
See all 449 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences