Summary
code16/sharp: Arbitrary class instantiation through the embed_key API parameter
Advisory details
Impact
An authenticated attacker can instantiate any class in the PHP application by using the embed_key parameter across multiple API endpoints. The instantiation is performed by the Laravel container. As a result, the __construct() method of the class is called and all constructor dependencies are resolved. The attacker cannot specify parameter values and cannot call any arbitrary method.
Patches
The problem has been patched in 9.23.0 and pre-release version 10.0.0-beta.4. An additional check was added to verify that embed_key is a class extending SharpFormEditorEmbed before any instantiation.
Workarounds
No known workarounds.
References
- https://github.com/advisories/GHSA-h24v-f482-8cwf
- https://github.com/code16/sharp/security/advisories/GHSA-h24v-f482-8cwf
- https://github.com/code16/sharp/pull/750
- https://github.com/code16/sharp/commit/dfafb44b11574e621bf0785f02c32b9866ab9923
- https://github.com/code16/sharp/releases/tag/v9.23.0
- https://github.com/code16/sharp/tree/v10.0.0-beta.4
Related vulnerabilities
All Supply chain →- HIGHCVE-2026-103026
Paymenter: Unauthenticated arbitrary method invocation in Livewire components
- HIGHCVE-2026-91115
Silverstripe Framework: RCE via i18nTextCollectorTask writer parameter
- HIGHCVE-2026-61536
Banks: Unsafe importlib.import_module of attacker-controlled Tool.import_path in CompletionExtension allows RCE
- CRITICALCVE-2026-116692
MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules
- MEDIUMCVE-2026-115886
MLflow: SSRF on unauthenticated MLflow servers via third-party scorer kwargs in the scorer invoke, register, and GenAI evaluate endpoints
- MEDIUMCVE-2026-114508
Laravel relationship inclusion can trigger unauthorized data destruction