Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Affecting clamav-db package, versions <0:0.103.8-1.52.amzn1


Severity

Recommended
critical

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.09% (38th 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-AMZN201803-CLAMAVDB-3330205
  • published23 Feb 2023
  • disclosed1 Mar 2023

Introduced: 23 Feb 2023

CVE-2023-20052  (opens in a new tab)
CWE-776  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade Amazon-Linux:2018.03 clamav-db to version 0:0.103.8-1.52.amzn1 or higher.
This issue was patched in ALAS-2023-1694.

NVD Description

Note: Versions mentioned in the description apply only to the upstream clamav-db package and not the clamav-db package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 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