CVE-2026-44692: Code16/sharp Authenticated Sharp Users Can Download Vulnerability

HIGH
Advisory Identifier: GHSA-748w-hm6r-qc7v
CVSS 7.7
CWE-639
Published
Advisory Summary

CVE-2026-44692 is a HIGH (CVSS 7.7) authenticated sharp users can download vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Code16/sharp libraries in the Packagist ecosystem. The issue involves authenticated sharp users can download unrelated laravel storage objects through the generic download endpoint. Remediation is available by upgrading affected packages to version 9.22.0.

CVE-2026-44692 at a Glance

CVE Identifier CVE-2026-44692
GHSA Identifier GHSA-748w-hm6r-qc7v
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Code16/sharp
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-44692

To remediate this vulnerability, upgrade all affected Code16/sharp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

code16/sharp fixed: 9.22.0
Upgrade code16/sharp to 9.22.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for code16/sharp

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-44692, inspect your project dependencies for Code16/sharp:

inspect dependencies for code16/sharp

Analyze the terminal output to locate any version of Code16/sharp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.22.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Code16/sharp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Sharp exposes a generic download endpoint that authorizes access only to the supplied Sharp entity instance, but then reads the target storage `disk` and `path` from request parameters. Because the requested storage object is not bound to the authorized entity instance, an authenticated Sharp user who can view one valid record may use that record as an authorization anchor to download unrelated disk-relative objects from configured Laravel Storage disks. The confirmed impact is authenticated disclosure of unrelated objects from configured Laravel Storage disks. This issue does not imply arbitrary host filesystem access outside configured Laravel Storage disk roots. ### Impact An authenticated Sharp user with view access to at least one valid Sharp entity instance may be able to download unrelated files from configured Laravel Storage disks by supplying a different `disk` and `path` to the generic download endpoint. Depending on the application, exposed files may include exports, backups, invoices, internal documents, uploads belonging to other records, tenant-specific data, or operational files stored on private application disks. The attacker does not need authorization to the storage object being downloaded. They only need an authenticated Sharp session and view access to one valid entity instance that can be used as the authorization anchor. ### Attack requirements An attacker must have: - an authenticated Sharp session - view access to at least one valid Sharp entity instance The attacker does not need authorization to the storage object being downloaded. ### Affected endpoint `GET /sharp/{globalFilter}/download/{entityKey}/{instanceId?}` ### Patches After the fix, requests to the generic download endpoint without a valid signature are rejected. Modifying the `disk`, `path`, `entityKey`, or `instanceId` parameters of a Sharp-generated download URL invalidates the signature and prevents the modified request from being used to download another storage object. ### Workarounds If upgrading is not immediately possible, applications should restrict `downloads.allowed_disks` to the smallest possible set of disks required by Sharp downloads. Applications should also avoid storing sensitive unrelated files on disks reachable by Sharp’s generic download endpoint, and should add application-level controls to ensure that requested files are bound to the authorized record. Disk allowlisting reduces the reachable storage surface, but it does not fully fix the missing per-record file binding. Upgrading to a patched version is recommended. ### Resources - Laravel signed URLs documentation: https://laravel.com/docs/urls#signed-urls - CWE-639: https://cwe.mitre.org/data/definitions/639.html

CVE-2026-44692 Affected Code16/sharp Versions

1 component(s)
Fixed Versions:
9.22.0
Product / Package Ecosystem Affected Versions Fixed Version
code16/sharp
Packagist
< 9.22.0
9.22.0

References

Frequently Asked Questions

What is CVE-2026-44692?
CVE-2026-44692 is a security vulnerability in Code16/sharp involving Authenticated Sharp users can download unrelated Laravel Storage objects through the generic download endpoint under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Code16/sharp versions are affected?
Affected versions include releases prior to 9.22.0 across affected packages: code16/sharp.
What version fixes CVE-2026-44692?
Upgrading to 9.22.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is code16/sharp affected?
Yes, code16/sharp is affected in releases prior to 9.22.0. Upgrade your dependency to 9.22.0 or later.
What is the CVSS score of CVE-2026-44692?
CVE-2026-44692 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2026-44692?
CVE-2026-44692 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Packagist dependencies for CVE-2026-44692?
Run the dependency tree command: 'inspect dependencies for code16/sharp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-748w-hm6r-qc7v",
  "modified" : "2026-06-11T13:30:32Z",
  "published" : "2026-05-15T18:01:03Z",
  "aliases" : [ "CVE-2026-44692" ],
  "summary" : "Authenticated Sharp users can download unrelated Laravel Storage objects through the generic download endpoint",
  "details" : "Sharp exposes a generic download endpoint that authorizes access only to the supplied Sharp entity instance, but then reads the target storage `disk` and `path` from request parameters.\n\nBecause the requested storage object is not bound to the authorized entity instance, an authenticated Sharp user who can view one valid record may use that record as an authorization anchor to download unrelated disk-relative objects from configured Laravel Storage disks.\n\nThe confirmed impact is authenticated disclosure of unrelated objects from configured Laravel Storage disks. This issue does not imply arbitrary host filesystem access outside configured Laravel Storage disk roots.\n\n### Impact\n\nAn authenticated Sharp user with view access to at least one valid Sharp entity instance may be able to download unrelated files from configured Laravel Storage disks by supplying a different `disk` and `path` to the generic download endpoint.\n\nDepending on the application, exposed files may include exports, backups, invoices, internal documents, uploads belonging to other records, tenant-specific data, or operational files stored on private application disks.\n\nThe attacker does not need authorization to the storage object being downloaded. They only need an authenticated Sharp session and view access to one valid entity instance that can be used as the authorization anchor.\n\n### Attack requirements\n\nAn attacker must have:\n\n- an authenticated Sharp session\n- view access to at least one valid Sharp entity instance\n\nThe attacker does not need authorization to the storage object being downloaded.\n\n### Affected endpoint\n\n`GET /sharp/{globalFilter}/download/{entityKey}/{instanceId?}`\n\n### Patches\n\nAfter the fix, requests to the generic download endpoint without a valid signature are rejected. Modifying the `disk`, `path`, `entityKey`, or `instanceId` parameters of a Sharp-generated download URL invalidates the signature and prevents the modified request from being used to download another storage object.\n\n### Workarounds\n\nIf upgrading is not immediately possible, applications should restrict `downloads.allowed_disks` to the smallest possible set of disks required by Sharp downloads.\n\nApplications should also avoid storing sensitive unrelated files on disks reachable by Sharp’s generic download endpoint, and should add application-level controls to ensure that requested files are bound to the authorized record.\n\nDisk allowlisting reduces the reachable storage surface, but it does not fully fix the missing per-record file binding. Upgrading to a patched version is recommended.\n\n### Resources\n\n- Laravel signed URLs documentation: https://laravel.com/docs/urls#signed-urls\n- CWE-639: https://cwe.mitre.org/data/definitions/639.html",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "code16/sharp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.22.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/code16/sharp/security/advisories/GHSA-748w-hm6r-qc7v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44692"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/code16/sharp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/code16/sharp/releases/tag/v9.22.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-15T18:01:03Z",
    "nvd_published_at" : "2026-06-10T22:16:57Z"
  }
}