CVE-2015-4410

NameCVE-2015-4410
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs787951

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-bson (PTS)buster4.3.0-1fixed
bullseye4.10.0-2fixed
sid, trixie, bookworm4.15.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-bsonsourcejessie1.10.0-1+deb8u1
ruby-bsonsource(unstable)1.10.0-2787951

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

Search for package or bug name: Reporting problems