CVE-2015-4410: Moped Moped Rubygem Data Injection Vulnerability Vulnerability
HIGHCVE-2015-4410 is a HIGH (CVSS 7.5) moped rubygem data injection vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Moped libraries in the RubyGems ecosystem. The issue involves moped rubygem data injection vulnerability. Remediation is available by upgrading affected packages to version 1.5.3, 2.0.5.
CVE-2015-4410 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2015-4410
To remediate this vulnerability, upgrade all affected Moped dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade moped to 1.5.3
Upgrade moped to 2.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for moped
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-4410, inspect your project dependencies for Moped:
inspect dependencies for moped
Analyze the terminal output to locate any version of Moped in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Moped, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2015-4410 Affected Moped Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2015-4410?
Which Moped versions are affected?
What version fixes CVE-2015-4410?
Is moped affected?
What is the CVSS score of CVE-2015-4410?
What CWE is associated with CVE-2015-4410?
How can I check RubyGems dependencies for CVE-2015-4410?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f93j-hmcr-jcwh",
"modified" : "2023-08-25T21:39:29Z",
"published" : "2020-08-19T16:45:49Z",
"aliases" : [ "CVE-2015-4410" ],
"summary" : "Moped Rubygem Data Injection Vulnerability",
"details" : "`The Moped::BSON::ObjecId.legal?` method in rubygem-moped before [commit dd5a7c14b5d2e466f7875d079af71ad19774609b](https://github.com/mongoid/moped/commit/dd5a7c14b5d2e466f7875d079af71ad19774609b#diff-3b93602f64c2fe46d38efd9f73ef5358R24) allows remote attackers to cause a denial of service (worker resource consumption) or perform a cross-site scripting (XSS) attack via a crafted string.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "moped"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "moped"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-4410"
}, {
"type" : "WEB",
"url" : "https://github.com/mongoid/moped/commit/dd5a7c14b5d2e466f7875d079af71ad19774609b#diff-3b93602f64c2fe46d38efd9f73ef5358R24"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1229757"
}, {
"type" : "WEB",
"url" : "https://github.com/mongoid/moped"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/moped/CVE-2015-4410.yml"
}, {
"type" : "WEB",
"url" : "https://homakov.blogspot.ru/2012/05/saferweb-injects-in-various-ruby.html"
}, {
"type" : "WEB",
"url" : "https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html"
}, {
"type" : "WEB",
"url" : "https://seclists.org/oss-sec/2015/q2/653"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228085849/http://www.securityfocus.com/bid/75045"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-July/161964.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-July/161987.html"
}, {
"type" : "WEB",
"url" : "http://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2015/06/06/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-14T16:47:12Z",
"nvd_published_at" : null
}
}