Heap-based buffer overflow in Indent - CVE-2023-40305
Published: August 24, 2023
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
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
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
- Remote code execution in GNU indent
- SUSE update for indent
- SUSE update for indent
- Fedora 39 update for indent
- Fedora 38 update for indent
- Fedora 37 update for indent
- Fedora EPEL 9 update for indent
- Fedora EPEL 8 update for indent
- Ubuntu update for indent
- openEuler update for indent
- Amazon Linux AMI update for indent