Repository navigation
1.x-4.0.2
Security release. See SA-CONTRIB-2026-279 / CVE-2026-118574 (Drupal s3fs 8.x-3.12, released the same day). A Backdrop SA will follow on backdropcms.org.
Description
S3 File System (s3fs) provides an additional file system to your Backdrop site that stores files in Amazon's Simple Storage Service (S3) storage.
The module doesn't sufficiently isolate upload context between separate object (file) operations in the same request, resulting in the potential for objects to be uploaded with incorrect access control list (ACL) entries or corruption through incorrect operation metadata.
This can be triggered by normal file operations, such as uploads, image style derivatives and bee s3fs-copy-local.
Some vectors are mitigated by:
- Not enabling "Use S3 for private:// files", or (1.x-4.x only) only enabling it with "Don't set ACLs on uploaded objects".
- The site does not implement
hook_s3fs_upload_params_alter().
If both points above have always been true all currently known vectors are mitigated.
Changes
stream_flush()andrename()no longer write per-file S3 parameters (ACL, Cache-Control, SSE, grants,hook_s3fs_upload_params_alter()values) into PHP's shared default stream context. Each operation now uses its own context, andrename()takes the ACL from the destination scheme. (#27)- Regression tests added.
Recommended actions
- Upgrade to s3fs 1.x-4.0.2.
- If you have used "Use S3 for private:// files" with ACLs enabled, audit objects under
s3fs-private/for public-read grants and review S3 bucket access logs if available. - If you implement
hook_s3fs_upload_params_alter(), verify your customizations apply only to the intended objects.
Upgrade notes
- No schema or config changes — safe to update.
Credits
- Reported by Ben Wheeler (@bennybobw).
- Fixed by Justin Keiser (@keiserjb), with Conrad Lara (cmlara), maintainer of the Drupal s3fs module.
- Coordinated by the Backdrop Security Team (@jenlampton, @quicksketch) and the Drupal Security Team: Swan Kalata (akalata), Greg Knaddison (greggles), and Juraj Nemec (poker10).