Ruby on Rails: Strong Parameters bypass in Action Pack (CVE-2026-126081) fixed in 8.0.5.2 and 8.1.4.1
CVE-2020-8164 CVE-2022-30123 CVE-2026-126081
Published 20/11/2026 23:36 · Updated 23/11/2026 19:16 (revision 3)
Timeline
3 events over 19 d
- 04/11/2026 13:44ConfirmedBSI CERT-Bund (WID)+16 d
- 20/11/2026 23:36Published on WatchtowerPro CISO+2 d 14 h
- 23/11/2026 13:51UpdatedRuby (the language) has security advisories dated 18/11/2026 for Regexp and String…
In short
The Rails advisory says CVE-2026-126081 is an incomplete fix of CVE-2020-8164. When called with a block, each_key returns the raw request-parameter hash instead of the Parameters object, so mass assignment skips the permitted check. Fixes are in Rails 8.0.5.2 and 8.1.4.1. An app is exposed only if its own code passes the return value of each_key to mass assignment. Shodan recognises at least 552,063 internet-facing Ruby servers worldwide, 65,115 of them in the EU (26/11/2026); the real number is likely higher, and how many run an affected version is not yet known.
How bad is it
High. An attacker over the internet who needs no login could set fields the application does not allow, such as an admin flag, but only if the app's code uses the flawed pattern.
Confirmed by the vendor or a CERT - no exploitation reported yet.
Severity score
The worst of 3 CVEs · CVSS 3.1 from NVD, read 29/11/2026.
What an attacker needs
- Internet access to itEnough
- A loginNot needed
- A user to clickNo
- Special settingsNo
Red helps the attacker, blue holds them back, grey is not published yet.
If it works, an attacker can
- Read the data it holds
- Change or delete that data
- Take it offline
Type: security feature bypass.
A score is the worst case for the flaw, not a verdict on any one system. How we score · ReconX customers see which of their own systems are affected.
Affected versions
- actionpack (Rails) versions >= 8.1 and < 8.1.4.1, and all versions < 8.0.5.2 according to the advisory ranges.
- Dependency scanners flag actionpack 8.0.5 and 8.1.3 as vulnerable.
- Only apps whose own code passes the return value of each_key (called with a block) to mass assignment (new, assign_attributes, update) are exposed. The advisory says Rails itself makes no such call.
Fixed in
- 8.1 branch: 8.1.4.1
- 8.0 branch: 8.0.5.2
What to do now
- Update Rails/actionpack to 8.1.4.1 (8.1 line) or 8.0.5.2 (8.0 line).
- If you cannot update yet, apply the vendor's fix commits for your branch (8.1: 8ba746e0a786458c281060823f2ccc5c5f6312ac; 8.0: 2fc8838300133931e19eed3ea6cee76a7e83f19c).
- Interim measure from the vendor: do not use the return value of each_key; call it with a block only and pass the permitted Parameters object (from .permit) to mass assignment. Interim measures reduce exposure and do not make the application safe; only the update does.
- Search your code for each_key calls with a block whose result feeds new, assign_attributes or update.
- Rails 7.2 and older: plan a move to 8.0.5.2 or 8.1.4.1 and apply the workaround meanwhile.
ReconX customers see the full notice - and their own systems
Our customers are alerted at every phase. Until a patch exists, the ReconX agent watches their servers from the inside for anomalies, and our outside view - the attacker's view - shows which systems to fix first.
In ReconX: the full analysis, 4 open questions, followed up as sources answer, all 8 sources with their dates and every revision. And technology matching: which of your systems run Ruby, at which version, fixed or not - and what each one needs.
Main sources
[CVE-2022-30123] Possible shell escape sequence injection vulnerability in Rack - Security Announcements - Ruby on Rails Discussions Vendor · [CVE-2022-30123] Possible shell escape sequence injection vulnerability in Rack - Security Announcements - Ruby on Rails Discussions Vendor · USN-9176-1: Ruby vulnerabilities Vendor