{"api_version":"1","generated_at":"2026-04-13T16:57:23+00:00","cve":"CVE-2023-40031","urls":{"html":"https://cve.report/CVE-2023-40031","api":"https://cve.report/api/cve/CVE-2023-40031.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-40031","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-40031"},"summary":{"title":"CVE-2023-40031","description":"Notepad++ is a free and open-source source code editor. Versions 8.5.6 and prior are vulnerable to heap buffer write overflow in `Utf8_16_Read::convert`. This issue may lead to arbitrary code execution. As of time of publication, no known patches are available in existing versions of Notepad++.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-08-25 20:15:00","updated_at":"2023-08-31 18:11:00"},"problem_types":["CWE-120"],"metrics":[],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2023-092_Notepad__/","name":"https://securitylab.github.com/advisories/GHSL-2023-092_Notepad__/","refsource":"MISC","tags":[],"title":"GHSL-2023-112, GHSL-2023-102, GHSL-2023-103, GHSL-2023-092: Buffer Overflows in Notepad++ - CVE-2023-40031, CVE-2023-40036, CVE-2023-40164, CVE-2023-40166 | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-40031","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40031","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"40031","vulnerable":"1","versionEndIncluding":"8.5.6","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"notepad-plus-plus","cpe5":"notepad\\+\\+","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-40031","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Notepad++ is a free and open-source source code editor. Versions 8.5.6 and prior are vulnerable to heap buffer write overflow in `Utf8_16_Read::convert`. This issue may lead to arbitrary code execution. As of time of publication, no known patches are available in existing versions of Notepad++."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","cweId":"CWE-120"}]},{"description":[{"lang":"eng","value":"CWE-122: Heap-based Buffer Overflow","cweId":"CWE-122"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"notepad-plus-plus","product":{"product_data":[{"product_name":"notepad-plus-plus","version":{"version_data":[{"version_affected":"=","version_value":"<= 8.5.6"}]}}]}}]}},"references":{"reference_data":[{"url":"https://securitylab.github.com/advisories/GHSL-2023-092_Notepad__/","refsource":"MISC","name":"https://securitylab.github.com/advisories/GHSL-2023-092_Notepad__/"}]},"source":{"advisory":"GHSA-fp93-2q9p-7fxp","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-08-25 20:15:00","lastModifiedDate":"2023-08-31 18:11:00","problem_types":["CWE-120"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:notepad-plus-plus:notepad\\+\\+:*:*:*:*:*:*:*:*","versionEndIncluding":"8.5.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}