Description
There is a vulnerability in actionpack_page-caching gem < v1.2.1 that allows an attacker to write arbitrary files to a web server, potentially resulting in remote code execution if the attacker can write unescaped ERB to a view.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | https://github.com/rails/actionpack-page_caching | v1.2.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | ruby-actionpack-page-caching | 1.2.2-1 | — |
| Debian 9 | ruby-actionpack-page-caching | 1.0.2-4+deb9u1 | DLA-2719-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | ruby-actionpack-page-caching | 1.1.0-1ubuntu0.1~esm1 | USN-9058-1 |
| Ubuntu Pro 18.04 LTS | ruby-actionpack-page-caching | 1.0.2-4ubuntu0.18.04.1~esm1 | USN-9058-1 |
| Ubuntu Pro 16.04 LTS | ruby-actionpack-page-caching | 1.0.2-4ubuntu0.16.04.1~esm1 | USN-9058-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack-page_caching | < 1.2.1 | 1.2.1 | GHSA-mg5p-95m9-rmfp |
Advisories 2
- USN-9058-1 ruby-actionpack-page-caching vulnerability Ubuntu Security Notices (USN) · Nov 12, 2026
- DLA-2719-1 ruby-actionpack-page-caching - security update Debian Security (DSA / DLA) · Mar 9, 2026