GHSA-65FR-J4P9-VC33

Vulnerability from github – Published: 2026-09-08 21:27 – Updated: 2026-09-08 21:27
VLAI
Summary
mongodb: Reject "." and NUL bytes in database and collection names
Details

Impact

Passing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.

Patches

Fixed in PHP library 1.21.4 and 2.4.1.

Workarounds

Validate database and collection names prior to passing into APIs.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Packagist",
        "name": "mongodb/mongodb"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.21.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Packagist",
        "name": "mongodb/mongodb"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.0.0"
            },
            {
              "fixed": "2.4.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-81525"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-943"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-09-08T21:27:42Z",
    "nvd_published_at": "2026-08-27T20:18:50Z",
    "severity": "HIGH"
  },
  "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.",
  "id": "GHSA-65fr-j4p9-vc33",
  "modified": "2026-09-08T21:27:42Z",
  "published": "2026-09-08T21:27:42Z",
  "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"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    },
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "mongodb: Reject \".\" and NUL bytes in database and collection names"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…