CVE-2023-40305 Memory corruption in n/a

Medium 5.5 Published Updated

A heap-based buffer overflow in GNU indent allows attackers to execute arbitrary code or cause denial of service via a crafted file.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-40305?

CVE-2023-40305 is a medium-severity memory corruption vulnerability in n/a, published on 14 Aug 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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

Weakness: CWE-787

Which versions are affected by CVE-2023-40305?

It affects 1 product.

Linux distribution packages (6)
indent SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions2.2.11-150000.3.6.1
indent SUSE:Linux Enterprise Module for Development Tools 15 SP5All versions2.2.11-150000.3.6.1
indent SUSE:Linux Enterprise Software Development Kit 12 SP5All versions2.2.10-38.6.1
indent openSUSE:Leap 15.4All versions2.2.11-150000.3.6.1
indent openSUSE:Leap 15.5All versions2.2.11-150000.3.6.1
indent openSUSE:TumbleweedAll versions2.2.13-2.1

Products include Gnu Indent.

How do I fix CVE-2023-40305?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-40305 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40305 exists.

Sources

Also known as AZL-43837, AZL-45015, DEBIAN-CVE-2023-40305, GHSA-9rpm-p244-mjrf, MGASA-2023-0274, OESA-2023-1552 and 8 more.

Is CVE-2023-40305 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free