Summary
rConfig's Laravel Horizon queue can deserialize attacker-controlled jobs without restricting which classes may be instantiated. An unauthenticated network attacker who can reach the unauthenticated Redis queue may execute commands as the queue worker; in some deployments, an authenticated attacker may be able to submit a job through the application instead.
Affected context
The issue affects rConfig Core deployments before 8.2.19 and rConfig Pro deployments before 8.4.1 when the Laravel Horizon queue processes crafted serialized jobs without class restrictions. Direct access to Redis creates an unauthenticated network attack path; where Redis is not directly reachable, an authenticated application user may be able to reach the queue through device-target configuration. Resulting access is limited initially to the queue worker's privileges, though exposed credentials or writable web-served storage may increase the consequences.
Exploit preconditions
- Attack surface: The Redis-backed Laravel Horizon queue, or an application feature that can submit work to it.
- Required access: No authentication may be needed if an attacker can reach an unauthenticated Redis instance. If Redis is not directly reachable, application authentication and access to the relevant device-target configuration may be required.
- Trigger point: The queue worker processes a serialized job through Laravel's
CallQueuedHandler. - Why exploitation is possible: The handler unserializes job data without class restrictions, allowing attacker-controlled job behavior to run in the worker context.
Why this happens
The vulnerability is caused by deserializing untrusted queue data without restricting the classes that can be instantiated. Laravel's queue handler accepts serialized job content, enabling abuse of an existing job class to invoke attacker-controlled Artisan commands. This is CWE-502: Deserialization of Untrusted Data: untrusted serialized input is treated as trusted object state and behavior.
Potential impact
- Attackers may execute PHP or operating system commands with the queue worker's privileges.
- They could write a persistent web shell to web-served storage if the worker can write to that location.
- They may access database credentials, stored device credentials, or API tokens available to the application.
- Compromised credentials or worker access could enable further access to application data or connected systems.
General mitigation guidance
Defensive patterns focus on preventing untrusted parties from submitting executable serialized jobs and limiting the consequences if queue data is compromised.
- Use queue formats and deserialization mechanisms that do not instantiate arbitrary classes; restrict accepted job types to an explicit allowlist.
- Require authentication and network-level access controls for Redis and other queue services.
- Validate and authorize application features that create queue jobs, including device-target configuration.
- Keep queue workers least-privileged, limit their filesystem write access, and avoid serving worker-writable directories as executable content.
- Reduce secrets available to workers and rotate credentials if exposure is suspected.
How teams detect issues like this
- Review queue handlers and dependencies for deserialization of externally controllable data, especially unrestricted PHP object unserialization.
- Use static analysis to flag unsafe deserialization calls and queue payloads that can select arbitrary classes.
- Inspect Redis exposure, authentication, network policies, and application routes or settings that can enqueue jobs.
- Monitor for unusual Artisan or operating-system command execution by queue workers, unexpected writes to web-served storage, and anomalous access to secrets.
- Enforce policies that require authenticated, restricted queue access and approved job types; automated code review can help identify risky patterns.

