ALAS2-2022-1877

Related Vulnerabilities: CVE-2022-40674  

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), problems occur. Using this vulnerability in the doContent function allows an attacker to triage a denial of service or potentially arbitrary code execution. (CVE-2022-40674)

ALAS2-2022-1877


Amazon Linux 2 Security Advisory: ALAS-2022-1877
Advisory Release Date: 2022-10-31 19:40 Pacific
Advisory Updated Date: 2022-11-08 22:19 Pacific
Severity: Important
References: CVE-2022-40674 

Issue Overview:

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), problems occur. Using this vulnerability in the doContent function allows an attacker to triage a denial of service or potentially arbitrary code execution. (CVE-2022-40674)


Affected Packages:

expat


Issue Correction:
Run yum update expat to update your system.

New Packages:
aarch64:
    expat-2.1.0-15.amzn2.0.1.aarch64
    expat-devel-2.1.0-15.amzn2.0.1.aarch64
    expat-static-2.1.0-15.amzn2.0.1.aarch64
    expat-debuginfo-2.1.0-15.amzn2.0.1.aarch64

i686:
    expat-2.1.0-15.amzn2.0.1.i686
    expat-devel-2.1.0-15.amzn2.0.1.i686
    expat-static-2.1.0-15.amzn2.0.1.i686
    expat-debuginfo-2.1.0-15.amzn2.0.1.i686

src:
    expat-2.1.0-15.amzn2.0.1.src

x86_64:
    expat-2.1.0-15.amzn2.0.1.x86_64
    expat-devel-2.1.0-15.amzn2.0.1.x86_64
    expat-static-2.1.0-15.amzn2.0.1.x86_64
    expat-debuginfo-2.1.0-15.amzn2.0.1.x86_64