p PatchFirst

CVE-2026-129924

CVE-2026-129924 · Credential exposure via unmasked connection string in driver parse-error messages for the Ruby driver

CVSS 6.8 · Medium · EPSS 0.1% · 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.

The MongoDB Ruby driver can include unmasked connection string content in the error it raises when a connection string cannot be parsed. If that connection string carries a secret, the secret may be disclosed in cleartext through the application's error output or logs. No privileges on the driver and no network access are needed to produce the error; a party able to read the application's error output may obtain the secret.

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 →