{"api_version":"1","generated_at":"2026-11-10T23:25:44+00:00","cve":"CVE-2026-126082","urls":{"html":"https://cve.report/CVE-2026-126082","api":"https://cve.report/api/cve/CVE-2026-126082.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-126082","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-126082"},"summary":{"title":"Active Storage: Possible arbitrary file write and read in Active Storage image analysis","description":"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 secret_key_base 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.active_storage.variant_processor = :mini_magick, 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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-11-10 21:19:26","updated_at":"2026-11-10 21:19:26"},"problem_types":["CWE-1188","CWE-1188 CWE-1188: Initialization of a Resource with an Insecure Default"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9","name":"https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776","name":"https://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328","name":"https://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/rails/rails/releases/tag/v8.1.4.1","name":"https://github.com/rails/rails/releases/tag/v8.1.4.1","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/rails/rails/releases/tag/v8.0.5.2","name":"https://github.com/rails/rails/releases/tag/v8.0.5.2","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-126082","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126082","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"rails","product":"rails","version":"affected >= 8.1, < 8.1.4.1","platforms":[]},{"source":"CNA","vendor":"rails","product":"rails","version":"affected < 8.0.5.2","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"rails","vendor":"rails","versions":[{"status":"affected","version":">= 8.1, < 8.1.4.1"},{"status":"affected","version":"< 8.0.5.2"}]}],"descriptions":[{"lang":"en","value":"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 secret_key_base 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.active_storage.variant_processor = :mini_magick, 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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1188","description":"CWE-1188: Initialization of a Resource with an Insecure Default","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-10T21:08:05.402Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9","tags":["x_refsource_CONFIRM"],"url":"https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9"},{"name":"https://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328","tags":["x_refsource_MISC"],"url":"https://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328"},{"name":"https://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776","tags":["x_refsource_MISC"],"url":"https://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776"},{"name":"https://github.com/rails/rails/releases/tag/v8.0.5.2","tags":["x_refsource_MISC"],"url":"https://github.com/rails/rails/releases/tag/v8.0.5.2"},{"name":"https://github.com/rails/rails/releases/tag/v8.1.4.1","tags":["x_refsource_MISC"],"url":"https://github.com/rails/rails/releases/tag/v8.1.4.1"}],"source":{"advisory":"GHSA-f3w6-w445-fwh9","discovery":"UNKNOWN"},"title":"Active Storage: Possible arbitrary file write and read in Active Storage image analysis"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-126082","datePublished":"2026-11-10T21:08:05.402Z","dateReserved":"2026-11-10T17:07:43.285Z","dateUpdated":"2026-11-10T21:08:05.402Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-10 21:19:26","lastModifiedDate":"2026-11-10 21:19:26","problem_types":["CWE-1188","CWE-1188 CWE-1188: Initialization of a Resource with an Insecure Default"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"126082","Ordinal":"1","Title":"Active Storage: Possible arbitrary file write and read in Active","CVE":"CVE-2026-126082","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"126082","Ordinal":"1","NoteData":"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 secret_key_base 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.active_storage.variant_processor = :mini_magick, 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.","Type":"Description","Title":"Active Storage: Possible arbitrary file write and read in Active"}]}}}