{"id":"CVE-2025-11012","summary":"BehaviorTree Diagnostic Message script_parser.cpp ParseScript stack-based overflow","details":"A vulnerability was determined in BehaviorTree up to 4.7.0. This affects the function ParseScript of the file /src/script_parser.cpp of the component Diagnostic Message Handler. Executing manipulation of the argument error_msgs_buffer can lead to stack-based buffer overflow. The attack can only be executed locally. The exploit has been publicly disclosed and may be utilized. This patch is called cb6c7514efa628adb8180b58b4c9ccdebbe096e3. A patch should be applied to remediate this issue.","modified":"2026-11-11T13:22:52.990228714Z","published":"2025-09-26T11:32:12.970Z","database_specific":{"cwe_ids":["CWE-119","CWE-121"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/11xxx/CVE-2025-11012.json","unresolved_ranges":[{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"4.0"},{"last_affected":"4.0"}]}]}],"cna_assigner":"VulDB"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/11xxx/CVE-2025-11012.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11012"},{"type":"ADVISORY","url":"https://vuldb.com/?id.325955"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.654074"},{"type":"REPORT","url":"https://github.com/BehaviorTree/BehaviorTree.CPP/issues/1006"},{"type":"REPORT","url":"https://github.com/BehaviorTree/BehaviorTree.CPP/pull/1007"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.325955"},{"type":"FIX","url":"https://github.com/BehaviorTree/BehaviorTree.CPP/commit/cb6c7514efa628adb8180b58b4c9ccdebbe096e3"},{"type":"EVIDENCE","url":"https://github.com/user-attachments/files/22251337/poc.zip"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/behaviortree/behaviortree.cpp","events":[{"introduced":"d7073b8193ccd5296558bb92f649c28c6a7eeb14"},{"fixed":"cb6c7514efa628adb8180b58b4c9ccdebbe096e3"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"4.1"},{"last_affected":"4.1"}]},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"4.2"},{"last_affected":"4.2"}]},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"4.3"},{"last_affected":"4.3"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"4.4"},{"last_affected":"4.4"}]},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"4.5"},{"last_affected":"4.5"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"4.6"},{"last_affected":"4.6"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"range":[{"introduced":"4.7.0"},{"last_affected":"4.7.0"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"cb6c7514efa628adb8180b58b4c9ccdebbe096e3"}]}]}}],"versions":["4.1","4.2","4.3","4.4","4.5","4.6","4.7.0","4.7.2","4.7.1","4.6.2","4.6.1","4.6.0","4.5.2","4.5.1","4.5.0","4.4.3","4.4.2","4.4.1","4.4.0","4.3.8","4.3.7","4.3.6","4.3.5","4.3.4","4.3.3","4.3.1","4.3.0","4.2.1","4.2.0","4.1.1","4.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-11012.json","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["299972901820116468240995868952412301025","187230475786396314504787625581860795190","8000962959017230140626677018927894376","166785937867902317807252838411773786620","186042818810901607241236083440119949769","181244248553334472322270774723020479597","8222420829122001987243535694810890899","41117119396467970039722853641412491991","38885781141770936162979416768057436075","8000962959017230140626677018927894376","166785937867902317807252838411773786620","186042818810901607241236083440119949769","181244248553334472322270774723020479597","8222420829122001987243535694810890899"],"threshold":0.9},"id":"CVE-2025-11012-0472e87e","signature_type":"Line","signature_version":"v1","source":"https://github.com/behaviortree/behaviortree.cpp/commit/cb6c7514efa628adb8180b58b4c9ccdebbe096e3","target":{"file":"src/script_parser.cpp"}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/behaviortree/behaviortree.cpp/commit/cb6c7514efa628adb8180b58b4c9ccdebbe096e3","target":{"function":"ParseScript","file":"src/script_parser.cpp"},"deprecated":false,"digest":{"length":926,"function_hash":"86196238422372887144497918021146705617"},"id":"CVE-2025-11012-b19c5423"},{"signature_version":"v1","source":"https://github.com/behaviortree/behaviortree.cpp/commit/cb6c7514efa628adb8180b58b4c9ccdebbe096e3","target":{"file":"src/script_parser.cpp","function":"ValidateScript"},"deprecated":false,"digest":{"function_hash":"77407382039146176453379997684888407227","length":598},"id":"CVE-2025-11012-e829f998","signature_type":"Function"}],"vanir_signatures_modified":"2026-11-11T13:22:52Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"}]}