# CVE-2022-24124: GO-2022-0303 - SQL Injection in Casdoor in github.com/casdoor/casdoor

Source: https://junglewise.ai/threats/cve-2022-24124-sql-injection-in-casdoor  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-29  
License: CC BY 4.0 with a link back

CVE-2022-24124 · Severity: low · CVSS 3.1 · Published 2022-01-29

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.

Technologies: [github.com/casdoor/casdoor (Go)](https://junglewise.ai/threats/technologies/github-com-casdoor-casdoor). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-24124 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-24124 being exploited in the wild.

**How severe is CVE-2022-24124?** Low severity, with a CVSS score of 3.1, published 29 January 2022.

**Which products and versions are affected?** github.com/casdoor/casdoor (Go) SEMVER:introduced=0,fixed=1.13.1; casdoor (PyPI) ECOSYSTEM:introduced=0,fixed=1.13.1.

**Is there a fix for CVE-2022-24124?** Yes. github.com/casdoor/casdoor (Go): upgrade to 1.13.1 or later; casdoor (PyPI): upgrade to 1.13.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-24124?** Check whether you run github.com/casdoor/casdoor (Go) or casdoor (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/casdoor/casdoor (Go): upgrade to 1.13.1 or later

  ```sh
  go get github.com/casdoor/casdoor@v1.13.1
  ```

- casdoor (PyPI): upgrade to 1.13.1 or later

  ```sh
  pip install "casdoor>=1.13.1"
  ```


## Affected products

- github.com/casdoor/casdoor (Go) SEMVER:introduced=0,fixed=1.13.1
- casdoor (PyPI) ECOSYSTEM:introduced=0,fixed=1.13.1

## Identifiers

- CVE-2022-24124
- GHSA-m358-g4rp-533r
- GO-2022-0303
- PYSEC-2022-43189

## Related threats

- [Casdoor SAML response validation bypass in auth controller](https://junglewise.ai/threats/cve-2026-9098-casdoor-saml-response-validation-bypass-in-auth-controller)
- [Casdoor missing JWT revocation check in token exchange](https://junglewise.ai/threats/cve-2026-9097-casdoor-missing-jwt-revocation-check-in-token-exchange)
- [Casdoor SAML assertion time bound enforcement failure](https://junglewise.ai/threats/cve-2026-9096-casdoor-saml-assertion-time-bound-enforcement-failure)
- [Casdoor cross-organization token exchange privilege escalation](https://junglewise.ai/threats/cve-2026-9094-casdoor-cross-organization-token-exchange-privilege-escalation)
- [Casdoor SAML audience restriction bypass](https://junglewise.ai/threats/cve-2026-9093-casdoor-saml-audience-restriction-bypass)
