# CVE-2026-84974: code16/sharp: Arbitrary class instantiation through the embed\_key API parameter

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.45% (percentile 31, 2026-11-28)
- **CWE:** CWE-470
- **Aliases:** GHSA-h24v-f482-8cwf
- **Published:** 2026-11-12T18:18:44.000Z
- **Modified:** 2026-11-19T04:17:28.333Z

## Who should check

- Projects that depend on Packagist package code16/sharp (\< 9.23.0)
- Anyone running code16 sharp \< 9.23.0

## Description

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.

## Affected and fixed versions

- Packagist `code16/sharp`: affected \< 9.23.0; fixed 9.23.0, 10.0.0-beta.4 (ghsa)
- code16 sharp: \< 9.23.0 (cvelist)

## Technologies

Composer packages

## Mitigation

- Upgrade code16/sharp to one of 9.23.0, 10.0.0-beta.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-84974. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-84974.md
Affected: code16/sharp < 9.23.0
Fixed in: 9.23.0, 10.0.0-beta.4

Steps:
1. Search this machine and project for code16/sharp (Packagist), code16 sharp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-84974 being exploited?

There is no confirmed exploitation: CVE-2026-84974 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-84974?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-84974?

code16/sharp \< 9.23.0.

### Is there a fix for CVE-2026-84974?

Yes. Fixed in 9.23.0, 10.0.0-beta.4. Upgrade code16/sharp to one of 9.23.0, 10.0.0-beta.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-84974?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/code16/sharp/security/advisories/GHSA-h24v-f482-8cwf>
- patch: <https://github.com/code16/sharp/pull/750>
- patch: <https://github.com/code16/sharp/commit/dfafb44b11574e621bf0785f02c32b9866ab9923>
- other: <https://github.com/code16/sharp/releases/tag/v9.23.0>
- other: <https://github.com/code16/sharp/tree/v10.0.0-beta.4>
- other: <https://github.com/advisories/GHSA-h24v-f482-8cwf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-84974>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-h24v-f482-8cwf> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-84974> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-84974>
