Home / sqlfluff / sqlfluff / CVE-2023-36830
CVE-2023-36830: is it exploited, and which versions of sqlfluff are affected and fixed?
CVE-2023-36830 is an injection vulnerability in sqlfluff. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: sqlfluff before 2.1.2 (GitHub advisory GHSA-jqhc-m2j3-fjrx). Fixed in 2.1.2 (GitHub advisory GHSA-jqhc-m2j3-fjrx). Severity: Medium (6.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:38 UTC.
What is CVE-2023-36830?
SQLFluff vulnerability for users with access to config file, using `library_path` to call arbitrary python code.
SQLFluff is a SQL linter. Prior to version 2.1.2, in environments where untrusted users have access to the config files, there is a potential security vulnerability where those users could use the `library_path` config value to allow arbitrary python code to be executed via macros. For many users who use SQLFluff in the context of an environment where all users already have fairly escalated privileges, this may not be an issue - however in larger user bases, or where SQLFluff is bundled into another tool where developers still wish to give users access to supply their on rule configuration, this may be an issue. The 2.1.2 release offers the ability for the `library_path` argument to be overwritten on the command line by using the `--library-path` option. This overrides any values provided in the config files and effectively prevents this route of attack for users which have access to the config file, but not to the scripts which call the SQLFluff CLI directly. A similar option is provided for the Python API, where users also have a greater ability to further customise or override configuration as necessary. Unless `library_path` is explicitly required, SQLFluff maintainers recommend using the option `--library-path none` when invoking SQLFluff which will disable the `library-path` option entirely regardless of the options set in the configuration file or via inline config directives. As a workaround, limiting access to - or otherwise validating configuration files before they are ingested by SQLFluff will provides a similar effect and does not require upgrade.
From the CVE record by GitHub_M, last updated October 18, 2024, 19:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| sqlfluff | sqlfluff | < 2.1.2 |
As the CVE record by GitHub_M states it, last updated October 18, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | sqlfluff | < 2.1.2 | 2.1.2 | GHSA-jqhc-m2j3-fjrx |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 28, 2024. Summary: SQLFluff users with access to config file, using `libary_path` may call arbitrary python code.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sqlfluff | sqlfluff | before 2.1.2 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:07 UTC.
How severe is CVE-2023-36830?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.3 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L | GitHub_M |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-36830 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, October 18, 2024)
- EPSS
- 0.41% probability of exploitation activity in the next 30 days, percentile 37.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Where are the vendor advisories and references?
- https://github.com/sqlfluff/sqlfluff/security/advisories/GHSA-jqhc-m2j3-fjrx x_refsource_CONFIRM
- https://github.com/sqlfluff/sqlfluff/releases/tag/2.1.2 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- June 27, 2023
- Published
- July 6, 2023, 15:03 UTC
- CVE record updated
- October 18, 2024, 19:07 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:07 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:38 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect sqlfluff?
- Jun 9, 2026CVE-2026-46374 sqlfluff: denial of service (uncontrolled resource consumption)
- Jun 9, 2026CVE-2026-46373 sqlfluff: uncontrolled recursion
Questions about CVE-2023-36830
Is CVE-2023-36830 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.41% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of sqlfluff are affected by CVE-2023-36830?
sqlfluff before 2.1.2, per the GitHub advisory GHSA-jqhc-m2j3-fjrx. The tables above give every range the sources list.
Which version fixes CVE-2023-36830?
2.1.2, per the GitHub advisory GHSA-jqhc-m2j3-fjrx. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-36830?
Medium (6.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-36830?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.