CVE-2018-25088: postgraas-server vulnerable to SQL injection
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.05973%
CWE
Published
7/18/2023
Updated
3/1/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| postgraas-server | pip | < 2.0.0 | 2.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsafe SQL query construction in create_postgres_db. The commit diff shows the fix transitioned from string interpolation to using psycopg2's SQL composition utilities (SQL() and Identifier()), which properly escape parameters. The vulnerability report specifically identifies this function, and the patch directly addresses SQL injection in database/user creation logic. The high-risk pattern of building SQL with .format() and direct variable interpolation matches classic SQL injection vectors.