medium6.8
CVE-2026-129928
The MongoDB PHP extension includes the full connection string it was given in the error it raises when that string cannot be parsed.
Impact
The MongoDB PHP extension includes the full connection string it was given in the error it raises when that string cannot be parsed. A party able to influence any part of the connection string, including a part that holds no secret, can cause the resulting message to carry credentials into the application's standard error output and log files. This may result in unintended disclosure of authentication material to anyone able to read that output.
An attacker can exploit this with local access to the system, with a regular user account, without any action by a user. If it succeeds: high risk of data being read.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| MongoDB | PHP Driver | from 1.16.0 before 1.21.14 from 1.22.0 before 2.1.14 from 2.2.0 before 2.5.8 |
| MongoDB Inc. | PHP Driver | from 1.16.0 before 1.21.14 from 1.22.0 before 2.1.14 from 2.2.0 before 2.5.8 |