File Upload Vulnerabilities in Active Storage
CVE-2026-126082

9.8CRITICAL

Key Information:

Vendor

Rails

Status
Vendor
CVE Published:
10 November 2026

Key facts: CVE-2026-126082 is a critical severity (CVSS 9.8) vulnerability in rails. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 0.8%, the estimated probability of exploitation in the next 30 days. Fixed in rails 8.1, 8.1.4.1, 8.0.5.2.

What is CVE-2026-126082?

CVE-2026-126082 is a vulnerability found within the Active Storage component of the Rails web application framework, which facilitates the uploading and referencing of files in cloud services. This issue arises in versions prior to 8.1.4.1 and 8.0.5.2, specifically affecting applications that use ImageMagick for processing image attachments. The vulnerability allows unauthenticated attackers to potentially write arbitrary files on the server and, when attachments are stored using the Disk service, to read sensitive files that are accessible by the application process. These files often include crucial credentials such as the secret_key_base, leading to possible unauthorized access or control over external systems. The security flaw stems from how ImageMagick processes file input, permitting crafted files that exploit these external coders, which further enables attackers to execute complex attack chains.

Potential Impact of CVE-2026-126082

  1. Unauthorized File Access: Attackers can leverage this vulnerability to gain access to sensitive files within the application container, including critical configuration files that can expose system credentials or secrets, significantly compromising the confidentiality of sensitive data.

  2. Remote Code Execution: By exploiting the ability to write arbitrary files, attackers can escalate their access to ultimately achieve remote code execution on the server, leading to full control of the affected system and its environment, allowing for further malicious activities.

  3. Lateral Movement: Compromised credentials and access to sensitive configurations may enable attackers to further infiltrate connected systems and services, facilitating lateral movement within an organization’s network, which can result in broader security breaches and potentially severe operational disruptions.

Affected Version(s)

rails >= 8.1, < 8.1.4.1 < 8.1, 8.1.4.1

rails < 8.0.5.2 < 8.0.5.2

References

  • CVE-2026-66066: Active Storage Vulnerability in Rails Affects Image Upload Security(CRITICAL)
Browse all analysed vulnerabilities ›

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.