fleetbase/core-api is vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
45
CVE Score
Medium
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
List, find, create, and update handlers in HasApiModelBehavior pass client-supplied with, expand, count, and with_count values to Eloquent's with(), load(), withCount(), or loadCount() without verifying that each name is a relation; TemplateQuery::execute() likewise forwards its stored, user-editable with value. While resolving an eager load or count, Eloquent invokes $model->newInstance()->{$name}(), so a supplied name can run any public method that requires no arguments, such as saveInstance or dispatch, causing an unintended database write or event dispatch. The fix routes these names through RequestRelations, which permits declared Eloquent relations, eligible Expandable closures, or explicitly $withable names before passing them to Eloquent.
Upgrade the fleetbase/core-api library to the patch version.
You are affected if you use a version in the vulnerable range and expose resource list, find, create, or update endpoints that accept with, expand, count, or with_count, or allow user-editable template queries to set with.
1.1.7 - 1.6.68
Fixed in 1.6.69fleetbase/core-api is vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in versions 1.1.7 - 1.6.68.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.