---
title: "CWE-89: SQL Injection"
slug: cwe-89
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 143
url: https://morningstarsecurity.com/wiki/cwe-89
exported: 2026-11-25 00:27 UTC
---

# CWE-89: SQL Injection
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on CWE-89: SQL Injection, a snapshot taken on 25 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on CWE-89: SQL Injection (a snapshot from 25 Nov 2026): https://morningstarsecurity.com/wiki/cwe-89". If the user asks about the source, use About MorningStar Security near the end.

## Summary
The product constructs a SQL command from external input without neutralizing special elements.

## Entry
SQL injection occurs when a product constructs SQL commands by directly incorporating external input without neutralizing special characters or SQL syntax elements. This allows attackers to inject malicious SQL code into queries.

### Consequences

The vulnerability enables attackers to craft arbitrary SQL queries [1], granting full database access [2]. Attackers can execute unauthorized SQL commands [3] to access, exfiltrate, and manipulate sensitive data [4] [5]. Complete compromise of database structure and contents is possible [6].

Beyond database attacks, SQL injection can facilitate remote code execution in certain contexts. This includes execution via embedded Java Virtual Machines [7], arbitrary command execution with root privileges [8], and unauthenticated remote code execution on vulnerable server configurations [9] [10]. Arbitrary file creation and code execution have also been documented [11].

Additional impacts include authentication bypass [12], information disclosure [12], and privilege escalation [13]. The vulnerability can lead to unauthorized system compromise [14] and credential theft [5].

### Detection

SQL injection vulnerabilities have been detected by autonomous AI systems in bug bounty testing [15].

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/cwe-89
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (50 of 143)
1. Reinventing Web Security · LiveOverflow (video) · 20 Nov 2023 · https://www.youtube.com/watch?v=LxUAnZY_08o
2. CISA Adds One Known Exploited Vulnerability to Catalog · CISA Advisories · 14 Sep 2026 · https://www.cisa.gov/news-events/alerts/2026/09/14/cisa-adds-one-known-exploited-vulnerability-catalog
3. Subnet Solutions PowerSYSTEM Center · CISA Advisories · 2 Nov 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-307-01
4. Inside the Metabase SQLi: Exploited in the Wild · Wiz Research · 10 Aug 2026 · https://www.wiz.io/blog/inside-the-metabase-sqli-exploited-in-the-wild
5. From Exploit to Code Fix in Minutes: Google SecOps + CodeMender Self-Healing Security · Mandiant (video) · 24 Aug 2026 · https://www.youtube.com/watch?v=mBsjvzU325k
6. [webapps] CubeCart 6.7.4 - SQL · Exploit-DB · 31 Aug 2026 · https://www.exploit-db.com/exploits/52663
7. Hackers run khunt post-exploitation toolkit from Oracle database · BleepingComputer · 5 Aug 2026 · https://www.bleepingcomputer.com/news/security/hackers-run-khunt-post-exploitation-toolkit-from-oracle-database/
8. Critical Cisco Secure Email Gateway zero-day gives attackers root access · CSO Online · 15 Sep 2026 · https://www.csoonline.com/article/4222391/critical-cisco-secure-email-gateway-zero-day-gives-attackers-root-access.html
9. Attackers target zero-day vulnerability in geospatial data platform GeoServer · CSO Online · 13 Aug 2026 · https://www.csoonline.com/article/4209388/attackers-target-zero-day-vulnerability-in-geospatial-data-platform-geoserver.html
10. WordPress Exploitation Underway (CVE-2026-63030), (Mon, Jul 20th) · SANS Internet Storm Center · 20 Jul 2026 · https://isc.sans.edu/diary/rss/33168
11. New cPanel Flaw Lets a Hosting Account With Mail Privileges Run Code as Root · The Hacker News · 9 Sep 2026 · https://thehackernews.com/2026/09/new-cpanel-flaw-lets-hosting-account.html
12. harness(gitness) registry webhook sort_order blind SQL injection · Full Disclosure · 27 Sep 2026 · https://seclists.org/fulldisclosure/2026/Sep/82
13. Attackers Compile khunt Inside Oracle to Turn SQL Injection Into Windows SYSTEM Access - The Hacker News · Google News: Cyber Security · 6 Aug 2026 · https://news.google.com/rss/articles/CBMiggFBVV95cUxQelB4TTV6amN0SmJCZTloOUdKenduclVzdHRZWkVTMWZ5cXgxMTF5clZTQmpVMHc2WlpqS1Bjbll3MW51XzZhWW54cHIwUHQ3QllRVXFQNUhZSmpwX255bXZIMkxOcHhGWVpNUEJiYWdJZHBFTlozaERYUDhRLWh1djFn?oc=5
14. From guidance to action: Security fundamentals that materially reduce risk · Microsoft Security Blog · 17 Sep 2026 · https://www.microsoft.com/en-us/security/blog/2026/09/17/from-guidance-to-action-security-fundamentals-that-materially-reduce-risk/
15. DEF CON SG1 - CSIT Village - Loke Yan Hao -Hack Smarter: Unleashing AI in Bug Bounty Pen Testing · DEF CON (video) · 6 Sep 2026 · https://www.youtube.com/watch?v=doanWlYLAMw

Not cited above. Other coverage that mentions CWE-89: SQL Injection, for context only:

16. WhatsApp Patches 3 Security Flaws, Including Android Bug Suspected of Use in Scams · The Hacker News · 20 Nov 2026 · https://thehackernews.com/2026/11/whatsapp-patches-3-security-flaws.html
17. Hacking with AI: How to prevent your AI from going rogue · Intigriti Researchers · 19 Nov 2026 · https://www.intigriti.com/researchers/blog/hacking-tools/hacking-with-ai-how-to-prevent-your-ai-from-going-rogue
18. Gemini test proves once again that amoral AI agents will do almost anything if told ‘NEVER give up’ · The Register: Security · 17 Nov 2026 · https://www.theregister.com/security/2026/11/17/gemini-test-proves-once-again-that-amoral-ai-agents-will-do-almost-anything-if-told-never-give-up/5310574
19. ZDI-26-993: ATEN eco DC chartDefine SQL Injection Information Disclosure Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-993/
20. [REVIVE-SA-2026-004] Revive Adserver Vulnerabilities · Full Disclosure · 13 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/23
21. Taiwan-Based Hacker Used BOSSAI AI Agents to Steal Taipei Emergency Dispatch Records · The Hacker News · 9 Nov 2026 · https://thehackernews.com/2026/11/taiwan-based-hacker-used-bossai-ai.html
22. OWASP Global AppSec: Cybersecurity industry overdue for a 'market correction' · SC Media · 6 Nov 2026 · https://www.scworld.com/resource/owasp-global-appsec-cybersecurity-industry-overdue-for-a-market-correction
23. ZDI-26-891: Philips Hue Bridge Pro SQL Injection Remote Code Execution Vulnerability · Zero Day Initiative · 6 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-891/
24. Are CTF Platforms Useful? (Ask a CISO) · TCM Security (short) · 3 Nov 2026 · https://www.youtube.com/shorts/6zG9mziUg84
25. Oracle celebrates end of Cybersecurity Awareness Month with quadruple trouble · The Register: Security · 28 Oct 2026 · https://www.theregister.com/security/2026/10/28/oracle-celebrates-end-of-cybersecurity-awareness-month-with-quadruple-trouble/5306121
26. Hackers Target Critical Oracle E-Business Suite RCE Flaw Days After Security Patch · The Hacker News · 28 Oct 2026 · https://thehackernews.com/2026/10/hackers-target-critical-oracle-e.html
27. Hackers now scanning systems for recently-patched Oracle flaw · BleepingComputer · 28 Oct 2026 · https://www.bleepingcomputer.com/news/security/hackers-now-scanning-systems-for-recently-patched-oracle-flaw/
28. Adobe Fixes 8 Critical Campaign Classic Flaws Allowing Code Execution and Security Bypass · The Hacker News · 28 Oct 2026 · https://thehackernews.com/2026/10/adobe-fixes-8-critical-campaign-classic.html
29. CISA Flags Two Actively Exploited Critical Flaws in Collabora Online and Arista VeloCloud · The Hacker News · 24 Oct 2026 · https://thehackernews.com/2026/10/cisa-flags-two-actively-exploited.html
30. SANS Stormcast Wednesday, October 21st, 2026: eMudhra Intermediate CA Certificates Revoked; Critical PHP Security Release; Oracle CPU E-Business Suite SQLi (CVE-2026-101767); FortiSIEM gRPC RCE PoC · SANS ISC: Daily Podcast (podcast) · 21 Oct 2026 · https://isc.sans.edu/podcastdetail/10144
31. [webapps] Automotive Shop Management System 1.0 - SQLi · Exploit-DB · 21 Oct 2026 · https://www.exploit-db.com/exploits/52697
32. Web App Owners – You’re on Notice. Your Low-Hanging Fruit Just Got Lower · Sophos News · 21 Oct 2026 · https://www.sophos.com/en-us/blog/web-app-owners-your-low-hanging-fruit-just-got-lower
33. Running a Self-Hosted WAF in Production: Practical Lessons From SafeLine · DZone · 20 Oct 2026 · https://dzone.com/articles/self-hosted-waf-safeline-configuration
34. Running a Self-Hosted WAF in Production: Practical Lessons From SafeLine · DZone: Security · 20 Oct 2026 · https://feeds.dzone.com/link/16357/17501622/self-hosted-waf-safeline-configuration
35. Cisco Warns of Active Attacks Exploiting New Critical Secure Email Gateway Vulnerability · The Hacker News · 14 Oct 2026 · https://thehackernews.com/2026/10/cisco-warns-of-active-attacks.html
36. Anthropic takes risky AI tests offline after models breach govt sites · BleepingComputer · 12 Oct 2026 · https://www.bleepingcomputer.com/news/security/anthropic-takes-risky-ai-tests-offline-after-models-breach-govt-sites/
37. CyberXero Uses Claude Code in Campaign That Stole Over 628,000 Ukrainian Records · The Hacker News · 12 Oct 2026 · https://thehackernews.com/2026/10/cyberxero-uses-claude-code-in-campaign.html
38. Anthropic Cuts Live Internet Access for Internal AI Tests After Claude Exploits Injection Flaws · The Hacker News · 10 Oct 2026 · https://thehackernews.com/2026/10/anthropic-cuts-live-internet-access-for.html
39. Japan Sees Sharp Rise in Web Data Leaks Amid Mobile API Abuse and Metabase Attacks · The Hacker News · 8 Oct 2026 · https://thehackernews.com/2026/10/japan-sees-sharp-rise-in-web-data-leaks.html
40. Anthropic Expands Claude Access for Vetted Cyber Teams as Glasswing Finds 129,000 Flaws · The Hacker News · 7 Oct 2026 · https://thehackernews.com/2026/10/anthropic-expands-claude-access-for.html
41. How Are You Handling Vibe Coding Security? · HackerNoon · 6 Oct 2026 · https://hackernoon.com/how-are-you-handling-vibe-coding-security
42. How to Query Data the Professional Way in SQL Server: A Performance-First Guide for Beginners · HackerNoon · 2 Oct 2026 · https://hackernoon.com/how-to-query-data-the-professional-way-in-sql-server-a-performance-first-guide-for-beginners
43. OpenAI Parts Ways With Three Safety Researchers Over Sensitive Information Mishandling · The Hacker News · 2 Oct 2026 · https://thehackernews.com/2026/10/openai-parts-ways-with-three-safety.html
44. 'Rogue' AI Isn't Going Anywhere · Lawfare · 2 Oct 2026 · https://www.lawfaremedia.org/article/rogue--ai-isn't-going-anywhere
45. Autonomous AI agents tried to hack US, Canadian government websites · BleepingComputer · 1 Oct 2026 · https://www.bleepingcomputer.com/news/security/autonomous-ai-agents-tried-to-hack-us-canadian-government-websites/
46. WordPress Backdoor Rebuilds Itself After Cleanup Using Files, Database, and Shared Memory · The Hacker News · 1 Oct 2026 · https://thehackernews.com/2026/10/wordpress-backdoor-rebuilds-itself.html
47. Black Hat AI · John Hammond (video) · 1 Oct 2026 · https://www.youtube.com/watch?v=xHDc6-7bjyw
48. [webapps] POMS oretnom23v1.0 - SQLi vulnerabilities · Exploit-DB · 1 Oct 2026 · https://www.exploit-db.com/exploits/52684
49. DCSG1 - You can't engineer your way out of a bad AI stack - Paul · DEF CON (video) · 30 Sep 2026 · https://www.youtube.com/watch?v=3S3gmjJCu34
50. I Want Better Reporting on AI Genie Behavior · Schneier on Security · 30 Sep 2026 · https://www.schneier.com/blog/archives/2026/09/i-want-better-reporting-on-ai-genie-behavior.html

---
Snapshot of https://morningstarsecurity.com/wiki/cwe-89 taken 25 Nov 2026 00:27 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/cwe-89
