Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
2.3
CVE-2026-120567: MongoDB EF Core provider allows crafted update to alter data
CVE-2026-120567 · published 18 days ago
Summary
When an application uses the MongoDB Entity Framework Core provider to run an ExecuteUpdate that also reads the current record, any string value that begins with the $ character is treated like a command instead of plain text. This means a malicious user who can supply such a value could change, delete, or copy fields in the database records. To protect yourself, ensure all input strings are validated or escaped before they are used in updates, and apply any security patches or updates offered for the provider.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| mongodb | entity framework core provider | <= 9.1.4 |
Original advisory text
EF Core provider: pipeline-form ExecuteUpdate evaluates a user string setter as a $-field reference
The MongoDB Entity Framework Core provider does not neutralize special elements in values passed to SetProperty when an ExecuteUpdate call also contains a setter that reads the entity being updated. In that case the update is sent as an aggregation pipeline, and a caller-supplied string beginning with $ is evaluated as an expression rather than stored as data. A party who can influence such a value may modify or remove fields in the records being updated, or copy other fields of the same record into them.
References
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
2.3
Low
Type
CWE-943Improper Neutralization of Special Elements in Data Query Logic
Timeline
Published3 Nov 2026
Updated7 Nov 2026
First seen3 Nov 2026
Track software like this
Free during beta