Vulnerability DatabaseGHSA-qjrw-7726-v758

GHSA-qjrw-7726-v758: 
PHP vulnerability analysis and mitigation

Impact

The fix for GHSA-4qrp-9h7g-2ppj protects existing upload values sent back by the client with a server-generated path_signature (HMAC of disk and path). The embed form endpoints could be used as a signing oracle for this signature. ApiEmbedsFormController::show() (POST .../embeds/{embedKey}/{entityKey}/form/init) only checks the entity / view ability on the entityKey of the route, then passes the raw request body through the embed transformers and applyFormatters():

  • UploadFormatter::toFront() adds a valid path_signature to any {disk, path} value without one;
  • when the embed uses the documented SharpUploadModelFormAttributeTransformer::dynamicInstance() transformer, the response also contains a signed download_url (and large_thumbnail URL) for that {disk, path};
  • upload values inside editor fields of the embed (<x-sharp-image file="..."> / <x-sharp-file file="..."> in the slot, or upload attributes of nested embeds) are transformed the same way.

ApiEmbedsFormController::update() (POST .../embeds/{embedKey}/{entityKey}/form, create / update ability) behaved the same way through the embed's transformDataForTemplate(). The embed class is resolved from the URL and not bound to the form the caller is editing, so any embed with an upload field can be used under any entity the caller can view. As a result, an authenticated Sharp user with only a view permission on any entity could:

  • read any file reachable on any configured storage disk (only restricted by downloads.allowed_disks), directly through the signed download_url returned by the endpoint, or by replaying the minted path_signature on an upload field of a record they can update, then downloading it;
  • with the transformed flag of an image upload field configured to transform the original file, overwrite an arbitrary image with a transformed version of itself. Upload attributes of embed tags injected directly in the editor text, and files referenced in embed editor slots, were also persisted without signature check when a form was saved, and signed back when the form was rendered.

Patches

  • Embed data sent to the embed form endpoints, and editor content submitted with a form (embed attributes, files in embed editor fields), must now only reference existing files carrying a valid path_signature; otherwise a validation error is returned. Newly uploaded files (uploaded: true) are only referenced by their temporary name.
  • Embed upload values are signed by the server when the form is rendered from stored content and after an embed update, so that legitimate round-trips keep working without changes in applications.
  • UploadFormatter::toFront() no longer signs values flagged as uploaded.

Workarounds

No workaround short of upgrading. Restricting downloads.allowed_disks (configureDownloads(allowedDisks: [...])) to the disks actually used for uploads limits the reachable files.

References

  • src/Http/Controllers/Api/Embeds/ApiEmbedsFormController.php
  • src/Form/Fields/Formatters/UploadFormatter.php (toFront)
  • src/Form/Eloquent/Uploads/Transformers/SharpUploadModelFormAttributeTransformer.php (dynamicInstance)
  • src/Utils/Fields/Formatters/FormatsEditorEmbeds.php, src/Form/Fields/Formatters/EditorEmbedsFormatter.php
  • Bypasses: GHSA-4qrp-9h7g-2ppj

Source: NVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-r66h-vhqv-h27fHIGH8.3
  • PHP logoPHP
  • bubka/2fauth
NoYesNov 23, 2026
GHSA-qjrw-7726-v758HIGH7.1
  • PHP logoPHP
  • code16/sharp
NoYesNov 23, 2026
GHSA-835v-w4x6-rh9jMEDIUM6.5
  • PHP logoPHP
  • bubka/2fauth
NoYesNov 23, 2026
GHSA-c4w6-v59v-38v5LOWN/A
  • PHP logoPHP
  • yiisoft/validator
NoYesNov 23, 2026
GHSA-2gm6-xjf3-cqmmHIGHN/A
  • PHP logoPHP
  • exceedone/exment
NoYesNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management