Vulnerability
CVE-2026-126081
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.
70 advisories report this vulnerability, across 6 ecosystems.
Advisories
- CGA-29fq-wp7f-r974
- CGA-323x-5gg2-j7r3
- CGA-32cc-xf5v-5j4j
- CGA-38fp-44x3-2pq6
- CGA-42vp-fhv3-wwh5
- CGA-4f3w-262p-q7h8
- CGA-4fgg-cfpx-8c64
- CGA-4jh4-2fmx-9gvx
- CGA-4xfx-jxqx-3vc3
- CGA-588w-x8mw-qhj3
- CGA-5cxg-gmw6-m92x
- CGA-5hf7-qc9q-vc4q
- CGA-5p55-74m2-4x92
- CGA-68mj-5j3w-9h87
- CGA-6x4q-2q3h-vmpr
- CGA-77w4-cg3v-rcc2
- CGA-78g6-8g42-9p8g
- CGA-7g76-qm73-pg33
- CGA-8797-jgcc-rxqq
- CGA-8fqv-336x-wrj2
- CGA-8j2j-77w7-vv9v
- CGA-8j3r-2crq-54qx
- CGA-9p64-mcvf-xfr8
- CGA-9vmc-772w-758p
- CGA-cjj8-jxjq-xmwr
- CGA-cx26-qr9q-jccj
- CGA-f54h-q94p-g47v
- CGA-fq25-ghjm-ppq7
- CGA-fx7m-7qgm-cjmf
- CGA-ghrm-7fj9-6qq7
- CGA-gj2c-x49c-5725
- CGA-h945-fxx2-wvxh
- CGA-j32r-4vcp-259x
- CGA-j5c9-65vm-rgm7
- CGA-j7p2-6wgc-hg3x
- CGA-jc29-jpv2-wcg6
- CGA-jgr3-mq6j-88r2
- CGA-jm38-34qp-hxmf
- CGA-jwpf-33jx-99jh
- CGA-mxvr-pr7x-x354
- CGA-p8vg-5pm4-vf93
- CGA-pgp6-455f-5prv
- CGA-pp66-w7pq-3cx9
- CGA-q563-wxfw-rqrx
- CGA-q945-8j5v-33wc
- CGA-qv9r-j94c-5jpg
- CGA-rw99-rg6q-x885
- CGA-v3wf-h9q7-74hm
- CGA-v4q9-hccr-g7rj
- CGA-vcp6-p9gr-3973
- CGA-vjmx-qq6v-4jv6
- CGA-vpp8-hv7h-96mm
- CGA-vr5f-w3c2-xcxf
- CGA-w48h-6p38-6v82
- CGA-w73g-v6qp-2rhw
- CGA-w86q-8qpj-9ppq
- CGA-w8jp-gg24-rgqq
- CGA-wcjm-mxwm-6jpp
- CGA-wcxr-m5w5-fgfx
- CGA-wf32-r3q4-mjxc
- CGA-wp56-27m5-qgvj
- CGA-wqp2-wg4c-jp2v
- CGA-x24c-3phh-j54g
- CGA-xc83-52jx-jq8v
- CGA-xwj4-86fx-cg9c
- CGA-xx8v-xjwc-v9mf
-
DEBIAN-CVE-2026-126081
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…
-
GHSA-wm3x-v3qw-4jh3
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key
-
SUSEVEX-CVE-2026-126081
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…
-
UBUNTU-CVE-2026-126081
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…
References
- 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
- https://github.com/rails/rails/security/advisories/GHSA-wm3x-v3qw-4jh3