{"id":"CVE-2023-50718","aliases":["CVE-2023-50718","GHSA-8fxg-mr34-jqr8"],"related":[],"kind":"vulnerability","state":"published","title":"NocoDB SQL Injection vulnerability","summary":"NocoDB is software for building databases as spreadsheets. Prior to version 0.202.10, an authenticated attacker with create access could conduct a SQL Injection attack on MySQL DB using unescaped `table_name`. This vulnerability may result in leakage of sensitive data in the database. Version 0.202.10 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"NocoDB is software for building databases as spreadsheets. Prior to version 0.202.10, an authenticated attacker with create access could conduct a SQL Injection attack on MySQL DB using unescaped `table_name`. This vulnerability may result in leakage of sensitive data in the database. Version 0.202.10 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n---\nAn authenticated attacker with create access could conduct a SQL Injection attack on MySQL DB using unescaped table_name.\n\n### Details\n---\n### SQL Injection vulnerability occurs in **VitessClient.ts**.\n```javascript\nasync columnList(args: any = {}) {\n    const func = this.columnList.name;\n    const result = new Result();\n    log.api(`${func}:args:`, args);\n\n    try {\n      args.databaseName = this.connectionConfig.connection.database;\n\n      const response = await this.sqlClient.raw(\n        `select *, table_name as tn from information_schema.columns where table_name = '${args.tn}' ORDER by ordinal_position`,\n      );\n```\nThe variable **${args.tn}** refers to the table name entered by the user.\nA malicious attacker can escape the existing query by including a special character (') in the table name and insert and execute a new arbitrary SQL query.\n\n### Impact\n---\nThis vulnerability may result in leakage of sensitive data in the database.","format":"markdown","source":"ghsa"},{"lang":"es","text":"NocoDB es un software para crear bases de datos como hojas de cálculo. Antes de la versión 0.202.10, un atacante autenticado con acceso de creación podía realizar un ataque de inyección SQL en una base de datos MySQL utilizando `table_name` sin escape. Esta vulnerabilidad puede provocar la fuga de datos confidenciales en la base de datos. La versión 0.202.10 contiene un parche para el problema.","source":"nvd"}],"published":"2024-05-13T16:08:09.198Z","modified":"2026-09-10T03:50:13.573Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 0.202.10","status":"affected"}],"vendor":"nocodb","product":"nocodb","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.202.10","status":"affected"}],"vendor":"nocodb","product":"nocodb","cpe":"cpe:2.3:a:nocodb:nocodb:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.202.10"}],"ecosystem":"npm","package":"nocodb","purl":"pkg:npm/nocodb","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.202.10"}],"vendor":"nocodb","product":"nocodb","cpe":"cpe:2.3:a:nocodb:nocodb:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nocodb/nocodb/security/advisories/GHSA-8fxg-mr34-jqr8","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50718","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nocodb/nocodb","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-05-13T20:17:19.969Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-50718","url":"https://www.cve.org/CVERecord?id=CVE-2023-50718","licence":"CVE Terms of Use","modified":"2024-08-21T20:46:16.025Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8fxg-mr34-jqr8","url":"https://github.com/advisories/GHSA-8fxg-mr34-jqr8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:13.573Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-50718","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50718","licence":"Public domain","modified":"2026-06-17T06:39:50.867Z"}],"updatedAt":"2026-11-25T22:58:33.910Z","epss":{"score":0.00696,"percentile":0.54267,"date":"2026-12-01T12:00:22.000Z"}}