cve.bz

CVE-2026-84974 code16 Sharp: Arbitrary Class Instantiation via an API parameter

5.4 mediumFix available

Medium (5.4) in code16 sharp. Fixed in code16/sharp 10.0.0-beta.4, 9.23.0.

On this page
code16 Sharp is a Laravel-based framework for building content-management and administrative interfaces. Prior to 9.23.0, an authenticated attacker can submit an arbitrary PHP class name through the embed_key parameter to multiple embed API endpoints. The application passes the selected class to the Laravel service container, which invokes the class's __construct() method and recursively instantiates constructor dependencies, potentially causing unauthorized integrity or availability effects. The attacker cannot supply constructor parameter values or invoke an arbitrary method. This issue is fixed in version 9.23.0.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
CWE
CWE-470 Use of Externally-Controlled Input to Select Classes or Code (Reflection Injection)
OWASP Top 10
A05:2025 Injection
Published
Assigned by
GitHub_M (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • code16/sharp (Packagist): fixed in 9.23.0, 10.0.0-beta.4

Ask an AI about this CVE

Show the promptExplain CVE-2026-84974 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-84974?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-84974?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-84974 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
code16 sharp< 9.23.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h24v-f482-8cwfPackagistcode16/sharp<9.23.09.23.0
GHSA-h24v-f482-8cwfPackagistcode16/sharp>=10.0.0-beta.1 <10.0.0-beta.410.0.0-beta.4

Attack patterns (CAPEC)

  • CAPEC-138 Reflection Injection Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON