← Voltar ao feed
medium

CERT-FR: MongoDB PHP Driver NUL-byte injection in SASL PLAIN authentication (PHPC-2818, CVE-2026-143881) allows security bypass

1 fonte(s) · 1 atualização(ões) · publicado 03/12/2026 21:00 · coletado há 1 dia

CERT-FR advisory CERTFR-2026-AVI-1670 (4 December 2026) reports a vulnerability in the MongoDB PHP Driver that allows a security policy bypass. Affected versions are 1.21.x before 1.21.16, 2.1.x before 2.1.16 and 2.5.x before 2.5.10. The advisory points to the MongoDB bulletin PHPC-2818 of 3 December 2026 and gives no CVE, CVSS score or exploitation status. Other sources tie the flaw to CVE-2026-143881, rated medium (CVSS 4.0, 6.3) or low (CVSS 3.1, 3.7). Only deployments that use SASL PLAIN authentication are affected. No exploitation in the wild is reported in the sources opened.

Entenda a falha

A vulnerabilidade

The MongoDB PHP Driver does not neutralize NUL characters in the user name and password it places in the SASL PLAIN authentication message (CWE-158), so the identity can be smuggled. It matters only when SASL PLAIN is used and an attacker can influence the login values the application passes to the driver. CERT-FR calls the result a security policy bypass. Other sources tie it to CVE-2026-143881, medium (CVSS 4.0, 6.3) or low (CVSS 3.1, 3.7). CERT-FR lists 1.21.x before 1.21.16, 2.1.x before 2.1.16 and 2.5.x before 2.5.10 as affected, while database summaries give wider ranges starting at 1.0.0, 2.0.0 and 2.2.0. Fixed in 1.21.16, 2.1.16 and 2.5.10.

Como funciona

An application passes a user name and password to the driver, which builds the SASL PLAIN payload sent to the server during authentication. The articles say the driver copies these values into the message without handling NUL characters. If an attacker controls those values and includes NUL characters, the content can alter the message the server reads. The ticket title calls this authentication identity smuggling. The articles do not detail how the server interprets the altered message.

Por que é vulnerável

The root cause is missing validation: the driver did not reject or neutralize NUL characters in credentials before building the SASL PLAIN message (CWE-158). The articles do not say why it went unnoticed. The fix updates credential validation to forbid NUL characters in the PLAIN user name and password, and the PECL changelog describes it as rejecting NUL characters in authentication credentials.

Onde está

MongoDB Jira ticket PHPC-2818; the fix is reported as PR #2285 in the mongo-php-driver repository (not opened by the sources). No file or function is named.

Como foi descoberta

The articles do not say who found the flaw or how. The MongoDB ticket PHPC-2818 was resolved on 2 December 2026 and published as a bulletin on 3 December. It was split from DRIVERS-3599 and is related to CDRIVER-6449, which suggests the weakness was tracked elsewhere in MongoDB drivers. The ticket gives no credit, and CERT-FR published its advisory on 4 December 2026. No exploitation in the wild is reported.

Explicação gerada por IA a partir da matéria e dos artigos, em 04/12/2026 13:26.

Detalhes técnicos

The MongoDB Jira ticket PHPC-2818 is titled "Authentication identity smuggling via NUL-byte injection in SASL PLAIN payload" (jira.mongodb.org). It is split from DRIVERS-3599 and related to CDRIVER-6449. Jira priority is Major P3. The driver does not neutralize NUL characters in the user name and password it places in the SASL PLAIN message (CWE-158). A party who can choose the login values an application passes to the driver can alter them (search result summarizing the CVE record). The ticket gives no CVE, CVSS or credit. A search summary of vulnerability databases gives CVE-2026-143881, with CVSS 4.0 at 6.3 and CVSS 3.1 at 3.7. The same summary gives the affected ranges as 1.0.0 to before 1.21.16, 2.0.0 to before 2.1.16 and 2.2.0 to before 2.5.10. The CVE record itself was not opened.

