{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-0341 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2023-0341 is a high-severity memory corruption vulnerability in EditorConfig C Core, published on 31 Jan 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-0341 and fix it if it is affected.\n\nWhat it is: CVE-2023-0341 is a high-severity memory corruption vulnerability in EditorConfig C Core, published on 31 Jan 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-0341 exists.\n\nAffected product: EditorConfig C Core. 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-0341/ (Markdown: https://insights.sbomify.com/CVE-2023-0341/index.md)","id":"CVE-2023-0341","markdown":"https://insights.sbomify.com/CVE-2023-0341/index.md","name":"CVE-2023-0341","record":{"aliases":["DEBIAN-CVE-2023-0341","GHSA-f352-cwm8-5w9w","MGASA-2023-0048","UBUNTU-CVE-2023-0341","USN-5842-1","openSUSE-SU-2023:0102-1","openSUSE-SU-2024:12906-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"EditorConfig C Core","requires_auth":"none","summary":"A stack buffer overflow in editorconfig-core-c allows attackers to write to the stack, potentially enabling remote code execution.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"editorconfig","vendor":"editorconfig"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.","ecosystems":["SUSE:Package Hub 15 SP4","openSUSE:Leap 15.4"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Stack Buffer Overflow in editorconfig-core-c","id":"CVE-2023-0341","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2023"},"n_packages":2,"n_references":4,"next":{"headline":"MongoDB Ops Manager may disclose sensitive information in Diagnostic Archive","id":"CVE-2023-0342"},"packages":[{"ecosystem":"SUSE:Package Hub 15 SP4","fixed":["0.12.6-bp154.2.3.1"],"introduced":["0"],"last_affected":[],"package":"editorconfig-core-c","purl":"pkg:rpm/suse/editorconfig-core-c\u0026distro=SUSE%20Package%20Hub%2015%20SP4","source":"openSUSE-SU-2023:0102-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["0.12.6-bp154.2.3.1"],"introduced":["0"],"last_affected":[],"package":"editorconfig-core-c","purl":"pkg:rpm/opensuse/editorconfig-core-c\u0026distro=openSUSE%20Leap%2015.4","source":"openSUSE-SU-2023:0102-1"}],"prev":{"headline":"Custom Content Shortcode \u003c= 4.0.2 - Contributor+ LFI","id":"CVE-2023-0340"},"products":["EditorConfig C Core"],"published":"2023-01-31","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["EditorConfig"]},"summary":"A stack buffer overflow in editorconfig-core-c allows attackers to write to the stack, potentially enabling remote code execution.","url":"https://insights.sbomify.com/CVE-2023-0341/"}