Nokogiri affected by libxslt Use of Uninitialized Resource/Use After Free vulnerability
High severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Jul 10, 2023
Description
Published by the National Vulnerability Database
Oct 18, 2019
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Jul 7, 2023
Last updated
Jul 10, 2023
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.
Nokogiri prior to version 1.10.5 contains a vulnerable version of libxslt. Nokogiri version 1.10.5 upgrades the dependency to libxslt 1.1.34, which contains a patch for this issue.
References