XML External Entity (XXE) Injection Affecting ruby package, versions <2.7.3-r0
Snyk CVSS
Attack Complexity
Low
Integrity
High
Threat Intelligence
EPSS
0.11% (42nd
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-ALPINE312-RUBY-1247348
- published 16 Apr 2021
- disclosed 21 Apr 2021
Introduced: 16 Apr 2021
CVE-2021-28965 Open this link in a new tabHow to fix?
Upgrade Alpine:3.12
ruby
to version 2.7.3-r0 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream ruby
package and not the ruby
package as distributed by Alpine
.
See How to fix?
for Alpine:3.12
relevant fixed versions and status.
The REXML gem before 3.2.5 in Ruby before 2.6.7, 2.7.x before 2.7.3, and 3.x before 3.0.1 does not properly address XML round-trip issues. An incorrect document can be produced after parsing and serializing.
References
- https://security.netapp.com/advisory/ntap-20210528-0003/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WTVFTLFVCSUE5CXHINJEUCKSHU4SWDMT/
- https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WTVFTLFVCSUE5CXHINJEUCKSHU4SWDMT/