{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40305 exists.","fix":"Upgrade to a fixed version.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-40305 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40305 exists.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-40305/ (Markdown: https://insights.sbomify.com/CVE-2023-40305/index.md)","id":"CVE-2023-40305","markdown":"https://insights.sbomify.com/CVE-2023-40305/index.md","name":"CVE-2023-40305","record":{"aliases":["AZL-43837","AZL-45015","DEBIAN-CVE-2023-40305","GHSA-9rpm-p244-mjrf","MGASA-2023-0274","OESA-2023-1552","ROOT-OS-ALPINE-318-CVE-2023-40305","ROOT-OS-ALPINE-319-CVE-2023-40305","ROOT-OS-ALPINE-320-CVE-2023-40305","SUSE-SU-2023:3432-1","SUSE-SU-2023:3433-1","UBUNTU-CVE-2023-40305","USN-6389-1","openSUSE-SU-2024:13149-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GNU indent","requires_auth":"none","summary":"A heap-based buffer overflow in GNU indent allows attackers to execute arbitrary code or cause denial of service via a crafted file.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"indent","vendor":"gnu"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"description":"GNU indent 2.2.13 has a heap-based buffer overflow in search_brace in indent.c via a crafted file.","ecosystems":["SUSE:Linux Enterprise Module for Development Tools 15 SP4","SUSE:Linux Enterprise Module for Development Tools 15 SP5","SUSE:Linux Enterprise Software Development Kit 12 SP5","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Memory corruption in n/a","id":"CVE-2023-40305","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2023"},"n_packages":6,"n_references":5,"next":{"headline":"URL Redirection vulnerability in SAP S/4HANA (Manage Catalog Items and Cross-Catalog search)","id":"CVE-2023-40306"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["2.2.11-150000.3.6.1"],"introduced":["0"],"last_affected":[],"package":"indent","purl":"pkg:rpm/suse/indent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:3433-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP5","fixed":["2.2.11-150000.3.6.1"],"introduced":["0"],"last_affected":[],"package":"indent","purl":"pkg:rpm/suse/indent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5","source":"SUSE-SU-2023:3433-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["2.2.10-38.6.1"],"introduced":["0"],"last_affected":[],"package":"indent","purl":"pkg:rpm/suse/indent\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2023:3432-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["2.2.11-150000.3.6.1"],"introduced":["0"],"last_affected":[],"package":"indent","purl":"pkg:rpm/opensuse/indent\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:3433-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["2.2.11-150000.3.6.1"],"introduced":["0"],"last_affected":[],"package":"indent","purl":"pkg:rpm/opensuse/indent\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2023:3433-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.2.13-2.1"],"introduced":["0"],"last_affected":[],"package":"indent","purl":"pkg:rpm/opensuse/indent\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13149-1"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2023-40303"},"products":["n/a"],"published":"2023-08-14","related":[{"cvss_score":5.5,"headline":"Indent: heap-based buffer overflow in set_buf_break()","id":"CVE-2024-0911","kev_date_added":null,"published":"2024-02-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-09","vendors":["n/a"]},"summary":"A heap-based buffer overflow in GNU indent allows attackers to execute arbitrary code or cause denial of service via a crafted file.","url":"https://insights.sbomify.com/CVE-2023-40305/"}