Integer Overflow or Wraparound Affecting libxmltok package, versions <1.2-4ubuntu0.18.04.1~esm3


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.13% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-LIBXMLTOK-10286641
  • published1 Jun 2025
  • disclosed30 Aug 2024

Introduced: 30 Aug 2024

CVE-2024-45491  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 libxmltok to version 1.2-4ubuntu0.18.04.1~esm3 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libxmltok package and not the libxmltok package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

An issue was discovered in libexpat before 2.6.3. dtdCopy in xmlparse.c can have an integer overflow for nDefaultAtts on 32-bit platforms (where UINT_MAX equals SIZE_MAX).

CVSS Base Scores

version 3.1