{"id":"CVE-2026-143881","state":"PUBLISHED","title":"Authentication identity confusion via NUL-byte injection in SASL PLAIN credentials","description":"The MongoDB PHP Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the driver can alter where the fields of that message begin and end. This may result in a receiving system reading a login name and secret that differ from the values the application supplied. Authenticating as a different account still requires that account's password. Only deployments that use SASL PLAIN authentication are affected.","publishedAt":"2026-12-03T11:07:28.828Z","updatedAt":"2026-12-03T11:07:28.828Z","severity":{"score":6.3,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","source":"mongodb"},"assigner":"mongodb","products":["MongoDB PHP Driver"],"affected":[{"vendor":"MongoDB","product":"PHP Driver","defaultStatus":"unaffected","versions":[{"version":"1.0.0","status":"affected","lessThan":"1.21.16","versionType":"semver"},{"version":"2.0.0","status":"affected","lessThan":"2.1.16","versionType":"semver"},{"version":"2.2.0","status":"affected","lessThan":"2.5.10","versionType":"semver"}]}],"references":["https://jira.mongodb.org/browse/PHPC-2818","https://jira.mongodb.org/browse/DRIVERS-3599"],"weaknesses":["CWE-158"],"ingestedAt":"2026-12-03T11:10:05.180Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143881.json","commit":"9ebaf1c800202d615e639fed2ab9702b16ee3d88","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143881","state":"PUBLISHED","datePublished":"2026-12-03T11:07:28.828Z","dateUpdated":"2026-12-03T11:07:28.828Z","assignerShortName":"mongodb","assignerOrgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateReserved":"2026-12-03T10:55:28.128Z"},"containers":{"cna":{"title":"Authentication identity confusion via NUL-byte injection in SASL PLAIN credentials","descriptions":[{"lang":"en","value":"The MongoDB PHP Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the driver can alter where the fields of that message begin and end. This may result in a receiving system reading a login name and secret that differ from the values the application supplied. Authenticating as a different account still requires that account's password. Only deployments that use SASL PLAIN authentication are affected."}],"affected":[{"vendor":"MongoDB","product":"PHP Driver","defaultStatus":"unaffected","versions":[{"version":"1.0.0","status":"affected","lessThan":"1.21.16","versionType":"semver"},{"version":"2.0.0","status":"affected","lessThan":"2.1.16","versionType":"semver"},{"version":"2.2.0","status":"affected","lessThan":"2.5.10","versionType":"semver"}]}],"references":[{"url":"https://jira.mongodb.org/browse/PHPC-2818"},{"url":"https://jira.mongodb.org/browse/DRIVERS-3599"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":6.3,"vectorString":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseSeverity":"LOW","baseScore":3.7,"vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-158","lang":"en","description":"CWE-158: Improper Neutralization of Null Byte or NUL Character","type":"CWE"}]}],"providerMetadata":{"shortName":"mongodb","orgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateUpdated":"2026-12-03T11:07:28.828Z"},"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.5"}}}}}