GHSA-qxcg-xjjg-66mj CVE-2019-11068
Nokogiri vulnerable to libxslt protection mechanism bypass
- Severity
- 9.8 / 10
- Critical · CVSS 3.0
- Exploit chance (EPSS)
- 5.19%
- Chance of exploitation in the next 30 days. Higher than 92.47% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- —
- Not classified
- Fix
1.10.3- Upgrade nokogiri to this version or later
Description
A dependency of Nokogiri, libxslt through 1.1.33 allows bypass of a protection mechanism because callers of xsltCheckRead and xsltCheckWrite permit access even upon receiving a -1 error code. xsltCheckRead can return -1 for a crafted URL that is not actually invalid and is subsequently loaded.
Affected versions
RubyGems
| Package | Vulnerable | Fixed in |
|---|---|---|
| nokogiri | < 1.10.3 |
1.10.3 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
nokogiri RubyGems → 1.10.3
- bundler
bundle update nokogiri # Gemfile: gem "nokogiri", ">= 1.10.3"
Severity breakdown
CVSS 3.0 9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
References
Advisories
Other links
- github.com/sparklemotion/nokogiri/issues/1892
- github.com/sparklemotion/nokogiri/pull/1898
- github.com/sparklemotion/nokogiri/commit/fe034aedcc59b566740567d621843731686676b9
- oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
- usn.ubuntu.com/3947-2
- usn.ubuntu.com/3947-1
- security.netapp.com/advisory/ntap-20191017-0001
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SK4YN…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCOAX…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36TEY…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SK4…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GCO…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36T…
- lists.debian.org/debian-lts-announce/2019/04/msg00016.html
- gitlab.gnome.org/GNOME/libxslt/commit/e03553605b45c88f0b4b2980adfbbb8f6fca2fd6
- github.com/sparklemotion/nokogiri/blob/f7aa3b0b29d6fe5fafe93dacd9b96b6b3d16b7ec…
- github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2019-11068.yml
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00048.html
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00052.html
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00053.html
- lists.opensuse.org/opensuse-security-announce/2019-06/msg00025.html
- lists.opensuse.org/opensuse-security-announce/2019-08/msg00001.html
- openwall.com/lists/oss-security/2019/04/22/1
- openwall.com/lists/oss-security/2019/04/23/5
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-phwj-rprq-35pp Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=` | High | Also affects nokogiri |
| GHSA-wfpw-mmfh-qq69 Nokogiri: Possible Use-After-Free in XInclude Processing | Low | Also affects nokogiri |
| GHSA-p67v-3w7g-wjg7 Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime | Medium | Also affects nokogiri |
| GHSA-wjv4-x9w8-wm3h Nokogiri: Possible Use-After-Free when setting `Document#root=` to an invalid node type | Medium | Also affects nokogiri |
| GHSA-5prr-v3j2-97mh Nokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]` | High | Also affects nokogiri |
| GHSA-9cv2-cfxc-v4v2 Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes | High | Also affects nokogiri |
| GHSA-8678-w3jw-xfc2 Nokogiri: XML::Schema on JRuby allows network requests when NONET is set, bypassing CVE-2020-26247 | Low | Also affects nokogiri |
| GHSA-5v8h-3h3q-446p Nokogiri: Possible Use-After-Free when `Nokogiri::XML::Document#encoding=` raises an exception | High | Also affects nokogiri |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor