All vulnerabilities

Packagist

CVE-2026-84974

code16/sharp: Arbitrary class instantiation through the embed_key API parameter

Severity
Medium 5.4
Published
12 Nov 2026
Last changed
12 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
9.23.0, 10.0.0-beta.4
Exploit chance
0.3% in the next 30 daysHigher than 25% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Unsafe reflection (CWE-470)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change some data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Also known as
GHSA-h24v-f482-8cwf
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

No known workarounds.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
code16/sharpPackagist · osv:Packagist:code16/sharp
  • Every version before 9.23.0
  • From 10.0.0-beta.1 before 10.0.0-beta.4

About code16/sharp

Monthly downloads (Packagist)
2,036Packagist, 24 Nov 2026
Total downloads (Packagist)
71,161Packagist, 24 Nov 2026

Vulnerabilities in code16/sharp

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for code16/sharp

References