Skip to content
Heist/ feed
Back to feed
Medium

ruby-mongo — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-2302

Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.

Products
ruby-mongo
Affected versions
1.10.0-1, 2.23.0-1, 2.24.0-1, 2.24.1-1, 2.25.0-1, 2.4.1-1, 2.4.1-1ubuntu1, 2.5.1-1, 2.5.1-1.2ubuntu1, 2.5.1-1ubuntu1, 2.5.1-2
Fixed versions
Not specified
CVEs
CVE-2026-2302
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:57 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-2302

core-osv · Original source

Published 10 Feb 2026, 19:16 UTC

Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.

osv:UBUNTU-CVE-2026-2302

ruby-mongo

Fixed versions: Not specified

ruby-mongo

Fixed versions: Not specified

ruby-mongo

Fixed versions: Not specified

ruby-mongo

Fixed versions: Not specified

ruby-mongo

Fixed versions: Not specified

ruby-mongo

Fixed versions: Not specified

ruby-mongo

Fixed versions: Not specified

ruby-mongo

Fixed versions: Not specified

Complete source record
{
  "id": "a7cc6cd78d5873a5378ff0d8a46625cdb4584a37910f320be3ad670502220455",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-2302",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-2302",
    "summary": "Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.",
    "evidence": "osv:UBUNTU-CVE-2026-2302",
    "products": [
      {
        "name": {
          "value": "ruby-mongo",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mongo",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.4.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.4.1-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.5.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mongo",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mongo",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.1-1ubuntu1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mongo",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.1-1ubuntu1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mongo",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.1-1.2ubuntu1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.5.1-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mongo",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.23.0-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.24.0-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.24.1-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.25.0-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mongo",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.1-2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.23.0-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-2302",
      "aliases": [
        "UBUNTU-CVE-2026-2302"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mongo",
            "purl": "pkg:deb/ubuntu/ruby-mongo?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.10.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-mongo",
                "binary_version": "1.10.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mongo",
            "purl": "pkg:deb/ubuntu/ruby-mongo?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.4.1-1",
            "2.4.1-1ubuntu1",
            "2.5.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-mongo",
                "binary_version": "2.5.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mongo",
            "purl": "pkg:deb/ubuntu/ruby-mongo?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.5.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-mongo",
                "binary_version": "2.5.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mongo",
            "purl": "pkg:deb/ubuntu/ruby-mongo?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.5.1-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-mongo",
                "binary_version": "2.5.1-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mongo",
            "purl": "pkg:deb/ubuntu/ruby-mongo?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.5.1-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-mongo",
                "binary_version": "2.5.1-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mongo",
            "purl": "pkg:deb/ubuntu/ruby-mongo?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.5.1-1.2ubuntu1",
            "2.5.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-mongo",
                "binary_version": "2.5.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mongo",
            "purl": "pkg:deb/ubuntu/ruby-mongo?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.23.0-1",
            "2.24.0-1",
            "2.24.1-1",
            "2.25.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-mongo",
                "binary_version": "2.25.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mongo",
            "purl": "pkg:deb/ubuntu/ruby-mongo?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.5.1-2",
            "2.23.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-mongo",
                "binary_version": "2.23.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:55.322460647Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-2302"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-2302",
        "https://www.cve.org/CVERecord?id=CVE-2026-2302",
        "https://jira.mongodb.org/browse/MONGOID-5919"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-2302",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 359975,
  "published_at": "2026-02-10T19:16:00+00:00"
}