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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-bson | 1.10.0-2 | — |
| Debian 13 | ruby-bson | 1.10.0-2 | — |
| Debian 12 | ruby-bson | 1.10.0-2 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud 5 | rubygem-bson-1_11 | 1.11.1-9.1 | SUSE-SU-2016:2019-1 |
| SUSE OpenStack Cloud 5 | rubygem-easy_diff | 0.0.5-9.1 | SUSE-SU-2016:2019-1 |
| SUSE OpenStack Cloud 5 | rubygem-redcarpet | 3.2.3-9.1 | SUSE-SU-2016:2019-1 |
| SUSE OpenStack Cloud 5 | rubygem-sprockets-2_11 | 2.11.3-11.1 | SUSE-SU-2016:2019-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | moped | < 1.5.3 | 1.5.3 | GHSA-f93j-hmcr-jcwh |
| RubyGems | moped | >= 2.0.0, < 2.0.5 | 2.0.5 | GHSA-f93j-hmcr-jcwh |
Advisories 1
- SUSE-SU-2016:2019-1 Security update for rubygem-bson-1_11, rubygem-easy_diff, rubygem-redcarpet, and rubygem-sprockets-2_11 SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html
- https://homakov.blogspot.ru/2012/05/saferweb-injects-in-various-ruby.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-July/161987.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-July/161964.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1229757
- http://www.openwall.com/lists/oss-security/2015/06/06/3
- http://www.securityfocus.com/bid/75045
- https://github.com/mongoid/moped/commit/dd5a7c14b5d2e466f7875d079af71ad19774609b#diff-3b93602f64c2fe46d38efd9f73ef5358R24
- https://seclists.org/oss-sec/2015/q2/653
- https://www.securityfocus.com/bid/75045