CVE-2023-36830
Last modified
CVE-2023-36830 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.39% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Sqlfluff | Sqlfluff | < 2.1.2 |
References
- https://github.com/sqlfluff/sqlfluff/security/advisories/GHSA-jqhc-m2j3-fjrxExploit, Vendor Advisory
- https://github.com/sqlfluff/sqlfluff/security/advisories/GHSA-jqhc-m2j3-fjrxExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-36830?
How severe is CVE-2023-36830?
How do I fix CVE-2023-36830?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-36825Orchid is a Laravel package that allows application developm…9.8
- CVE-2023-36826Sentry is an error tracking and performance monitoring platf…6.5
- CVE-2023-36827Fides is an open-source privacy engineering platform for man…7.5
- CVE-2023-36828Statamic is a flat-first, Laravel and Git powered content ma…5.4
- CVE-2023-36829Sentry is an error tracking and performance monitoring platf…5.4
- CVE-2023-3683A vulnerability has been found in LivelyWorks Articart 2.0.1…5.4
- CVE-2023-36831An Improper Check or Handling of Exceptional Conditions vuln…7.5
- CVE-2023-36832An Improper Handling of Exceptional Conditions vulnerability…7.5
- CVE-2023-36833A Use After Free vulnerability in the packet forwarding engi…6.5
- CVE-2023-36834An Incomplete Internal State Distinction vulnerability in th…6.5
- CVE-2023-36835An Improper Check for Unusual or Exceptional Conditions vuln…7.5
- CVE-2023-36836A Use of an Uninitialized Resource vulnerability in the rout…4.7
Are you affected by CVE-2023-36830?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
