提交 #654073: Davide Faconti BehaviorTree 4.7.0 / master commit 8d47d39 NULL Pointer Dereference信息

标题Davide Faconti BehaviorTree 4.7.0 / master commit 8d47d39 NULL Pointer Dereference
描述BehaviorTree.CPP version 4.7.0 (master commit 8d47d39) is vulnerable to a null pointer dereference / invalid JSON access in the JsonExporter::fromJson() function (src/json_export.cpp). The function assumes the presence of a __type field and directly indexes into JSON objects without validating their structure. When the source parameter is a JSON array whose first element is not an object (or when the __type field is missing), the code attempts to access source[0]["__type"], resulting in undefined behavior. This leads to a segmentation fault in nlohmann::json::is_object() when dereferencing a null internal pointer.
来源⚠️ https://github.com/BehaviorTree/BehaviorTree.CPP/issues/1008
用户
 sand (UID 90194)
提交2025-09-14 10時33分 (1 年前)
管理2025-09-26 08時34分 (12 days later)
状态已接受
VulDB条目325954 [BehaviorTree 直到 4.7.0 /src/json_export.cpp JsonExporter::fromJson source 拒绝服务]
积分20

Do you need the next level of professionalism?

Upgrade your account now!