Skip to content

libexpat CVE-2022-40674

Moderate
arnaldo2792 published GHSA-xvff-wcqg-jj26 Oct 13, 2022

Package

libexpat (bottlerocket)

Affected versions

< 1.10.0

Patched versions

1.10.0

Description

A vulnerability was found in expat. With this flaw, it is possible to create a situation in which parsing is suspended while substituting in an internal entity so that XML_ResumeParser directly uses the internalEntityProcessor as its processor. If the subsequent parse includes some unclosed tags, this will return without calling storeRawNames to ensure that the raw versions of the tag names are stored in memory other than the parse buffer itself. Issues occur if the parse buffer is changed or reallocated (for example, if processing a file line by line). Using this vulnerability in the doContent function allows an attacker to triage a denial of service or potentially arbitrary code execution.

Severity

Moderate

CVE ID

CVE-2022-40674

Weaknesses

No CWEs