p PatchFirst

CVE-2026-135225

CVE-2026-135225 · Sensitive information in error messages from the Ruby Driver connection string parser

CVSS 5.7 · Medium · 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-mongo"'

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.

An information exposure weakness in the connection string handling of the MongoDB Ruby Driver can place credential material from the application's own configuration into the text of a parsing error, where an existing redaction control does not apply. A party able to read the application's error output or logs may thereby obtain database credential text together with deployment coordinates. The condition arises entirely within the embedding application process and requires no database authentication.

Published
Updated

Stack: system

Affected products and versions

  • ruby driver

    Versions
    • ≥ 2.0.3, < 2.26.2: Affected (semver)

    Update to 2.26.2

  • ruby-mongo Ubuntu 16.04 LTS

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

    No fix published

  • ruby-mongo Ubuntu 18.04 LTS

    Versions
    • 2.4.1-1
    • 2.4.1-1ubuntu1
    • 2.5.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-mongo Ubuntu 20.04 LTS

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

    No fix published

  • ruby-mongo Ubuntu 22.04 LTS

    Versions
    • 2.5.1-1ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-mongo Ubuntu 24.04 LTS

    Versions
    • 2.5.1-1ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-mongo Ubuntu 26.10

    Versions
    • 2.23.0-1
    • 2.24.0-1
    • 2.24.1-1
    • 2.25.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-mongo Ubuntu 26.04 LTS

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

    No fix published

Original sources

Check your server →