Skip to main content

Libxml2: Heap-use-after-free in xmlCharEncCloseFunc

0
Medium
Published: 07/31/2024 (07/31/2024, 00:12:19 UTC)
Source: GCVE Database
Product: libxml2

Description

A heap-use-after-free vulnerability exists in libxml2 within the xmlCharEncCloseFunc function. This issue was identified by OSS-Fuzz and involves a read operation on freed heap memory, potentially leading to memory corruption or crashes. The vulnerability affects multiple specific versions of libxml2 from 2.14.0 through 2.15.4. No CVSS score or vendor patch information is currently available.

Affected software

OSS-Fuzzmore threats →ghsa
libxml2
pkg:generic/libxml2
Affected versions
>=36ea881b9d92166568b1d107181a05f673fd4ab1=v2.14.0=v2.14.1=v2.14.2=v2.14.3=v2.14.4=v2.14.5=v2.14.6=v2.15.0=v2.15.1=v2.15.2=v2.15.3=v2.15.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 09:24:09 UTC

Technical Analysis

The vulnerability is a heap-use-after-free read detected in the xmlCharEncCloseFunc function of libxml2, as reported by OSS-Fuzz. The crash occurs during operations involving htmlSaveFileFormat and parseAndPrintFile, indicating a use-after-free condition that may cause memory corruption or application crashes. The affected versions explicitly include libxml2 versions 2.14.0 through 2.15.4. No official patch or remediation details have been provided in the available data.

Potential Impact

The heap-use-after-free vulnerability can lead to memory corruption and application crashes when processing XML data using the affected libxml2 versions. This may impact the stability and security of applications relying on these versions of libxml2. There is no information about active exploitation in the wild.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider avoiding the affected versions or applying any available updates from the libxml2 maintainers once released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
OSV-2024-698
Osv Schema Version
1.6.0
Ecosystems
["OSS-Fuzz"]

Threat ID: 6a9d763cacd9273b49d80c8e

Added to database: 09/06/2026, 14:18:36 UTC

Last enriched: 09/07/2026, 09:24:09 UTC

Last updated: 10/04/2026, 06:25:15 UTC

Views: 172

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses