Skip to main content

Duplicate Advisory: PraisonAI: PGVector and Cassandra knowledge stores interpolate vector dimensions into DDL

0
Critical
Published: 07/11/2026 (07/11/2026, 15:30:23 UTC)
Source: GCVE Database
Product: praisonai

Description

PraisonAI versions up to 4.6.77 contain a critical SQL injection vulnerability in the PGVector and Cassandra knowledge-store create_collection() backends. The vulnerability arises because the dimension argument, which should be an integer, is not validated at runtime and is directly interpolated into the CREATE TABLE DDL statement. This allows an attacker controlling the dimension parameter to inject arbitrary SQL or CQL commands, potentially leading to data compromise or destruction.

CVSS v3.1

Score 9.8critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

PyPIghsa
praisonai
Affected versions
<=4.6.77

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 22:13:35 UTC

Technical Analysis

PraisonAI before version 4.6.78 fails to validate the caller-controlled dimension argument in the PGVector and Cassandra knowledge-store create_collection() backends. Although other identifiers such as schema, keyspace, and collection names are validated, the dimension value is declared as an integer but not enforced at runtime. This dimension value is directly interpolated into the vector column of the generated CREATE TABLE DDL statement. An attacker able to influence the collection-creation dimension can inject SQL or CQL tokens by passing malicious strings (e.g., '3); DROP TABLE tenant_secrets; --'), leading to SQL injection.

Potential Impact

Successful exploitation allows an unauthenticated attacker to execute arbitrary SQL or CQL commands on the database, potentially resulting in complete compromise of confidentiality, integrity, and availability of the affected database. This includes unauthorized data access, modification, or deletion.

Mitigation Recommendations

No official patch or fix is currently documented in the advisory. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid passing untrusted input to the dimension parameter in create_collection() calls or implement strict input validation and sanitization on the dimension argument to ensure it is a valid integer.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-q65p-7p84-495c
Osv Schema Version
1.4.0
Ecosystems
["PyPI"]
Database Specific Severity
CRITICAL
Cvss Version
3.1

Threat ID: 6ac80fc32cdf04f65639c3c4

Added to database: 10/08/2026, 21:48:51 UTC

Last enriched: 10/08/2026, 22:13:35 UTC

Last updated: 10/08/2026, 22:13:35 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses