{"id":"GHSA-65fr-j4p9-vc33","summary":"mongodb: Reject \".\" and NUL bytes in database and collection names","details":"### Impact\nPassing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.\n\n### Patches\nFixed in PHP library 1.21.4 and 2.4.1.\n\n### Workarounds\nValidate database and collection names prior to passing into APIs.","aliases":["CVE-2026-81525"],"modified":"2026-09-08T21:55:54.785552Z","published":"2026-09-08T21:27:42Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-09-08T21:27:42Z","nvd_published_at":"2026-08-27T20:18:50Z","cwe_ids":["CWE-943"]},"references":[{"type":"WEB","url":"https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-65fr-j4p9-vc33"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81525"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-library/pull/1967"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-library/pull/1968"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-library/commit/3a462213bb4fd46efa58a1937b06b1b0553b67a7"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-library/commit/6f305a3b21740080255a3093b12458274c7cc8ca"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.7"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1"},{"type":"PACKAGE","url":"https://github.com/mongodb/mongo-php-library"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4"},{"type":"WEB","url":"https://github.com/mongodb/mongo-php-library/releases/tag/2.4.1"},{"type":"WEB","url":"https://jira.mongodb.org/browse/PHPLIB-1927"}],"affected":[{"package":{"name":"mongodb/mongodb","ecosystem":"Packagist","purl":"pkg:composer/mongodb/mongodb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.4"}]}],"versions":["0.1.0","0.2.0","1.0.0","1.0.0-alpha1","1.0.0-beta1","1.0.0-beta2","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.1.0","1.1.0-alpha1","1.1.1","1.1.2","1.10.0","1.10.1","1.11.0","1.12.0","1.13.0","1.13.0-beta1","1.13.1","1.15.0","1.16.0","1.16.1","1.17.0","1.17.1","1.18.0","1.19.0","1.19.1","1.2.0","1.2.0-alpha1","1.20.0","1.21.0","1.21.1","1.21.2","1.21.3","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.4.3","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.7.0","1.7.0-beta1","1.7.0-beta2","1.7.0-rc1","1.7.1","1.7.2","1.8.0","1.8.0-RC1","1.9.0","1.9.0-alpha1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-65fr-j4p9-vc33/GHSA-65fr-j4p9-vc33.json"}},{"package":{"name":"mongodb/mongodb","ecosystem":"Packagist","purl":"pkg:composer/mongodb/mongodb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.1"}]}],"versions":["2.0.0","2.1.0","2.1.1","2.1.2","2.2.0","2.3.0","2.4.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-65fr-j4p9-vc33/GHSA-65fr-j4p9-vc33.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}]}