Skip to main content

Sharp for Laravel EUVDEUVD-2026-127133

| CVE-2026-84974 MEDIUM
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-11-12 https://github.com/code16/sharp GHSA-h24v-f482-8cwf
5.4
CVSS 3.1 · Vendor: https://github.com/code16/sharp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Sharp admin panel
  2. Exploit
    Call embed API with malicious embed_key
  3. Execution
    Laravel container instantiates arbitrary class
  4. Impact
    Constructor side effects alter integrity/availability

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
Exploitation Conditions

Requires an authenticated session on the Sharp admin panel (CVSS PR:L); the attacker then supplies the embed_key parameter across the embed API endpoints (e.g. code16.sharp.api.embed.instance.form.show/update) with a dot-delimited class name that Laravel resolves and instantiates. Exploitation is bounded by three limits: valid back-office authentication is mandatory, the attacker cannot control constructor parameter values or call arbitrary methods, and impact exists only when a resolvable class's __construct() has meaningful side effects. There is no default-config unauthenticated path. No workarounds exist per the vendor; upgrading to 9.23.0 or 10.0.0-beta.4 is the only fix.

Impact

This is a genuine but mid-tier issue, not a top-priority emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L, base 5.4 Medium) requires the attacker to already hold valid authenticated access to the Sharp admin panel (PR:L), which materially limits the exploit population to users who can reach and log into the back office. No EPSS score was supplied, and the vulnerability is NOT in CISA KEV, so there is no evidence of active exploitation. The exploitation status is best described as no public exploit identified at time of analysis - the only code references provided (PR #750 and commit dfafb44) are the vendor fix, not working exploit code. The vendor-assigned impacts are limited (C:N, I:L, A:L) and are consistent with the described mechanism: CWE-470 unsafe reflection where the attacker controls which class Laravel instantiates but cannot pass constructor arguments, read return values, or call arbitrary methods, so impact is confined to whatever side effects a class's __construct() produces. Note a signal tension: the input carries an 'Information Disclosure' tag, yet the CVSS vector sets C:N, so confidentiality impact is not actually claimed by the supplied metrics - treat the information-disclosure framing as unverified. The vuln.today decision label is 'this_month', which aligns with a patch-on-normal-cadence posture rather than act-now urgency.

Exploit ScenarioDerived

An attacker who already holds an authenticated Sharp back-office session sends a crafted request to one of the embed API endpoints with the embed_key parameter set to a dot-delimited fully-qualified class name (e.g. App.Models.User), causing the Laravel container to instantiate that arbitrary class and run its constructor with auto-resolved dependencies. Because the attacker cannot supply constructor arguments or invoke methods, real impact depends on exploitable side effects in a reachable class's __construct(); no public exploit code was identified, and the CVSS complexity is low (AC:L) once authenticated.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 12, 2026

Authenticated users of the code16/sharp back-office framework can force the Laravel service container to instantiate an arbitrary application class by supplying a dot-delimited class name in the embed_key parameter on the embed API endpoints, causing that class's __construct() method to run and resolve its dependencies. The attacker cannot set constructor arguments or invoke methods afterwards, so the practical impact is limited to constructor side effects, which is reflected in the assessed CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L score of 5.4. The flaw affects composer/code16/sharp versions below 9.23.0 and 10.0.0-beta.1 through 10.0.0-beta.4, is fixed in 9.23.0 and 10.0.0-beta.4, and has no known workarounds; no public exploit or confirmed active exploitation was identified at time of analysis.

RemediationAI

Upgrade the code16/sharp dependency to 9.23.0 or later on the 9.x line, or to 10.0.0-beta.4 or later if you are tracking the 10.0.0 pre-releases; the vendor states this is the only fix, since the patch (PR https://github.com/code16/sharp/pull/750, commit https://github.com/code16/sharp/commit/dfafb44b11574e621bf0785f02c32b9866ab9923) adds an is_a check requiring embed_key to resolve to a class extending SharpFormEditorEmbed before the container instantiates it. The advisory explicitly notes that no known workarounds exist, so if upgrading is temporarily blocked the only practical containment is to restrict access, not to reconfigure Sharp: restrict or disable the embed API routes (for example by removing them from the route registration or fronting them with middleware that denies untrusted roles) and tighten back-office authentication and role assignment, since exploitation requires a valid authenticated session (CVSS PR:L) - at the cost of breaking embed form functionality for legitimate users. Applying the is_a guard as a local patch to the HandlesEmbed trait mirrors the upstream fix and should be tested against custom embed classes that may not extend SharpFormEditorEmbed before deployment. Advisory references: https://github.com/code16/sharp/security/advisories/GHSA-h24v-f482-8cwf and https://github.com/advisories/GHSA-h24v-f482-8cwf.

Affected VersionsENISA

sharp < 9.23.0

Affected Packages

composer code16/sharp fix: 9.23.0, 10.0.0-beta.4
euvd sharp fix: 9.23.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Sharp is a Laravel-based admin panel framework distributed as the Composer package code16/sharp. The embed feature lets form fields render custom embed classes, and the API controllers behind routes such as code16.sharp.api.embed.instance.form.show and .update accepted the client-supplied embed_key, converted dots to namespace separators, and passed the resulting string straight to Laravel's app() container helper. That is CWE-470 (use of externally-controlled input to select classes or code, i.e. unsafe reflection): the container resolves and constructs whatever class name it receives, running __construct() and recursively resolving that constructor's type-hinted dependencies. The attack surface is bounded by the container API itself - no constructor arguments can be supplied and no post-construction methods can be invoked - so the exposure comes from side effects inside constructors of classes that happen to be autoloadable in the host application. The upstream fix (PR #750, commit dfafb44b11574e621bf0785f02c32b9866ab9923) inserts an is_a($embedClass, SharpFormEditorEmbed::class, true) guard that rejects any class not extending the embed base class, and adds tests asserting that a non-embed class such as the fixture User model now throws.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/code16/sharp) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 5.4 MEDIUM

Network-reachable API with low complexity but mandatory authenticated access (PR:L); no confidentiality since the attacker cannot read output, with limited integrity/availability from constructor side effects only.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/code16/sharp).

CVSS VectorVendor: https://github.com/code16/sharp

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 62% exploitable
Prevalence
Low
niche open-source Laravel content/admin panel framework, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy