VULNERABILITY

Amazon Linux 2023: CVE-2022-40674: Critical priority package update for expat

Try Surface Command Get a continuous 360° view of your attack surface
Back to Search

Amazon Linux 2023: CVE-2022-40674: Critical priority package update for expat

Severity
8
CVSS
(AV:N/AC:H/Au:N/C:C/I:C/A:C)
Published
09/14/2022
Created
02/14/2025
Added
02/17/2025
Modified
02/17/2025

Description

libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c. 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.

Solution(s)

  • amazon-linux-2023-upgrade-expat
  • amazon-linux-2023-upgrade-expat-debuginfo
  • amazon-linux-2023-upgrade-expat-debugsource
  • amazon-linux-2023-upgrade-expat-devel
  • amazon-linux-2023-upgrade-expat-static

insightVM

Advanced vulnerability management analytics and reporting.
Key Features
  • Lightweight Endpoint Agent
  • Live Dashboards
  • Real Risk Prioritization
  • IT-Integrated Remediation Projects
  • Cloud, Virtual, and Container Assessment
  • Integrated Threat Feeds
  • Easy-to-Use RESTful API
  • Automation-Assisted Patching
  • Automated Containment
Free InsightVM Trial View All Features

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;