CVE-2026-126081
published high CVSS 3.1 · 7.5Action Pack: Possible Strong Parameters bypass in Parameters#each_key
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rails | — | rails>= 8.1, < 8.1.4.1 · < 8.0.5.2 | Affected | Not stated | GitHub_M |
| Debian | bookworm | rails | Advisory build | 2:6.1.7.10+dfsg-1~deb12u4 | DLA-4934-1 |
| Debian | trixie | rails | Advisory build | 2:7.2.2.2+dfsg-2~deb13u3 | DSA-6669-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rails | rails | >= 8.1, < 8.1.4.1 (affected)< 8.0.5.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-915 CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
References
5- 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
Provider assertions
2GitHub_M · cna
Action Pack: Possible Strong Parameters bypass in Parameters#each_key
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 50eff5449c42f89029ad5bddffaef2b761bfe927059b31cce567b3cec30f8fc5
- Ingested
- 14 Nov 2026, 03:15:02 UTC
- Source record
- Official CVE record