CVE-2026-126081Action Pack: Possible Strong Parameters bypass in Parameters#each_key
Action Pack is a framework for handling and responding to web requests. Prior to 8.1.4.1 and 8.0.5.2, ActionController::Parameters#each_key delegates to the internal ActiveSupport::HashWithIndifferentAccess that holds the request parameters, so when called with a block it returns that hash instead of the Parameters instance. The hash does not respond to permitted?, so Active Model mass assignment (new, assign_attributes, update) accepts it without raising ActiveModel::ForbiddenAttributesError. An application that passes the return value of each_key to mass assignment could allow a remote, unauthenticated attacker to set attributes that the application does not permit, such as an authorization flag. This is an incomplete fix of CVE-2020-8164, which made each, each_pair and each_value return the Parameters instance but left each_key delegated. An application is affected if it passes the return value of ActionController::Parameters#each_key, called with a block, to mass assignment. Rails itself makes no such call. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
What to do
Fixed builds are available from Debian, RubyGems: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rails | Fix pending | UBUNTU-CVE-2026-126081 | |
| Ubuntu 26.04 | rails | Under investigation | UBUNTU-CVE-2026-126081 | |
| Ubuntu 24.04 | rails | Under investigation | UBUNTU-CVE-2026-126081 | |
| Ubuntu 22.04 | rails | Fix pending | UBUNTU-CVE-2026-126081 | |
| Ubuntu 20.04 | rails | Fix pending | UBUNTU-CVE-2026-126081 | |
| Ubuntu 18.04 | rails | Fix pending | UBUNTU-CVE-2026-126081 | |
| Ubuntu 16.04 | rails | Fix pending | UBUNTU-CVE-2026-126081 | |
| Debian 14 | rails | Fixed | 2:7.2.4+dfsg-3 | DEBIAN-CVE-2026-126081 |
| Debian 13 | rails | Fix pending | DEBIAN-CVE-2026-126081 | |
| Debian 12 | rails | Fixed | 2:6.1.7.10+dfsg-1~deb12u4 | DEBIAN-CVE-2026-126081 |
| RubyGems library | actionpack | Fixed | 8.1.4.1 | GHSA-wm3x-v3qw-4jh3 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rails: affected: >= 8.1, < 8.1.4.1, < 8.0.5.2
References
- https://github.com/rails/rails/security/advisories/GHSA-wm3x-v3qw-4jh3
- https://github.com/rails/rails/commit/2fc8838300133931e19eed3ea6cee76a7e83f19c
- https://github.com/rails/rails/commit/8ba746e0a786458c281060823f2ccc5c5f6312ac
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.