CVE-2020-36645 is a critical-severity (CVSS 9.8) SQL Injection vulnerability in github.com/square/squalor. A fix is available for github.com/square/squalor — see the affected versions and patch details below.
Squalor SQL Injection vulnerability
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/square/squalorReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
A vulnerability, which was classified as critical, was found in square squalor. This affects an unknown part. The manipulation leads to sql injection. Upgrading to version v0.0.0 is able to address this issue. The name of the patch is f6f0a47cc344711042eb0970cb423e6950ba3f93. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217623.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/square/squalor | all versions | 0.0.0-20200306154055-f6f0a47cc344go get github.com/square/squalor@v0.0.0-20200306154055-f6f0a47cc344 |
Affected Products
squalorsquareupDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/square/squalor, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/square/squalor to 0.0.0-20200306154055-f6f0a47cc344 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-36645 is resolved across your whole dependency graph.
Workarounds
Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.
Frequently Asked Questions
Is CVE-2020-36645 in your dependencies?
Find it across Go, including transitive dependencies.