llamaCVEVulnerability Intelligence
/
Advisory · GitHub · RubyGems · nokogiri

GHSA-2QC6-MCVW-92CW

Update bundled libxml2 to v2.10.3 to resolve multiple CVEs

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición1.494 dDesde la divulgación, 18 oct 2022, 1:12 p. m.
Detección1.490 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 1.13.9
Monitoreo
Detectada +1
18 oct 22
17 nov 26
21 nov 26
18 oct 22
27 oct 23
3 nov 24
12 nov 25
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-2QC6-MCVW-92CW divulgada
Remediación Parche 1.13.9 nokogiri · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

Nokogiri v1.13.9 upgrades the packaged version of its dependency libxml2 to v2.10.3 https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.10.3 from v2.9.14.

libxml2 v2.10.3 addresses the following known vulnerabilities:

  • CVE-2022-2309 https://nvd.nist.gov/vuln/detail/CVE-2022-2309
  • CVE-2022-40304 https://nvd.nist.gov/vuln/detail/CVE-2022-40304
  • CVE-2022-40303 https://nvd.nist.gov/vuln/detail/CVE-2022-40303

Please note that this advisory only applies to the CRuby implementation of Nokogiri `< 1.13.9`, and only if the _packaged_ libraries are being used. If you've overridden defaults at installation time to use _system_ libraries instead of packaged libraries, you should instead pay attention to your distro's `libxml2` release announcements.

Mitigation

Upgrade to Nokogiri `>= 1.13.9`.

Users who are unable to upgrade Nokogiri may also choose a more complicated mitigation: compile and link Nokogiri against external libraries libxml2 `>= 2.10.3` which will also address these same issues.

Impact
libxml2 CVE-2022-2309 https://nvd.nist.gov/vuln/detail/CVE-2022-2309
  • CVSS3 score: Under evaluation
  • Type: Denial of service
  • Description: NULL Pointer Dereference allows attackers to cause a denial of service (or application crash). This only applies when lxml is used together with libxml2 2.9.10 through 2.9.14. libxml2 2.9.9 and earlier are not affected. It allows triggering crashes through forged input data, given a vulnerable code sequence in the application. The vulnerability is caused by the iterwalk function (also used by the canonicalize function). Such code shouldn't be in wide-spread use, given that parsing + iterwalk would usually be replaced with the more efficient iterparse function. However, an XML converter that serialises to C14N would also be vulnerable, for example, and there are legitimate use cases for this code sequence. If untrusted input is received (also remotely) and processed via iterwalk function, a crash can be triggered.

Nokogiri maintainers investigated at #2620 and determined this CVE does not affect Nokogiri users.

libxml2 CVE-2022-40304 https://nvd.nist.gov/vuln/detail/CVE-2022-40304
  • CVSS3 score: Unspecified upstream
  • Type: Data corruption, denial of service
  • Description: When an entity reference cycle is detected, the entity content is cleared by setting its first byte to zero. But the entity content might be allocated from a dict. In this case, the dict entry becomes corrupted leading to all kinds of logic errors, including memory errors like double-frees.

See https://gitlab.gnome.org/GNOME/libxml2/-/commit/644a89e080bced793295f61f18aac8cfad6bece2

libxml2 CVE-2022-40303 https://nvd.nist.gov/vuln/detail/CVE-2022-40303
  • CVSS3 score: Unspecified upstream
  • Type: Integer overflow
  • Description: Integer overflows with XML_PARSE_HUGE

See https://gitlab.gnome.org/GNOME/libxml2/-/commit/c846986356fc149915a74972bf198abc266bc2c0

References
  • libxml2 release notes https://gitlab.gnome.org/GNOME/libxml2/-/releases
  • CVE-2022-2309 https://nvd.nist.gov/vuln/detail/CVE-2022-2309
  • CVE-2022-40304 https://nvd.nist.gov/vuln/detail/CVE-2022-40304
  • CVE-2022-40303 https://nvd.nist.gov/vuln/detail/CVE-2022-40303
Versiones

Rangos afectados

Afectada Corregida Última
nokogiri< 1.13.9
1.13.9
1.19.7
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsnokogiri
Corregida 1.13.9 0 d 1.19.7 no afectada
Versiones corregidas1.13.9
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/sparklemotion/nokogiri/security/advisories/GHSA-2qc6-mcvw-92cw
Otrahttps://github.com/sparklemotion/nokogiri

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.