Skip to content
Heist/ feed
Back to feed
Critical

BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities

Type: advisorySources: OSV

BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities. Those include CVE-2017-14227, CVE-2018-16790, CVE-2023-0437, CVE-2024-6381, CVE-2024-6383, and CVE-2025-0755. BSON-XS was the official Perl XS implementation of MongoDB's BSON serialization, but this distribution has reached its end of life as of August 13, 2020 and is no longer supported.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-40906
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 07:17 UTC · Revision 1

Source evidence

BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities

core-osv · Original source

Published 16 May 2025, 15:15 UTC

BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities. Those include CVE-2017-14227, CVE-2018-16790, CVE-2023-0437, CVE-2024-6381, CVE-2024-6383, and CVE-2025-0755. BSON-XS was the official Perl XS implementation of MongoDB's BSON serialization, but this distribution has reached its end of life as of August 13, 2020 and is no longer supported.

osv:CVE-2025-40906
Complete source record
{
  "id": "46c6804104dffdf0428d124208752c1d118577e3db8ffcef077187a99b8dc056",
  "url": "https://osv.dev/vulnerability/CVE-2025-40906",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities",
    "summary": "BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities. Those include CVE-2017-14227, CVE-2018-16790, CVE-2023-0437, CVE-2024-6381, CVE-2024-6383, and CVE-2025-0755. BSON-XS was the official Perl XS implementation of MongoDB's BSON serialization, but this distribution has reached its end of life as of August 13, 2020 and is no longer supported.",
    "evidence": "osv:CVE-2025-40906",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-40906",
      "aliases": [
        "CVE-2025-40906"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mongodb-labs/mongo-perl-bson-xs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "8a7db1d4d97d424197b1b7308c5face433e9af00"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.8.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "release-v0.8.4",
            "release-v0.8.3",
            "release-v0.8.2",
            "release-v0.8.1",
            "release-v0.8.0",
            "release-v0.6.0",
            "release-v0.4.6",
            "release-v0.4.5",
            "release-v0.4.4",
            "release-v0.4.3",
            "release-v0.4.2",
            "release-v0.4.1",
            "release-v0.4.0",
            "release-v0.2.2",
            "release-v0.2.1",
            "release-v0.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40906.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.968385962Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40906.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40906",
        "https://www.mongodb.com/community/forums/t/mongodb-perl-driver-end-of-life/7890",
        "https://github.com/mongodb-labs/mongo-perl-bson-xs",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1104",
          "CWE-122",
          "CWE-1395",
          "CWE-190"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40906.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40906",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493331,
  "published_at": "2025-05-16T15:15:49.81+00:00"
}