Out-of-bounds Write Affecting zbar package, versions <0:0.10-19.3.amzn1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.73% (79th 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-ZBAR-6099073
  • published5 Dec 2023
  • disclosed29 Aug 2023

Introduced: 29 Aug 2023

CVE-2023-40889  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 zbar to version 0:0.10-19.3.amzn1 or higher.
This issue was patched in ALAS-2023-1887.

NVD Description

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

A heap-based buffer overflow exists in the qr_reader_match_centers function of ZBar 0.23.90. Specially crafted QR codes may lead to information disclosure and/or arbitrary code execution. To trigger this vulnerability, an attacker can digitally input the malicious QR code, or prepare it to be physically scanned by the vulnerable scanner.

CVSS Base Scores

version 3.1