CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
Also known as: Mass Assignment, AutoBinding, PHP Object Injection
The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.
Last updated
Overview
If the object contains attributes that were only intended for internal use, then their unexpected modification could lead to a vulnerability. This weakness is sometimes known by the language-specific mechanisms that make it possible, such as mass assignment, autobinding, or object injection.
Real-world CVEs
112 recorded CVEs are caused by CWE-915 (Improperly Controlled Modification of Dynamically-Determined Object Attributes). The highest-severity and most recent are shown first. 80 new CWE-915 CVEs have been recorded so far in 2026 (12 in 2025).
- CVE-2026-50160
Mass Assignment via Onboarding Endpoint Allows Unauthenticated JWT_SECRET Overwrite
Critical · CVSS 10.0 · EPSS 76th2026-07-01 - CVE-2026-33453
Apache Camel: CoAP URI Query Parameter to Exchange Header Injection in camel-coap Allows Single-Packet Pre-Auth Remote Code Execution
Critical · CVSS 10.0 · EPSS 93th2026-04-27 - CVE-2025-58367
DeepDiff is vulnerable to DoS and Remote Code Execution via Delta class pollution
Critical · CVSS 10.0 · EPSS 64th2025-09-05 - CVE-2020-11066Critical · CVSS 10.0 · EPSS 72th2020-05-13
- CVE-2026-12535
Formatter Field - Critical - PHP object injection - SA-CONTRIB-2026-048
Critical · CVSS 9.8 · EPSS 45th2026-07-10 - CVE-2026-9726
Drupal AlternativeCommerce (Basket) - Highly critical - Arbitrary PHP code execution - SA-CONTRIB-2026-038
Critical · CVSS 9.8 · EPSS 45th2026-07-10 - CVE-2026-41267
Flowise: Improper Mass Assignment in Account Registration Enables Unauthorized Organization Association
Critical · CVSS 9.8 · EPSS 26th2026-04-23 - CVE-2026-27953
ormar has a Pydantic Validation Bypass via Kwargs Injection in Model Constructor
Critical · CVSS 9.8 · EPSS 66th2026-03-19 - CVE-2024-5452
RCE via Property/Class Pollution in lightning-ai/pytorch-lightning
Critical · CVSS 9.8 · EPSS 98th2024-06-06 - CVE-2022-43441Critical · CVSS 9.8 · EPSS 83th2023-03-16
- CVE-2023-0574Critical · CVSS 9.8 · EPSS 48th2023-02-09
- CVE-2022-31106Critical · CVSS 9.8 · EPSS 61th2022-06-28
Showing 12 of 112 recorded CWE-915 CVEs. Track new ones as they are published and get AI-written analysis and fixes.
Monitor CWE-915 vulnerabilitiesCommon consequences
What can happen when CWE-915 is exploited.
Modify Application Data
Affects: Integrity
An attacker could modify sensitive data or program variables.
Execute Unauthorized Code or Commands
Affects: Integrity
Varies by Context, Alter Execution Logic
Affects: Other, Integrity
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Languages
How to prevent it
Practical mitigations for CWE-915, grouped by where in the lifecycle they apply.
If available, use features of the language or framework that allow specification of allowlists of attributes or fields that are allowed to be modified. If possible, prefer allowlists over denylists.
For applications written with Ruby on Rails, use the attr_accessible (allowlist) or attr_protected (denylist) macros in each class that may be used in mass assignment.
If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
For any externally-influenced input, check the input against an allowlist of internal object attributes or fields that are allowed to be modified.
Refactor the code so that object attributes or fields do not need to be dynamically identified, and only expose getter/setter functionality for the intended attributes.
How to detect it
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Effectiveness: High
Code examples
Illustrative examples from MITRE showing how the weakness appears in code.
This function sets object attributes based on a dot-separated path.
Vulnerable example
function setValueByPath (object, path, value) {Vulnerable example
setValueByPath({}, "__proto__.isAdmin", true)Safe example
function setValueByPath (object, path, value) {Illustrative examples
Real CVEs that MITRE cites as examples of this weakness.
- CVE-2024-3283 — Application for using LLMs allows modification of a sensitive variable using mass assignment.
- CVE-2012-2054 — Mass assignment allows modification of arbitrary attributes using modified URL.
- CVE-2012-2055 — Source version control product allows modification of trusted key using mass assignment.
- CVE-2008-7310 — Attackers can bypass payment step in e-commerce product.
- CVE-2013-1465 — Use of PHP unserialize function on untrusted input allows attacker to modify application configuration.
- CVE-2012-3527 — Use of PHP unserialize function on untrusted input in content management system might allow code execution.
- CVE-2012-0911 — Use of PHP unserialize function on untrusted input in content management system allows code execution using a crafted cookie value.
- CVE-2012-0911 — Content management system written in PHP allows unserialize of arbitrary objects, possibly allowing code execution.
- CVE-2011-4962 — Content management system written in PHP allows code execution through page comments.
- CVE-2009-4137 — Use of PHP unserialize function on cookie value allows remote code execution or upload of arbitrary files.
- CVE-2007-5741 — Content management system written in Python interprets untrusted data as pickles, allowing code execution.
- CVE-2011-2520 — Python script allows local users to execute code via pickled data.
- CVE-2005-2875 — Python script allows remote attackers to execute arbitrary code using pickled objects.
- CVE-2013-0277 — Ruby on Rails allows deserialization of untrusted YAML to execute arbitrary code.
- CVE-2011-2894 — Spring framework allows deserialization of objects from untrusted sources to execute arbitrary code.
- CVE-2012-1833 — Grails allows binding of arbitrary parameters to modify arbitrary object properties.
- CVE-2010-3258 — Incorrect deserialization in web browser allows escaping the sandbox.
- CVE-2008-1013 — Media library allows deserialization of objects by untrusted Java applets, leading to arbitrary code execution.
Terminology & mappings
Alternate terms
- Mass Assignment
- "Mass assignment" is the name of a feature in Ruby on Rails that allows simultaneous modification of multiple object attributes.
- AutoBinding
- The "Autobinding" term is used in frameworks such as Spring MVC and ASP.NET MVC.
- PHP Object Injection
- Some PHP application researchers use this term for attacking unsafe use of the unserialize() function, but it is also used for CWE-502.
Frequently asked questions
Common questions about CWE-915.
- What is CWE-915?
- The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.
- What CVEs are caused by CWE-915?
- 112 recorded CVEs are attributed to CWE-915, including CVE-2026-50160, CVE-2026-33453, CVE-2025-58367.
- How do you prevent CWE-915?
- If available, use features of the language or framework that allow specification of allowlists of attributes or fields that are allowed to be modified. If possible, prefer allowlists over denylists.
- How is CWE-915 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-915?
- Exploiting CWE-915 can lead to: Modify Application Data, Execute Unauthorized Code or Commands, Varies by Context, Alter Execution Logic.
- Is CWE-915 actively exploited?
- 112 recorded CVEs are caused by CWE-915; none are currently in CISA's KEV catalog of actively exploited flaws.
References
- MITRE CWE definition (CWE-915) (opens in a new tab)
- CWE-915 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.
Stay ahead of CWE-915
Get alerted the moment a new CWE-915 vulnerability affects your stack, with AI-written analysis, severity context, and remediation guidance.