Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Affecting clamav-lib package, versions <0:0.103.8-1.amzn2.0.1


Severity

Recommended
critical

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.09% (39th 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-AMZN2-CLAMAVLIB-3328234
  • published22 Feb 2023
  • disclosed1 Mar 2023

Introduced: 22 Feb 2023

CVE-2023-20052  (opens in a new tab)
CWE-776  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 clamav-lib to version 0:0.103.8-1.amzn2.0.1 or higher.
This issue was patched in ALAS2-2023-1964.

NVD Description

Note: Versions mentioned in the description apply only to the upstream clamav-lib package and not the clamav-lib package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

On Feb 15, 2023, the following vulnerability in the ClamAV scanning library was disclosed:

A vulnerability in the DMG file parser of ClamAV versions 1.0.0 and earlier, 0.105.1 and earlier, and 0.103.7 and earlier could allow an unauthenticated, remote attacker to access sensitive information on an affected device.

This vulnerability is due to enabling XML entity substitution that may result in XML external entity injection. An attacker could exploit this vulnerability by submitting a crafted DMG file to be scanned by ClamAV on an affected device. A successful exploit could allow the attacker to leak bytes from any file that may be read by the ClamAV scanning process.

CVSS Scores

version 3.1