Heap-based Buffer Overflow Affecting indent package, versions <0:2.2.12-7.amzn2023.0.5


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.44% (37th 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-AMZN2023-INDENT-5887648
  • published8 Sept 2023
  • disclosed14 Aug 2023

Introduced: 14 Aug 2023

CVE-2023-40305  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 indent to version 0:2.2.12-7.amzn2023.0.5 or higher.
This issue was patched in ALAS2023-2023-318.

NVD Description

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

GNU indent 2.2.13 has a heap-based buffer overflow in search_brace in indent.c via a crafted file.

CVSS Base Scores

version 3.1