Improper Input Validation in multi_xml
Published 24 Oct 2017 · Updated 4 Dec 2024
Is your project on an affected multi_xml?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.5.2
- Fixed in
- 0.5.2
bundle update --conservative multi_xml # Gemfile: '>= 0.5.2'Details
multi_xml gem 0.5.2 for Ruby, as used in Grape before 0.2.6 and possibly other products, does not properly restrict casts of string values, which allows remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) involving nested XML entity references, by leveraging support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.
Is GHSA-pchc-949f-53m5 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected multi_xml, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2013-0175
- Linkgithub.com/sferik/multi_xml/pull/34
- Linkgithub.com/sferik/multi_xml/commit/c94b136d06822514fc2e99dc851e6c4eeb4c8bdf
- Packagegithub.com/sferik/multi_xml
- Linkgroups.google.com/forum/?fromgroups=#!topic/ruby-grape/fthDkMgIOa0
- Linknews.ycombinator.com/item?id=5040457
- Linkwww.openwall.com/lists/oss-security/2013/01/11/9
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.