---
id: CVE-2024-34393
title: >-
  libxmljs2 is vulnerable to a type confusion vulnerability when parsing a
  specially crafted XML while invoking a function on the result of attrs() that
  was called on a parsed node
summary: >-
  libxmljs2 is vulnerable to a type confusion vulnerability when parsing a
  specially crafted XML while invoking a function on the result of attrs() that
  was called on a parsed node. This vulnerability might lead to denial of
  service (on bo…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-843
product: libxmljs2
affected:
  - libxmljs2 <= 0.37.0
published: '2024-05-02'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T09:17:03.720'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-34393'
references:
  - url: >-
      https://research.jfrog.com/vulnerabilities/libxmljs2-attrs-type-confusion-rce-jfsa-2024-001034097/
    label: reefs@jfrog.com
  - url: 'https://github.com/marudor/libxmljs2/issues/204'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://research.jfrog.com/vulnerabilities/libxmljs2-attrs-type-confusion-rce-jfsa-2024-001034097/
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2024-05-16T18:07:11.891204Z'
epss: 0.00968
epssPercentile: 0.60514
ingestedAt: '2026-10-03T09:42:13.785Z'
---

## Overview

libxmljs2 is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking a function on the result of attrs() that was called on a parsed node. This vulnerability might lead to denial of service (on both 32-bit systems and 64-bit systems), data leak, infinite loop and remote code execution (on 32-bit systems with the XML_PARSE_HUGE flag enabled).

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
