Heap-based buffer overflow in Indent - CVE-2023-40305

 

Heap-based buffer overflow in Indent - CVE-2023-40305

Published: August 24, 2023


Vulnerability identifier: #VU79962
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-40305
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the search_brace() function in indent.c. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Indent
Amazon Linux AMI
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Software Development Kit 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
Fedora
Development Tools Module
openSUSE Leap
openEuler
Ubuntu
indent-debuginfo
indent
indent-debugsource
indent-help
indent (Ubuntu package)

How to mitigate CVE-2023-40305

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

indent-debuginfo - addressed in versions 2.2.10-38.6.1, 2.2.11-150000.3.6.1
indent - addressed in versions 2.2.10-38.6.1, 2.2.11-150000.3.6.1
indent-debugsource - addressed in versions 2.2.10-38.6.1, 2.2.11-150000.3.6.1
indent-help - update to 2.2.11-29
indent-debugsource - update to 2.2.11-29
indent-debuginfo - update to 2.2.11-29
indent - update to 2.2.11-29
indent (Ubuntu package) - addressed in versions 2.2.12-1ubuntu0.20.04.1, 2.2.12-1ubuntu0.22.04.1, 2.2.12-4ubuntu0.1
indent - update to 2.2.12-7
indent - addressed in versions 2.2.13-4.el8, 2.2.13-4.el9, 2.2.13-4.fc37, 2.2.13-4.fc38, 2.2.13-5.fc39

External References

Related Security Bulletins