Detalhes da correção

The ticket was resolved on 2 December 2026. The fix updates credential validation to forbid NUL characters in PLAIN auth username and password (jira.mongodb.org). The PECL changelog lists "PHPC-2818: Reject NUL characters in authentication credentials" in 1.21.16, 2.1.16 and 2.5.10 (pecl.php.net, from search results). The fix is reported as PR #2285 in the mongo-php-driver repository. That PR page was not opened.

Remediação

Upgrade the MongoDB PHP Driver to 1.21.16, 2.1.16 or 2.5.10, depending on the release line. Check whether any application passes untrusted input as the user name or password with SASL PLAIN authentication.

Relatos divergentes

The CERT-FR advisory lists only 1.21.x, 2.1.x and 2.5.x. Database summaries give wider affected ranges, which include 1.0.0 to 1.21.15, 2.0.0 to 2.1.15 and 2.2.0 to 2.5.9. The MongoDB ticket leaves its "Affects Version" field empty.

Linha do tempo

  1. cert.cyber.gouv.fr ↗ · pub. 03/12/2026 21:00 · coletado 04/12 13:01 primeiro registro

    CERT-FR: MongoDB PHP Driver NUL-byte injection in SASL PLAIN authentication (PHPC-2818, CVE-2026-143881) allows security bypass

    ler a análise desta fonte

    CERT-FR advisory CERTFR-2026-AVI-1670 (4 December 2026) reports a vulnerability in the MongoDB PHP Driver that allows a security policy bypass. Affected versions are 1.21.x before 1.21.16, 2.1.x before 2.1.16 and 2.5.x before 2.5.10. The advisory points to the MongoDB bulletin PHPC-2818 of 3 December 2026 and gives no CVE, CVSS score or exploitation status. Other sources tie the flaw to CVE-2026-143881, rated medium (CVSS 4.0, 6.3) or low (CVSS 3.1, 3.7). Only deployments that use SASL PLAIN authentication are affected. No exploitation in the wild is reported in the sources opened.

    Technical Details

    The MongoDB Jira ticket PHPC-2818 is titled "Authentication identity smuggling via NUL-byte injection in SASL PLAIN payload" (jira.mongodb.org). It is split from DRIVERS-3599 and related to CDRIVER-6449. Jira priority is Major P3. The driver does not neutralize NUL characters in the user name and password it places in the SASL PLAIN message (CWE-158). A party who can choose the login values an application passes to the driver can alter them (search result summarizing the CVE record). The ticket gives no CVE, CVSS or credit. A search summary of vulnerability databases gives CVE-2026-143881, with CVSS 4.0 at 6.3 and CVSS 3.1 at 3.7. The same summary gives the affected ranges as 1.0.0 to before 1.21.16, 2.0.0 to before 2.1.16 and 2.2.0 to before 2.5.10. The CVE record itself was not opened.

    Fix Details

    The ticket was resolved on 2 December 2026. The fix updates credential validation to forbid NUL characters in PLAIN auth username and password (jira.mongodb.org). The PECL changelog lists "PHPC-2818: Reject NUL characters in authentication credentials" in 1.21.16, 2.1.16 and 2.5.10 (pecl.php.net, from search results). The fix is reported as PR #2285 in the mongo-php-driver repository. That PR page was not opened.

    Remediation

    Upgrade the MongoDB PHP Driver to 1.21.16, 2.1.16 or 2.5.10, depending on the release line. Check whether any application passes untrusted input as the user name or password with SASL PLAIN authentication.

    Conflicting Reports

    The CERT-FR advisory lists only 1.21.x, 2.1.x and 2.5.x. Database summaries give wider affected ranges, which include 1.0.0 to 1.21.15, 2.0.0 to 2.1.15 and 2.2.0 to 2.5.9. The MongoDB ticket leaves its "Affects Version" field empty.