CVE catalog

CVE-2024-6381

mongo-c-driver vulnerabilities

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
0.39% · Oct 25, 2026

The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the function will try to free memory at a negative offset. This may result in memory corruption. This issue affected libbson versions prior to 1.26.2

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianmongo-c-driversid2.5.7-1fixed
Debianmongo-c-driverforky2.5.6-1fixed
Debianmongo-c-drivertrixie1.30.4-1+deb13u3fixed
Debianmongo-c-driverbookworm1.23.1-1+deb12u3fixed
Debianlibbson-xs-perlbookworm0.8.4-2+deb12u1fixed
Ubuntumongo-c-drivernoble1.26.0-1.1ubuntu2+esm1fixed
Ubuntulibbson-1.0-0t64noble1.26.0-1.1ubuntu2+esm1fixed
Ubuntulibbson-devnoble1.26.0-1.1ubuntu2+esm1fixed
Ubuntulibbson-docnoble1.26.0-1.1ubuntu2+esm1fixed
Ubuntulibmongoc-1.0-0t64noble1.26.0-1.1ubuntu2+esm1fixed
Ubuntulibmongoc-devnoble1.26.0-1.1ubuntu2+esm1fixed
Ubuntulibmongoc-docnoble1.26.0-1.1ubuntu2+esm1fixed
Ubuntumongo-c-driverpro1.24.3-1vulnerable
Ubuntumongo-c-driverpro1.24.4-1vulnerable
Ubuntumongo-c-driverpro1.25.1-1vulnerable
Ubuntumongo-c-driverpro1.25.2-1vulnerable
Ubuntumongo-c-driverpro1.25.4-1vulnerable
Ubuntumongo-c-driverpro1.26.0-1vulnerable
Ubuntumongo-c-driverpro1.26.0-1.1ubuntu1vulnerable
Ubuntumongo-c-driverpro1.26.0-1.1ubuntu2vulnerable
Ubuntumongo-c-driverpro1.26.0-1.1ubuntu2+esm1fixed
Ubuntulibbsonpro1.8.0-1vulnerable
Ubuntulibbsonpro1.8.1-1vulnerable
Ubuntulibbsonpro1.9.0-1vulnerable
Ubuntulibbsonpro1.9.2-1vulnerable
Ubuntulibbsonpro1.9.2-1ubuntu0.1~esm2vulnerable
Ubuntumongo-c-driverpro1.24.3-1vulnerable
Ubuntumongo-c-driverpro1.24.4-1vulnerable
Ubuntumongo-c-driverpro1.25.1-1vulnerable
Ubuntumongo-c-driverpro1.25.2-1vulnerable
Ubuntumongo-c-driverpro1.25.4-1vulnerable
Ubuntumongo-c-driverpro1.26.0-1vulnerable
Ubuntumongo-c-driverpro1.26.0-1.1ubuntu1vulnerable
Ubuntumongo-c-driverpro1.26.0-1.1ubuntu2vulnerable
Ubuntumongo-c-driverpro1.26.0-1.1ubuntu2+esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianmongo-c-driversourcesid1.26.2-1not yet assignedNot reportedNot reported
Debianmongo-c-driversourceforky1.26.2-1not yet assignedNot reportedNot reported
Debianmongo-c-driversourcetrixie1.26.2-1not yet assignedNot reportedNot reported
Debianmongo-c-driversourcebookworm1.23.1-1+deb12u1not yet assignedNot reportedNot reported
Debianlibbson-xs-perlsourcebookworm0.8.4-2+deb12u1not yet assignedNot reportedNot reported
Ubuntumongo-c-driverdebnoble1.26.0-1.1ubuntu2+esm1Not reportedNot reportedNot reported
Ubuntulibbson-1.0-0t64debnoble1.26.0-1.1ubuntu2+esm1Not reportedNot reportedNot reported
Ubuntulibbson-devdebnoble1.26.0-1.1ubuntu2+esm1Not reportedNot reportedNot reported
Ubuntulibbson-docdebnoble1.26.0-1.1ubuntu2+esm1Not reportedNot reportedNot reported
Ubuntulibmongoc-1.0-0t64debnoble1.26.0-1.1ubuntu2+esm1Not reportedNot reportedNot reported
Ubuntulibmongoc-devdebnoble1.26.0-1.1ubuntu2+esm1Not reportedNot reportedNot reported
Ubuntulibmongoc-docdebnoble1.26.0-1.1ubuntu2+esm1Not reportedNot reportedNot reported
Ubuntumongo-c-driverdebpro1.26.0-1.1ubuntu2+esm1Not reportedUSN-7613-1Not reported
Ubuntumongo-c-driverdebpro1.26.0-1.1ubuntu2+esm1Not reportedUBUNTU-CVE-2024-6381Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

    • 1.23.1-1+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

    • 1.23.1-1+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · all · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

    • 1.23.1-1+deb12u3 · all · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

  • Details (2)
    • 0.8.4-2+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 0.8.4-2+deb12u1

      usn · libbson-xs-perl · debian · bookworm; usn · libbson-xs-perl · debian · 12

    • 0.8.4-2+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 0.8.4-2+deb12u1

      usn · libbson-xs-perl · debian · bookworm; usn · libbson-xs-perl · debian · 12

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

    • 1.23.1-1+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

    • 1.23.1-1+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · all · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

    • 1.23.1-1+deb12u3 · all · bookworm

      Fixed · Fixed: 1.23.1-1+deb12u1

      usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12

[Debian 13 (Trixie)]

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.30.4-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

    • 1.30.4-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.30.4-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

    • 1.30.4-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.30.4-1+deb13u2 · all · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

    • 1.30.4-1+deb13u2 · all · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.30.4-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

    • 1.30.4-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.30.4-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

    • 1.30.4-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

  • Source package: [mongo-c-driver]

    Details (2)
    • 1.30.4-1+deb13u2 · all · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

    • 1.30.4-1+deb13u2 · all · trixie

      Fixed · Fixed: 1.26.2-1

      usn · mongo-c-driver · debian · 13

Observed:

References