Horilla horilla-hr
Horilla: Authenticated RCE in Horilla List-View Export
Horilla is an HR and CRM software. Prior to 2.0.0, HorillaListView.export_data in horilla_views/generic/cbv/views.py accepts an authenticated user's columns POST parameter, takes field_tuple[1], interpolates it into dynamic_fn_str as Python source, and passes the generated function definition to exec(). A crafted string that remains valid under ast.literal_eval can inject Python syntax into a default argument evaluated during function definition, allowing arbitrary operating-system commands to execute with the application process privileges, including root privileges in the shipped Docker image. This issue is fixed in version 2.0.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.0.0
Fixed in 2.0.0
Mitigation
Upgrade horilla-hr to 2.0.0 or later.
References
- Vendor advisory github.com/horilla/horilla-hr/security/advisor…
- Release notes github.com/horilla/horilla-hr/releases/tag/2.0…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.