{"schemaVersion":3,"id":"CVE-2022-24124","aliases":["PYSEC-2022-43189","GHSA-m358-g4rp-533r","GO-2022-0303"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-01-29T22:53:01.000Z","modified":"2024-08-03T03:59:23.921Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.55295,"percentile":0.99027,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.55295},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.55295,"percentile":0.99027}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.55295,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.55295,"percentile":0.99027}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_CASDOOR_CASDOOR","name":"Casdoor","source":"github","url":"https://github.com/casdoor/casdoor/issues/439","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_C4B75B2DABD5955A","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/166163/Casdoor-1.13.0-SQL-Injection.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"50792","name":"Casdoor 1.13.0 - SQL Injection (Unauthenticated)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/50792","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"multiple","file":"exploits/multiple/webapps/50792.go","codes":["CVE-2022-24124"]},"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"casbin","product":"casdoor","name":"casdoor","label":"casdoor","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.1","eol":null,"hubHref":"/vendor/casbin/casdoor"},{"vendor":"github.com/casdoor","product":"casdoor","name":"github.com/casdoor/casdoor","label":"casdoor","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/casdoor/casdoor","purlType":"golang","versions":[{"text":"< 1.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.1","eol":null,"hubHref":null},{"vendor":"PyPI","product":"casdoor","name":"casdoor","label":"casdoor","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/casdoor","purlType":"pypi","versions":[{"text":"< 1.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/casdoor/casdoor/issues/439","label":"github.com/casdoor/casdoor/issues/439","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","REPORT","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/casdoor/casdoor/pull/442","label":"github.com/casdoor/casdoor/pull/442","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/casdoor/casdoor/compare/v1.13.0...v1.13.1","label":"github.com/casdoor/casdoor/compare/v1.13.0...v1.13.1","hostname":"github.com","tags":["X Refsource MISC","Advisory","WEB","Release Notes","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/166163/Casdoor-1.13.0-SQL-Injection.html","label":"packetstormsecurity.com/files/166163/Casdoor-1.13.0-SQL-Injection.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","EVIDENCE","WEB","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24124","label":"nvd.nist.gov/vuln/detail/CVE-2022-24124","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/casdoor/casdoor/commit/5ec0c7a89005819960d8fe07f5ddda13d1371b8c","label":"github.com/casdoor/casdoor/commit/5ec0c7a89005819960d8fe07f5ddda13d1371b8c","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/casdoor/casdoor","label":"github.com/casdoor/casdoor","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-m358-g4rp-533r","label":"github.com/advisories/GHSA-m358-g4rp-533r","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-01-29T22:53:01.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T03:59:23.921Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":51,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T07:41:18.225Z","stale":false,"partial":false}}