# CVE-2020-8159: Arbitrary file write in actionpack-page_caching gem

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.38%, higher than 92% of CVEs (2026-12-01)
- Published: 2020-05-12T13:01:43.000Z
- Modified: 2026-06-17T03:25:57.750Z
- Also known as: GHSA-mg5p-95m9-rmfp
- Weaknesses: CWE-22
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/rails/actionpack-page_caching: v1.2.1
- actionpack-page_caching (RubyGems): before 1.2.1
- rubyonrails actionpack_page-caching: before 1.2.1
- debian debian_linux: 9.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://groups.google.com/forum/#%21topic/rubyonrails-security/CFRVkEytdP8>
- <https://lists.debian.org/debian-lts-announce/2021/07/msg00019.html> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-8159> (advisory)
- <https://github.com/rails/actionpack-page_caching/commit/127da70a559bed4fc573fdb4a6d498a7d5815ce2> (web)
- <https://groups.google.com/forum/#!topic/rubyonrails-security/CFRVkEytdP8> (web)

## Sources

- CVE List: [CVE-2020-8159](https://www.cve.org/CVERecord?id=CVE-2020-8159), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-mg5p-95m9-rmfp](https://github.com/advisories/GHSA-mg5p-95m9-rmfp), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-8159](https://nvd.nist.gov/vuln/detail/CVE-2020-8159), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-8159 · Whole record: https://cve.day/CVE-2020-8159.json · Rebuilt by cve.day 2026-11-25T22:57:52.376Z
