Description
The expandArguments function in the database abstraction API in Drupal core 7.x before 7.32 does not properly construct prepared statements, which allows remote attackers to conduct SQL injection attacks via an array containing crafted keys.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | drupal7 | 7.14-2+deb7u7 | DSA-3051-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | drupal7 | 7.26-1ubuntu0.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Drupal HTTP Parameter Key/Value SQL Injection
exploit/multi/http/drupal_drupageddon
Exploit-DB 5
- Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Remote Code Execution) EDB-35150 · webapps · Nov 3, 2014 · verified
- Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Admin Session) EDB-44355 · webapps · Nov 3, 2014
- Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Add Admin User) EDB-34992 · webapps · Oct 17, 2014 · verified
- Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (PoC) (Reset Password) (2) EDB-34993 · webapps · Oct 17, 2014 · verified
- Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (PoC) (Reset Password) (1) EDB-34984 · webapps · Oct 16, 2014 · verified
GitHub 7 repositories
-
Neldeborg/Drupalgeddon-Python3 ★ 3 · Jan 6, 2025
An rewritten POC on the CVE-2014-3704
-
joaomorenorf/CVE-2014-3704 ★ 1 · Feb 2, 2025
This code is taken from "Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Add Admin User)" and was converted to Python 3 to suit the exercise in Academy for Module "Attacking Commoon Applications" a…
-
happynote3966/CVE-2014-3704 ★ 1 · Jul 11, 2018
-
CyberCTF/vulhub-drupal-cve-2014-3704 ★ 0 · Oct 8, 2026
Vulhub drupal/CVE-2014-3704: Drupal 7.31 Drupalgeddon SQL Injection (CVE-2014-3704), run with Isoloom
-
adfortunato/metasploitable3-pentest-writeup ★ 0 · Sep 13, 2026
Full home-lab penetration test of Rapid7's Metasploitable3 (Ubuntu 14.04) from Parrot OS. Covers recon, Drupalgeddon (CVE-2014-3704) RCE, SSH credential reuse, privilege escalation to root, and rever…
-
fbm31/Audit-BlackBox-Web-to-Root ★ 0 · Dec 31, 2025
Audit de sécurité Black Box d'un serveur Drupal 7. Démonstration d'une Kill Chain complète : Injection SQL (CVE-2014-3704) ➔ RCE ➔ Reverse Shell ➔ Escalade vers Root (SUID). Ce dépôt contient le rapp…
-
AleDiBen/Drupalgeddon ★ 0 · Oct 18, 2022
CVE-2014-3704 aka Drupalgeddon - Form-Cache Injection Method
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Drupal SQL Injection http/cves/2014/CVE-2014-3704.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 1
- DSA-3051-1 drupal7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://www.drupal.org/SA-CORE-2014-005
- 20141016 Advisory 01/2014: Drupal7 - pre Auth SQL Injection Vulnerability mailing-list
- 20141015 Advisory 01/2014: Drupal7 - pre Auth SQL Injection Vulnerability mailing-list
- https://www.sektioneins.de/en/advisories/advisory-012014-drupal-pre-auth-sql-injection-vulnerability.html
- 34984 exploit
- 35150 exploit
- [oss-security] 20141015 Advisory 01/2014: Drupal7 - pre Auth SQL Injection Vulnerability mailing-list
- 59972 third-party-advisory
- http://packetstormsecurity.com/files/128741/Drupal-HTTP-Parameter-Key-Value-SQL-Injection.html
- 34992 exploit
- DSA-3051 vendor-advisory
- 70595 vdb-entry
- 34993 exploit
- http://packetstormsecurity.com/files/128721/Drupal-7.31-SQL-Injection.html
- 113371 vdb-entry
- https://www.sektioneins.de/en/blog/14-11-03-drupal-sql-injection-vulnerability-PoC.html
- http://packetstormsecurity.com/files/128720/Drupal-7.X-SQL-Injection.html