llamaCVEVulnerability Intelligence
/
Advisory · GitHub · RubyGems · nokogiri

GHSA-CGX6-HPWQ-FHV5

Integer Overflow or Wraparound in libxml2 affects Nokogiri

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

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -14 d de la divulgación
Exposición1.647 dDesde la divulgación, 18 may 2022, 3:06 p. m.
Detección1.643 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.5
Monitoreo
Detectada +1
4 may 22
18 may 22
17 nov 26
21 nov 26
4 may 22
24 jun 23
12 ago 24
1 oct 25
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.13.5 nokogiri · -14 d desde divulgación
Divulgación Publicada GHSA-CGX6-HPWQ-FHV5 divulgada
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.5 upgrades the packaged version of its dependency libxml2 from v2.9.13 to v2.9.14 https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.9.14.

libxml2 v2.9.14 addresses CVE-2022-29824 https://nvd.nist.gov/vuln/detail/CVE-2022-29824. This version also includes several security-related bug fixes for which CVEs were not created, including a potential double-free, potential memory leaks, and integer-overflow.

Please note that this advisory only applies to the CRuby implementation of Nokogiri `< 1.13.5`, 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` and `libxslt` release announcements.

Mitigation

Upgrade to Nokogiri `>= 1.13.5`.

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

Impact
libxml2 CVE-2022-29824 https://nvd.nist.gov/vuln/detail/CVE-2022-29824
  • CVSS3 score:
  • Unspecified upstream
  • Nokogiri maintainers evaluate at 8.6 (High) (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H). Note that this is different from the CVSS assessed by NVD.
  • Type: Denial of service, information disclosure
  • Description: In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don't check for integer overflows. This can result in out-of-bounds memory writes. Exploitation requires a victim to open a crafted, multi-gigabyte XML file. Other software using libxml2's buffer functions, for example libxslt through 1.1.35, is affected as well.
  • Fixed: https://gitlab.gnome.org/GNOME/libxml2/-/commit/2554a24

All versions of libml2 prior to v2.9.14 are affected.

Applications parsing or serializing multi-gigabyte documents (in excess of INT_MAX bytes) may be vulnerable to an integer overflow bug in buffer handling that could lead to exposure of confidential data, modification of unrelated data, or a segmentation fault resulting in a denial-of-service.

References
  • libxml2 v2.9.14 release notes https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.9.14
  • CVE-2022-29824 https://nvd.nist.gov/vuln/detail/CVE-2022-29824
  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer https://cwe.mitre.org/data/definitions/119.html

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

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

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsnokogiri
Corregida 1.13.5 -14 d 1.19.7 no afectada
Versiones corregidas1.13.5
Explotación

Arsenal público

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

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-29824
Otrahttps://github.com/sparklemotion/nokogiri/security/advisories/GHSA-cgx6-hpwq-fhv5
Otrahttps://github.com/sparklemotion/nokogiri
Otrahttps://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.9.14

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