Improper neutralization of query expressions in incrementEach() and decrementEach() in Laravel MongoDB
NIST has not reviewed this entry yet, so scores and affected versions may be missing or may change.
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.
Improper Neutralization of Special Elements in Data Query Logic CWE-943
The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| MongoDB PHP Driver | Software | from 4.8.0, before 5.12.2 | 5.12.2 |
The 8.3 severity score (high) from mongodb.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Setup needed on the target | Present | The target has to be set up in a particular way. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | Low | The attacker can change some data, but not everything. |
| Service disrupted | None | The service keeps running. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
NIST lists 1 sources for this flaw, none tagged as a vendor patch.