{"id":"CVE-2018-25088","kind":"vulnerability","aliases":["CVE-2018-25088","GHSA-vghm-8cjp-hjw6"],"related":[],"title":"postgraas-server vulnerable to SQL injection","description":"A vulnerability, which was classified as critical, was found in Blue Yonder postgraas_server up to 2.0.0b2. Affected is the function `_create_pg_connection/create_postgres_db` of the file `postgraas_server/backends/postgres_cluster/postgres_cluster_driver.py` of the component PostgreSQL Backend Handler. The manipulation leads to sql injection. Upgrading to version 2.0.0 is able to address this issue. The patch is identified as 7cd8d016edc74a78af0d81c948bfafbcc93c937c. It is recommended to upgrade the affected component. VDB-234246 is the identifier assigned to this vulnerability.","summary":"postgraas-server, a Python service that creates PostgreSQL databases on request, builds SQL from input without proper escaping in its database creation code. An attacker who can reach the service can inject SQL and read or change data in the databases it manages.","severity":"critical","cvss":9.8,"epss":0.00732,"exploited":false,"exploited_at":null,"products":[{"name":"postgraas-server","fixed":["2.0.0"],"affected":"< 2.0.0","ecosystem":"pypi"},{"name":"blueyonder postgraas server","fixed":["2.0.0"],"affected":"< 2.0.0","ecosystem":"vendor"},{"name":"blueyonder postgraas server","note":"2 beta builds","fixed":[],"affected":">= 2.0.0-beta.1, <= 2.0.0-beta.2","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["cwe-89","package","postgraas-server","postgresql","python","self-hosted"],"not_affected_if":["version-2.0.0-or-later"],"how_to_check":"- Check the installed version with `pip show postgraas-server`; versions below `2.0.0` are affected.\n- Look for `postgraas_server/backends/postgres_cluster/postgres_cluster_driver.py` in the deployed package and review how `create_postgres_db` builds its SQL.","fix":"- postgraas-server: upgrade to `2.0.0`","status":"open","published_at":"2023-07-18T13:15:11+00:00","first_seen_at":"2026-11-16T15:48:10+00:00","triaged_at":"2026-11-16T15:50:14+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-16T15:50:14Z","model":"claude-haiku-5-5","output":{"fix":"- postgraas-server: upgrade to `2.0.0`","reach":"network","title":"postgraas-server: SQL injection in PostgreSQL backend lets attackers run queries","impact":"high","summary":"postgraas-server, a Python service that creates PostgreSQL databases on request, builds SQL from input without proper escaping in its database creation code. An attacker who can reach the service can inject SQL and read or change data in the databases it manages.","audience":"developers","category":"package","nicknames":[],"who_cares":["postgraas-server","python","postgresql","self-hosted"],"confidence":0.7,"fix_status":"available","needs_auth":"unknown","worst_case":"Attacker reads or alters data in managed PostgreSQL databases","analyst_note":"Confirm which API request fields reach create_postgres_db and whether authentication is required, using the GHSA advisory and the patch commit 7cd8d016edc74a78af0d81c948bfafbcc93c937c.","how_to_check":"- Check the installed version with `pip show postgraas-server`; versions below `2.0.0` are affected.\n- Look for `postgraas_server/backends/postgres_cluster/postgres_cluster_driver.py` in the deployed package and review how `create_postgres_db` builds its SQL.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["version-2.0.0-or-later"],"who_is_affected":"Teams running postgraas-server below 2.0.0 that accept requests to create databases. The flaw is in the PostgreSQL backend handler used when creating databases, so deployments that never call that path or that restrict who can reach the API are at lower risk. unknown whether the sources detail the exact request parameters that reach the injectable code.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000799,"input_tokens":4742,"output_tokens":649,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2018':9A,17A '-234246':150C '-25088':10A,18A '-89':29B '2.0.0':99C,128C '7cd8d016edc74a78af0d81c948bfafbcc93c937c':140C '8cjp':14A 'abl':130C 'address':132C 'affect':101C,147C 'assign':154C 'attack':64B 'b2':100C 'backend':117C 'blue':93C 'blueyonder':22A,25A 'build':51B 'chang':76B 'classifi':87C 'code':62B 'compon':115C,148C 'connection/create_postgres_db':107C 'creat':46B,105C 'creation':61B 'critic':89C 'cve':8A,16A 'cwe':28B 'data':77B 'databas':48B,60B,80B 'escap':57B 'file':110C 'found':91C 'function':104C 'ghsa':12A 'ghsa-vghm-8cjp-hjw6':11A 'handler':118C 'hjw6':15A 'host':38B 'identifi':138C,153C 'inject':7A,71B,124C 'input':54B 'issu':134C 'lead':121C 'manag':82B 'manipul':120C 'packag':30B 'patch':136C 'pg':106C 'postgraa':2A,32B,40B,95C,111C 'postgraas':20A,23A,26A 'postgraas-serv':1A,31B,39B 'postgraas-server':19A 'postgresql':34B,47B,116C 'proper':56B 'python':35B,43B 'reach':67B 'read':74B 'recommend':143C 'request':50B 'self':37B 'self-host':36B 'server':3A,21A,24A,27A,33B,41B,96C 'server/backends/postgres_cluster/postgres_cluster_driver.py':112C 'servic':44B,69B 'sql':6A,52B,72B,123C 'upgrad':125C,145C 'vdb':149C 'version':127C 'vghm':13A 'vulner':4A,84C,157C 'without':55B 'yonder':94C","nicknames":[],"mitigations":[],"who_affected":"Teams running postgraas-server below 2.0.0 that accept requests to create databases. The flaw is in the PostgreSQL backend handler used when creating databases, so deployments that never call that path or that restrict who can reach the API are at lower risk. unknown whether the sources detail the exact request parameters that reach the injectable code.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["blueyonderpostgraasserver","postgraasserver"],"ptokens":["blueyonder","postgraas","server"],"labels":["critical","cwe89","package","postgraasserver","postgresql","pypi","python","selfhosted","vendor"],"campaign_type":null,"search_a":"'-2018':9A,17A '-25088':10A,18A '8cjp':14A 'blueyonder':22A,25A 'cve':8A,16A 'ghsa':12A 'ghsa-vghm-8cjp-hjw6':11A 'hjw6':15A 'inject':7A 'postgraa':2A 'postgraas':20A,23A,26A 'postgraas-serv':1A 'postgraas-server':19A 'server':3A,21A,24A,27A 'sql':6A 'vghm':13A 'vulner':4A","search_b":"'-89':29B 'attack':64B 'build':51B 'chang':76B 'code':62B 'creat':46B 'creation':61B 'cwe':28B 'data':77B 'databas':48B,60B,80B 'escap':57B 'host':38B 'inject':71B 'input':54B 'manag':82B 'packag':30B 'postgraa':32B,40B 'postgraas-serv':31B,39B 'postgresql':34B,47B 'proper':56B 'python':35B,43B 'reach':67B 'read':74B 'request':50B 'self':37B 'self-host':36B 'server':33B,41B 'servic':44B,69B 'sql':52B,72B 'without':55B","search_c":"'-234246':150C '2.0.0':99C,128C '7cd8d016edc74a78af0d81c948bfafbcc93c937c':140C 'abl':130C 'address':132C 'affect':101C,147C 'assign':154C 'b2':100C 'backend':117C 'blue':93C 'classifi':87C 'compon':115C,148C 'connection/create_postgres_db':107C 'creat':105C 'critic':89C 'file':110C 'found':91C 'function':104C 'handler':118C 'identifi':138C,153C 'inject':124C 'issu':134C 'lead':121C 'manipul':120C 'patch':136C 'pg':106C 'postgraa':95C,111C 'postgresql':116C 'recommend':143C 'server':96C 'server/backends/postgres_cluster/postgres_cluster_driver.py':112C 'sql':123C 'upgrad':125C,145C 'vdb':149C 'version':127C 'vulner':84C,157C 'yonder':94C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2023-07-18T13:15:11+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-vghm-8cjp-hjw6","url":"https://github.com/advisories/GHSA-vghm-8cjp-hjw6","severity":"critical","published_at":"2023-07-18T15:30:36+00:00","modified_at":"2026-11-16T15:47:24+00:00","first_seen_at":"2026-11-16T15:48:10+00:00","fetched_at":"2026-11-16T15:56:53+00:00","note":null},{"source":"nvd","external_id":"CVE-2018-25088","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-25088","severity":null,"published_at":"2023-07-18T13:15:11+00:00","modified_at":"2026-06-17T01:54:41+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":170777,"url":"https://github.com/blue-yonder/postgraas_server/commit/7cd8d016edc74a78af0d81c948bfafbcc93c937c","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170778,"url":"https://github.com/blue-yonder/postgraas_server/releases/tag/v2.0.0","title":"Release: github.com","kind":"release","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release: github.com"},{"id":171109,"url":"https://vuldb.com/?id.234246","title":"Third-party advisory: vuldb.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: vuldb.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00732,"url":"https://api.first.org/data/v1/epss?cve=CVE-2018-25088"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}