EasyCorp EasyAdminBundle
EasyAdmin custom-action dispatcher bypasses access_control on other routes
EasyAdmin is a fast and modern admin generator for Symfony applications. From 4.0.0 until 4.29.16 and 5.5.1, EasyAdmin serves all backend requests through a single dashboard route and, for custom actions (Action::linkToRoute() and MenuItem::linkToRoute()), swaps the executed controller based on the routeName query parameter on the kernel.controller event. The swap happens after Symfony's security firewall has already evaluated access_control against the original dashboard URL, and the routeName value was not validated. As a result, a path-based access_control rule protecting the target route was never evaluated, so a low-privilege backend user who can reach a single EasyAdmin URL and knows a target route's name can execute that route's controller, bypassing the path-based rule. Only path-based protections are bypassed. Routes whose controller enforces its own authorization with #[IsGranted] or denyAccessUnlessGranted() remain protected because those checks are recomputed against the swapped-in controller. This issue is fixed in versions 4.29.16 and 5.5.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.0.0, < 4.29.16
- >= 5.0.0, < 5.5.1
Fixed in 4.29.16, 5.5.1
Mitigation
Upgrade EasyAdminBundle to 4.29.16 or 5.5.1 or later.
References
- Vendor advisory github.com/EasyCorp/EasyAdminBundle/security/a…
- Patch github.com/EasyCorp/EasyAdminBundle/commit/03b…
- Patch github.com/EasyCorp/EasyAdminBundle/commit/622…
2 more
- Release notes github.com/EasyCorp/EasyAdminBundle/releases/t…
- Release notes github.com/EasyCorp/EasyAdminBundle/releases/t…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.