{"id":"CVE-2026-2302","aliases":["EUVD-2026-6762","GHSA-68xj-h57p-gg5j","UBUNTU-CVE-2026-2302"],"status":"published","title":"Unsafe Reflection in Mongoid::Criteria.from_hash","description":"Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.","severity":{"version":"4.0","score":6.9,"vector":"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00232,"percentile":0.14196,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-183"],"published":"2026-02-10T18:59:23Z","modified":"2026-10-17T12:59:55Z","affected":[{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"ruby-mongo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"ruby-mongo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.1-1","2.4.1-1ubuntu1","2.5.1-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ruby-mongo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"ruby-mongo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"ruby-mongo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"ruby-mongo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1.2ubuntu1","2.5.1-2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"ruby-mongo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.23.0-1","2.24.0-1","2.24.1-1","2.25.0-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"ruby-mongo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-2","2.23.0-1"]}],"products":[{"vendor":"mongodb inc","product":"mongodb ruby driver"}],"references":[{"url":"https://jira.mongodb.org/browse/MONGOID-5919","tags":["report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-2302"},{"url":"https://github.com/advisories/GHSA-68xj-h57p-gg5j"},{"url":"https://ubuntu.com/security/CVE-2026-2302","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-2302","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-2302","title":"Unsafe Reflection in Mongoid::Criteria.from_hash","description":"Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.","status":"published","published":"2026-02-10T18:59:23.76Z","modified":"2026-02-27T13:29:42.348Z","cvss":[{"version":"4.0","score":6.9,"vector":"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","level":"medium","assessor":"cna"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-183"],"updated_at":"2026-11-02T13:48:35.749498Z"}],"euvd":[{"id":"EUVD-2026-6762","description":"Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.","status":"published","published":"2026-02-10T18:59:23Z","modified":"2026-02-27T13:29:42Z","cvss":[{"version":"4.0","score":6.9,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T19:48:14.049749Z"}],"ghsa":[{"id":"GHSA-68xj-h57p-gg5j","title":"Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid:...","description":"Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.","status":"published","published":"2026-02-10T21:31:30Z","modified":"2026-02-27T15:34:11Z","cvss":[{"version":"4.0","score":6.9,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-183"],"updated_at":"2026-11-02T15:06:24.663603Z"}],"nvd":[{"id":"CVE-2026-2302","description":"Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.","status":"published","published":"2026-02-10T19:16:04.677Z","modified":"2026-06-17T10:30:45.05Z","cvss":[{"version":"4.0","score":6.9,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-183"],"updated_at":"2026-11-02T14:12:05.908608Z"}],"osv":[{"id":"UBUNTU-CVE-2026-2302","description":"Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.","status":"published","published":"2026-02-10T19:16:00Z","modified":"2026-10-17T12:59:55.322460647Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"},{"version":"4.0","score":6.9,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T16:56:01.334185Z"}]}}
