Skip to content
High 7.5

Action Packの脆弱性、特定の書き方で権限フラグなど未許可の属性を書き換えられるおそれ

CVE-2026-126081 First seen on SecPulse

Summary

Action Packには、ActionController::Parameters#each_keyの戻り値を一括代入に渡すと、許可していない属性を外部から設定されるおそれがある脆弱性があります。影響を受けるのは8.1.4.1より前の8.1系と8.0.5.2より前の8.0系で、8.1.4.1または8.0.5.2以降に修正版が公開されています。該当する書き方をしているかを確認し、修正版への更新を検討してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Action Packには、ActionController::Parameters#each_keyの戻り値を一括代入に渡すと、許可していない属性を外部から設定されるおそれがある脆弱性があります。影響を受けるのは8.1.4.1より前の8.1系と8.0.5.2より前の8.0系で、8.1.4.1または8.0.5.2以降に修正版が公開されています。該当する書き方をしているかを確認し、修正版への更新を検討してください。

Affected packages

PackageAffected → Fixed
railsrails —
rubygemsactionpack
< 8.0.5.2→ 8.0.5.2

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details