p PatchFirst

CVE-2026-135226

CVE-2026-135226 · Type confusion in DBPointer handling in BSON Ruby Extended JSON parsing

CVSS 8.7 · High · EPSS 0.5% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-bson"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

A type-confusion weakness in the Extended JSON parsing component of BSON for Ruby allows a party who can supply parser input to influence how a serialized document is framed. Content placed in one value may be read back as additional or replacement document fields. An unauthenticated party supplying input to an application that parses untrusted Extended JSON and stores the result may cause unintended modification of stored data.

Published
Updated

Stack: system

Affected products and versions

  • ruby driver

    Versions
    • ≥ 4.8.0, < 5.2.1: Affected (semver)

    Update to 5.2.1

  • ruby-bson Ubuntu 16.04 LTS

    Versions
    • 1.10.0-1
    • 1.10.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-bson Ubuntu 18.04 LTS

    Versions
    • 4.2.1-1
    • 4.2.1-1build1
    • 4.2.1-1build2
    • 4.3.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-bson Ubuntu 20.04 LTS

    Versions
    • 4.3.0-1
    • 4.7.0-1
    • 4.7.0-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-bson Ubuntu 22.04 LTS

    Versions
    • 4.10.0-2
    • 4.10.0-2build1
    • 4.10.0-2build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-bson Ubuntu 24.04 LTS

    Versions
    • 4.15.0-1build2
    • 4.15.0-1build3
    • 4.15.0-1build4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-bson Ubuntu 26.10

    Versions
    • 5.2.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-bson Ubuntu 26.04 LTS

    Versions
    • 4.15.0-1build5
    • 5.2.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →