Skip to content
OpenAdvisories
Unscored Scanner template Public exploit CVE-2014-3704 EUVD-2014-3650GHSA-f9cm-c972-9975

The expandArguments function in the database abstraction API in Drupal core 7.x before 7.32 does not properly construct prepared statements…

Published Oct 16, 2014 · Updated Aug 6, 2024 · Assigned by redhat

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.

ReleasePackageFixed inAdvisory
Debian 7 drupal7 7.14-2+deb7u7 DSA-3051-1
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 5

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
  • Vulhub drupal/CVE-2014-3704: Drupal 7.31 Drupalgeddon SQL Injection (CVE-2014-3704), run with Isoloom

  • 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.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Advisories 1

References