{"id":"UBUNTU-CVE-2023-40305","details":"GNU indent 2.2.13 has a heap-based buffer overflow in search_brace in indent.c via a crafted file.","modified":"2026-02-04T04:20:13.617590Z","published":"2023-08-14T06:15:00Z","related":["USN-6389-1"],"upstream":["CVE-2023-40305"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-40305"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6389-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-40305"}],"affected":[{"package":{"name":"indent","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/indent@2.2.11-4?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.11-4"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.11-4","binary_name":"indent"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40305.json"}},{"package":{"name":"indent","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/indent@2.2.11-5?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.11-5"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.11-5","binary_name":"indent"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40305.json"}},{"package":{"name":"indent","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/indent@2.2.12-1ubuntu0.20.04.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.12-1ubuntu0.20.04.1"}]}],"versions":["2.2.12-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.12-1ubuntu0.20.04.1","binary_name":"indent"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40305.json"}},{"package":{"name":"indent","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/indent@2.2.12-1ubuntu0.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.12-1ubuntu0.22.04.1"}]}],"versions":["2.2.12-1build1","2.2.12-1build2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.12-1ubuntu0.22.04.1","binary_name":"indent"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40305.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}