Credential exposure via unmasked connection string in driver parse-error messages for the PHP driver

State
Published
Severity
6.8 Medium
Published
Nov 19, 2026
Updated
Nov 19, 2026
Reserved
Nov 16, 2026

Read the record on cve.org

Description

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.

ProductVersions
PHP Driver MongoDB1.16.0 to before 1.21.14 Affected1.22.0 to before 2.1.14 Affected2.2.0 to before 2.5.8 Affected

Weaknesses

  • CWE-209 Generation of Error Message Containing Sensitive Information

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.