File inclusion via PHP object-injection gadget chain
Published Mar 31, 2025 · Updated Apr 3, 2025
PHP object injection in affected Drupal core releases allows attackers to include arbitrary files through a PHP gadget chain. Drupal has not disclosed the classes or magic methods forming the chain, but it turns attacker-controlled deserialization into file inclusion. Exploitation requires a separate flaw that passes unsafe input to unserialize(); Drupal reports no such flaw in core, although file inclusion can be escalated to code execution.
Summary
What happened
PHP object injection in affected Drupal core releases allows attackers to include arbitrary files through a PHP gadget chain. Drupal has not disclosed the classes or magic methods forming the chain, but it turns attacker-controlled deserialization into file inclusion. Exploitation requires a separate flaw that passes unsafe input to unserialize(); Drupal reports no such flaw in core, although file inclusion can be escalated to code execution.
The record
- CVE
- CVE-2025-31674
- Published
- Mar 31, 2025
- Updated
- Apr 3, 2025
- Vendor
- OAuth.js
- Product
- Drupal core
- Classifications
- CWE-915, CAPEC-586, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 31, 2025CVE publishedPublication date reported by the CVE source.
- Apr 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=10.4.0 <10.4.3
- Affected versionversion=11.0.0 <11.0.12
- Affected versionversion=11.1.0 <11.1.3
- Affected versionversion=8.0.0 <10.3.13
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo