# CVE-2023-40305: GNU indent 2.2.13 has a heap-based buffer overflow in searchbrace in indent.c via a crafted file.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-14T00:00:00.000Z
- Modified: 2026-06-17T06:17:10.190Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu indent: 2.2.13

## References

- <https://savannah.gnu.org/bugs/index.php?64503> (exploit, issue-tracking, vendor-advisory)
- <https://ftp.gnu.org/gnu/indent/> (product)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3W6SL3NKMH5R4S5PD2O3MTC2UR4SBVHK/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4MIUH3F63KQJWYR3FLKRZUYYRJOY6FYX/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OB6GB6FUFPV5VJAZIANDG4YNNDW6JNXX/> (vendor-advisory)

## Sources

- CVE List: [CVE-2023-40305](https://www.cve.org/CVERecord?id=CVE-2023-40305), CVE Terms of Use, modified 2024-10-09
- NVD: [CVE-2023-40305](https://nvd.nist.gov/vuln/detail/CVE-2023-40305), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40305 · Whole record: https://cve.day/CVE-2023-40305.json · Rebuilt by cve.day 2026-11-25T22:58:27.099Z
