Executive brief
Laravel Backpack CRUD is a package that provides an admin interface builder for managing database records. The vulnerability allows an authenticated admin user with edit permissions to an admin form to reassign, detach, or delete related database records outside their intended authorization boundary—such as records belonging to other users or tenants—by manipulating relationship fields during form submission. This could lead to unauthorized data modification and cross-tenant data leakage in multi-tenant applications.
Technical details
The vulnerability is a missing authorization check (CWE-862) in the attachManyRelation logic when processing HasMany and MorphMany relationship fields. During form submission, Backpack updates related model records based on submitted primary keys without consistently filtering those updates through the relation's query scope, ownership rules, or developer-defined constraints. An authenticated admin user with edit access to a CRUD form can craft a request to attach or detach child records that should not be modifiable by that user—for example, records owned by another user or tenant. The vulnerability requires an authenticated admin account and edit access to an affected form; no user interaction is needed once the attacker has access. Patches are available in versions 6.8.15 and 7.0.47, which scope relationship operations to only affect records valid for the current parent model and relation context.
Affected products
- Laravel Backpack CRUD 6.0.0 to 6.8.14, 7.0.0 to 7.0.46
Timeline
- 2026-06-30: disclosed: Initial disclosure to GitHub Advisory Database
- 2026-08-20: advisory: Published to GitHub Advisory Database
- 2026-08-20: patched: Patched in versions 6.8.15 and 7.0.47
References
- https://api.github.com/users/iaohkut-from-NightWolf-Team
- https://github.com/iaohkut-from-NightWolf-Team
- https://api.github.com/users/iaohkut-from-NightWolf-Team/gists%7B/gist_id%7D
- https://api.github.com/users/iaohkut-from-NightWolf-Team/repos
- https://avatars.githubusercontent.com/u/286391906?v=4
- https://api.github.com/users/iaohkut-from-NightWolf-Team/events%7B/privacy%7D