Name | CVE-2015-4410 |
Description | The Moped::BSON::ObjecId.legal? method in rubygem-moped before commit dd5a7c14b5d2e466f7875d079af71ad19774609b allows remote attackers to cause a denial of service (worker resource consumption) or perform a cross-site scripting (XSS) attack via a crafted string. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 787951 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
ruby-bson (PTS) | bullseye | 4.10.0-2 | fixed |
| sid, trixie, bookworm | 4.15.0-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
ruby-bson | source | jessie | 1.10.0-1+deb8u1 | | | |
ruby-bson | source | (unstable) | 1.10.0-2 | | | 787951 |
Notes
"original" implementation of legal? using ^[0-9a-f]{24}$ regular expression
Fix: https://github.com/mongodb/mongo-ruby-driver/commit/bb544c2f6fd62940f04ddc1abeeaa3f23c1a9ade (1.x-stable)
http://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html
https://sources.debian.org/src/ruby-bson/1.10.0-1/lib/bson/types/object_id.rb/#L54
https://www.openwall.com/lists/oss-security/2015/06/06/1