CVE-2022-24124 is a high-severity (CVSS 7.5) SQL Injection vulnerability in github.com/casdoor/casdoor. 9 public exploit references exist, so weaponization risk is real. A fix is available for github.com/casdoor/casdoor — see the affected versions and patch details below.
SQL Injection in Casdoor
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2022-24124 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 385,738 CVEs with a current EPSS score, this one falls in the 50–90% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
github.com/casdoor/casdoorReal-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
The query API in Casdoor before 1.13.1 has a SQL injection vulnerability related to the field and value parameters, as demonstrated by api/get-organizations.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/casdoor/casdoor | all versions | 1.13.1go get github.com/casdoor/casdoor@v1.13.1 |
Affected Products
casdoorcasbinResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Casdoor 1.13.0 - SQL Injection (Unauthenticated)
by Mayank Deshmukh · Feb 28, 2022
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/casdoor/casdoor, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/casdoor/casdoor to 1.13.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-24124 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.
How to detect CVE-2022-24124
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2022-24124 -u https://target- Template
- Casdoor 1.13.0 - Unauthenticated SQL Injection
- Severity
- high
- Impact
- Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.
- Remediation
- Upgrade to a patched version of Casdoor or apply the necessary security patches to mitigate the SQL injection vulnerability.
Template by ProjectDiscovery nuclei-templates (cckuailong), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2022-24124 in your dependencies?
Find it across Go, including transitive dependencies.