{"id":"UBUNTU-CVE-2026-2302","details":"Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.","modified":"2026-05-20T16:24:14.990314260Z","published":"2026-02-10T19:16:00Z","upstream":["CVE-2026-2302"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-2302"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-2302"},{"type":"REPORT","url":"https://jira.mongodb.org/browse/MONGOID-5919"}],"affected":[{"package":{"name":"ruby-mongo","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-mongo?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-mongo","binary_version":"1.10.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"}},{"package":{"name":"ruby-mongo","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-mongo?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.1-1","2.4.1-1ubuntu1","2.5.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-mongo","binary_version":"2.5.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"}},{"package":{"name":"ruby-mongo","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-mongo?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.1-1","binary_name":"ruby-mongo"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"}},{"package":{"name":"ruby-mongo","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-mongo?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-mongo","binary_version":"2.5.1-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"}},{"package":{"name":"ruby-mongo","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-mongo?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-mongo","binary_version":"2.5.1-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"}},{"package":{"name":"ruby-mongo","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ruby-mongo?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1.2ubuntu1","2.5.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-mongo","binary_version":"2.5.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"}},{"package":{"name":"ruby-mongo","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ruby-mongo?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-2","2.23.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.23.0-1","binary_name":"ruby-mongo"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2302.json"}}],"schema_version":"1.7.5","severity":[{"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"}]}