CVE-2019-18197
Nokogiri affected by libxslt Use of Uninitialized Resource/Use After Free vulnerability
Reported by mitre · Published October 18, 2019
nokogiri is fixed in 1.10.5 (RubyGems)
In xsltCopyText in transform.c in libxslt 1.1.33, a pointer variable isn't reset under certain circumstances. If the relevant memory area happened to be freed and reused in a certain way, a bounds check could fail and memory outside a buffer could be written to, or uninitialized data could be disclosed.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nokogiri | RubyGems | 1.10.5 |
| libxslt | Ubuntu:Pro:14.04:LTS | 1.1.28-2ubuntu0.2+esm1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| amazon:2 | libxslt-python | 0 |
| amazon:2 | libxslt-devel | 0 |
| RubyGems | nokogiri | 0 |
| amazon:2 | libxslt | 0 |
| alpine | libxslt | 0, 0, 0 |
| arch | chromium | 0 |
Timeline
- Oct 18, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (24 in total, the first dated here)
- Mar 6, 2026 Security Advisory (39 in total, the first dated here)
- Jun 9, 2026 CVE Updated
- Sep 13, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-18197
vulnetix vdb fixes CVE-2019-18197
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-18197/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- USN-4164-1 vendor-advisoryx_refsource_UBUNTU
- [debian-lts-announce] 20191027 [SECURITY] [DLA 1973-1] libxslt security update mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- [oss-security] 20191117 Nokogiri security update v1.10.5 mailing-listx_refsource_MLIST
- openSUSE-SU-2020:0189 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2020:0210 vendor-advisoryx_refsource_SUSE
- RHSA-2020:0514 vendor-advisoryx_refsource_REDHAT
- openSUSE-SU-2020:0233 vendor-advisoryx_refsource_SUSE
- x_refsource_MISC
- x_refsource_CONFIRM
- openSUSE-SU-2020:0731 vendor-advisoryx_refsource_SUSE
- https://nvd.nist.gov/vuln/detail/CVE-2019-18197 advisory
- https://github.com/advisories/GHSA-242x-7cm6-4w8j advisory
- https://github.com/sparklemotion/nokogiri/issues/1943 url
- https://github.com/sparklemotion/nokogiri/blob/01ab95f3e37429ed8d3b380a8d2f73902eb325d9/CHANGELOG.md?plain=1#L934 url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2019-18197.yml advisory
…and 3 more