UBUNTU-CVE-2026-126082: Medium severity ubuntu/rails vulnerability

Published Nov 12, 2026
·
Updated

Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.1.4.1 and 8.0.5.2, a Rails application that processes attachments with ImageMagick may allow an unauthenticated attacker to write arbitrary files on the server and, when attachments are stored with the Disk service, to read arbitrary files readable by the application process. Those files typically include secretkeybase and credentials for external systems, which may in turn allow escalation to remote code execution or lateral movement to those systems. ImageMagick selects a coder from the content of the file it is given, and some coders act on files named inside the image rather than on the image itself. Active Storage constrained none of ImageMagick's coders, and the ImageMagick analyzer runs when a file is attached, so an attacker who can upload a crafted file may be able to invoke one. Attaching the upload is sufficient; no variant, preview, or analyze call is required. One specific attack chain has been reported, but other attack chains may exist. An application is affected when it uses ImageMagick for Active Storage image processing through config.activestorage.variantprocessor = :minimagick, runs ImageMagick under a security policy that does not already deny the involved coders, and allows uploads from untrusted users. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.

Affected Software

7 affected components
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Rails Active Storage to a version that resolves this vulnerability.

    Fixed in 8.1.4.1
  2. Upgrade

    Upgrade Rails Active Storage to a version that resolves this vulnerability.

    Fixed in 8.0.5.2

Event History

Nov 12, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are affected?

An application is affected if it uses ImageMagick for Active Storage image processing. The issue applies to versions prior to 8.1.4.1 and 8.0.5.2.

2

What access does an attacker need?

An unauthenticated attacker needs the ability to upload a crafted file and have it attached. The ImageMagick analyzer runs when the file is attached, so no variant, preview, or separate analyze call is required.

3

What is the impact when Active Storage uses the Disk service?

In addition to arbitrary file writes, an attacker may be able to read arbitrary files that the application process can read. This can include secret_key_base and credentials for external systems, potentially enabling remote code execution or lateral movement.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203