Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.8
GitLab Rails Docker images allow unauthorized file access via ImageMagick
published 19 days ago
Summary
The ActiveStorage component used in the GitLab Rails Docker images can run ImageMagick when a file is uploaded. Because no security policy blocks ImageMagick's full capabilities, an attacker could cause the system to read or write any file, such as the application's secret key. Update the images to version 8.1.4.1 or later, or apply a restrictive ImageMagick policy to stop this behavior.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Docker Hardened Images:Alpine:3.24 | docker hardened images | gitlab-rails-18 | All versions |
| Docker Hardened Images:Alpine:3.24 | docker hardened images | gitlab-rails-19 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | gitlab-rails-18 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | gitlab-rails-19 | All versions |
Original advisory text
The activestorage gem before 8.1.4.1 for Ruby on Rails, when ImageMagick attachment processing occurs, can allow server…
The activestorage gem before 8.1.4.1 for Ruby on Rails, when ImageMagick attachment processing occurs, can allow server read and write operations (e.g., reading secret_key_base) because the ImageMagick analyzer runs when a file is attached, and there is not an ImageMagick security policy to block unintended functionality.
References
- https://scout.docker.com/v/DHI-tbr4-nsur-c3zs-wkd3 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-122006 Vendor Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-122006 Vendor Advisory
- https://github.com/advisories/GHSA-f3w6-w445-fwh9 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-126082 Vendor Advisory
- https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9 Vendor Advisory
- https://github.com/rubysec/ruby-advisory-db/pull/1300 Patch
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-... Patch
- https://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776 Patch
- https://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328 Patch
- https://github.com/digitalocean/droplet-1-clicks/pull/488 Patch
- https://github.com/alan-turing-institute/cyber-threat-observatory/blob/main/repo... Patch
- https://github.com/rails/rails/releases/tag/v8.1.4.1 URL
- https://github.com/rails/rails/releases/tag/v8.0.5.2 URL
- https://access.redhat.com/security/cve/CVE-2026-122006 Vendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-122006 URL
- https://ubuntu.com/security/CVE-2026-122006 Vendor Advisory
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-122006 Vendor Advisory
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker full control (estimated)
Timeline
Published13 Nov 2026
Updated16 Nov 2026
First seen16 Nov 2026
Sources
DHI-tbr4-nsur-c3zs-wkd3 · OSV
Track software like this
Free during beta