Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. winter/wn-backend-module
  4. ›
  5. CVE-2026-54256

CVE-2026-54256: Winter: Authenticated IDOR in backend FileUpload widget allows cross-user access to attachment metadata

August 20, 2026

The backend FileUpload form widget trusted an attacker-controlled file_id POST parameter when resolving the attachment it operates on. The lookup (FileUpload::getFileRecord()) resolved the posted id against the global system_files table without verifying that the file belonged to the widget’s own relation, parent record, or deferred-binding session.

Any authenticated backend user who can reach a form containing a fileupload field — including the built-in My Account avatar field, which requires no specific backend permission — could therefore target a System\Models\File record belonging to another user or record and:

  • modify its title and description via onSaveAttachmentConfig, and
  • change its sort_order via onSortAttachments (which passed posted ids straight to setSortableOrder(), an unscoped UPDATE ... WHERE id = ?).

The same unscoped lookup is reached by onLoadAttachmentConfig, onSaveAttachmentConfig, and onRemoveAttachment. Because all attachments share the single System\Models\File model and system_files table, an attacker was not limited to other users’ avatars — any attachment on any model could be referenced by id. Attachment ids are sequential integers and are easily enumerated.

The confirmed impact is unauthorized integrity modification of arbitrary attachment metadata and ordering.

CSRF tokens are still verified on all POST requests, so an attacker must be authenticated to the backend with a valid session. To exploit this issue an attacker needs a backend account with any level of access.

References

  • github.com/advisories/GHSA-3277-h8g9-qj5f
  • github.com/wintercms/winter/commit/9cb0ae5f9d837db141ab111c6a7de8eed9603d25
  • github.com/wintercms/winter/releases/tag/v1.2.13
  • github.com/wintercms/winter/security/advisories/GHSA-3277-h8g9-qj5f
  • github.com/wintercms/winter/security/advisories/GHSA-qq9m-vfv4-pj5w
  • nvd.nist.gov/vuln/detail/CVE-2026-54256

Code Behaviors & Features

Detect and mitigate CVE-2026-54256 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.13

Fixed versions

  • 1.2.13

Solution

Upgrade to version 1.2.13 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control
  • CWE-639: Authorization Bypass Through User-Controlled Key

Source file

packagist/winter/wn-backend-module/CVE-2026-54256.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:19:25 +0000.