Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. code16/sharp
  4. ›
  5. CVE-2026-84974

CVE-2026-84974: code16/sharp: Arbitrary class instantiation through the embed_key API parameter

November 12, 2026

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.

References

  • github.com/advisories/GHSA-h24v-f482-8cwf
  • github.com/code16/sharp/commit/dfafb44b11574e621bf0785f02c32b9866ab9923
  • github.com/code16/sharp/pull/750
  • github.com/code16/sharp/releases/tag/v9.23.0
  • github.com/code16/sharp/security/advisories/GHSA-h24v-f482-8cwf
  • github.com/code16/sharp/tree/v10.0.0-beta.4
  • nvd.nist.gov/vuln/detail/CVE-2026-84974

Code Behaviors & Features

Detect and mitigate CVE-2026-84974 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 9.23.0, all versions starting from 10.0.0-beta.1 before 10.0.0-beta.4

Fixed versions

  • 9.23.0
  • 10.0.0-beta.4

Solution

Upgrade to versions 9.23.0, 10.0.0-beta.4 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Source file

packagist/code16/sharp/CVE-2026-84974.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 13 Nov 2026 00:18:02 +0000.