CVE-2017-9050 — Out-of-bounds read in nokogiri — CVE Details
Out-of-bounds read in nokogiri
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (4.63%). Schedule for your next planned update.
Does your project use an affected nokogiri version?
Paste your Gemfile.lock to check it for CVE-2017-9050 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a heap-based buffer over-read in the xmlDictAddString function in dict.c. This vulnerability causes programs that use libxml2, such as PHP, to crash. This vulnerability exists because of an incomplete fix for CVE-2016-1839. GitHub is notifying on nokogiri as uses libxml2.
Advisory Timeline
- First published December 13, 2017 (3270 days ago).
- Last revised November 8, 2023 — 2155 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install nokogiri -v 1.8.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| nokogiri RubyGems · Affected: 1.0.0, 1.0.1, 1.0.2, 1.0.3 (+96 more) | 1.8.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-125Out-of-bounds ReadMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
Frequently Asked Questions
- What is CVE-2017-9050?
- Out-of-bounds read in nokogiri. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2017-9050?
- CVE-2017-9050 affects nokogiri. It has a 4.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2017-9050 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 10% of EPSS-scored vulnerabilities — 92.5% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2019-5477CRITICAL
Nokogiri Command Injection Vulnerability
- CVE-2016-4658CRITICAL
Nokogiri does not forbid namespace nodes in XPointer ranges
- CVE-2019-13118HIGH
libxslt Type Confusion vulnerability that affects Nokogiri
- CVE-2022-50999HIGH
Integer Overflow or Wraparound in libxml2 affects Nokogiri
- CVE-2022-24836HIGH
Nokogiri Inefficient Regular Expression Complexity
- CVE-2018-25032HIGH
Nokogiri affected by zlib's Out-of-bounds Write vulnerability
- CVE-2021-3517HIGH
Nokogiri contains libxml Out-of-bounds Write vulnerability
- CVE-2013-6461MEDIUM
Nokogiri vulnerable to DoS while parsing XML entities