Skip to content
Fencer Vulns
medium 5.5

CVE-2023-40305 json

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

published 2023-08-14 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-44897

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 38%
public exploits
0
none known

Summary

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

Patch / fix

  • indent Debian 12 2.2.12-4+deb12u2
  • indent Debian 14, Debian 13 2.2.13-3

debian advisories DEBIAN-CVE-2023-40305

  • indent Ubuntu 20.04 LTS 2.2.12-1ubuntu0.20.04.1
  • indent Ubuntu 22.04 LTS 2.2.12-1ubuntu0.22.04.1

ubuntu advisories UBUNTU-CVE-2023-40305

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • indent SLE Module for Development Tools 15 SP5, SLE Module for Development Tools 15 SP4, openSUSE Leap 15.5 +1 more 2.2.11-150000.3.6.1
  • indent SLE Software Development Kit 12 SP5 2.2.10-38.6.1

suse advisories SUSE-SU-2023:3433-1SUSE-SU-2023:3432-1

  • indent openSUSE Tumbleweed 2.2.13-2.1

opensuse advisories openSUSE-SU-2024:13149-1

  • indent Azure Linux 3.0 2.2.13-1

azure linux advisories AZL-45015

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-40305 updated cvss 5.5

indent: heap-based buffer overflow in search_brace() in indent.c

  • Red Hat Enterprise Linux 6 indent Red Hat Enterprise Linux 7 indent
    affected: workaround, no fix planned “Do not process untrusted files with the indent program.”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • savannah.gnu.org https://savannah.gnu.org/bugs/index.php?64503 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.