Quick answers
- Is CVE-2019-13118 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2019-13118 being exploited in the wild.
- How severe is CVE-2019-13118?
- High severity, with a CVSS score of 7.5, published 24 May 2022.
- Which products and versions are affected?
- Gnome Libxslt 1.1.33; nokogiri (RubyGems) < 1.10.5, ECOSYSTEM:introduced=0,fixed=1.10.5.
- Is there a fix for CVE-2019-13118?
- Yes. nokogiri (RubyGems): upgrade to 1.10.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2019-13118 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2019-13118?
- Check whether you run Gnome Libxslt or nokogiri (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- nokogiri (RubyGems): upgrade to 1.10.5 or later
bundle update nokogiri
Technical details
A type confusion vulnerability exists in libxslt 1.1.33 within the `numbers.c` component. The root cause is a variable type holding grouping characters for the `xsl:number` instruction being too narrow, which allows an invalid character/length combination to be passed to `xsltNumberFormatDecimal`. This results in a read of uninitialized stack data. An attacker can exploit this over the network without authentication or user interaction by providing a malicious XSLT stylesheet or XML document. Nokogiri addressed this by updating its bundled libxslt to version 1.1.34 in release 1.10.5.
Affected products
- Nokogiri Nokogiri < 1.10.5
- GNOME libxslt 1.1.33
Identifiers
- CVE-2019-13118
- GHSA-cf46-6xxh-pc75
Timeline
- 2019-07-01: advisory: NVD published CVE-2019-13118
- 2019-10-16: patched: Nokogiri version 1.10.5 released
- 2022-05-24: advisory: GitHub Advisory published
References
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15069
- https://gitlab.gnome.org/GNOME/libxslt/commit/6ce8de69330783977dd14f6569419489875fb71b
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2019/07/msg00020.html