{"id":"CVE-2026-76899","summary":"CordysCRM: Authenticated SQL injection via `sort.name` on `POST /account-pool/page`","details":"CordysCRM is an open source AI-powered customer relationship management system that supports private deployment. From 1.7.0 until 1.7.4, POST /account-pool/page allows an authenticated caller with MODULE_SETTING_UPDATE to place an arbitrary database function in SortRequest.name because CustomerPoolController.page omits Spring request validation, SortRequest.getName relies on an incomplete blacklist, and the CommonMapper.xml sort fragment inserts ${sortName} into an ORDER BY clause. Functions such as extractvalue and updatexml bypass the blacklist and can expose database values through an error oracle when the query returns at least one row. This issue is fixed in version 1.7.4.","aliases":["GHSA-x6p7-vhgp-6r3q"],"modified":"2026-11-10T07:03:47.564687452Z","published":"2026-09-18T19:58:47.516Z","database_specific":{"cwe_ids":["CWE-1284","CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76899.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/1Panel-dev/CordysCRM/releases/tag/v1.7.4"},{"type":"ADVISORY","url":"https://github.com/1Panel-dev/CordysCRM/security/advisories/GHSA-x6p7-vhgp-6r3q"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76899.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76899"},{"type":"FIX","url":"https://github.com/1Panel-dev/CordysCRM/commit/3e6a7003ac5c94bc1166c6065e64420be2f188a8"},{"type":"FIX","url":"https://github.com/1Panel-dev/CordysCRM/commit/b217166af2935c827c8d73bf55c563dd328692f5"},{"type":"FIX","url":"https://github.com/1Panel-dev/CordysCRM/pull/2975"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/1panel-dev/cordyscrm","events":[{"introduced":"0"},{"fixed":"a49efa7428d082d494e3191a512c2084125c34e2"},{"fixed":"3e6a7003ac5c94bc1166c6065e64420be2f188a8"},{"fixed":"b217166af2935c827c8d73bf55c563dd328692f5"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"1.7.4"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"3e6a7003ac5c94bc1166c6065e64420be2f188a8"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"b217166af2935c827c8d73bf55c563dd328692f5"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v1.7.4","range":[{"fixed":"a49efa7428d082d494e3191a512c2084125c34e2"}],"source":"REFERENCES_TAG"}]}}],"versions":["v1.7.3","v1.7.2","v1.7.1","v1.7.0","v1.6.2","v1.6.1","v1.6.0","v1.5.2","v1.5.1","v1.5.0","v1.4.1","v1.4.0","v1.3.3","v1.3.2","v1.3.1","v1.3.0"],"database_specific":{"vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/1panel-dev/cordyscrm/commit/a49efa7428d082d494e3191a512c2084125c34e2","target":{"function":"canImport","file":"backend/crm/src/main/java/cn/cordys/crm/system/dto/field/base/BaseField.java"},"deprecated":false,"digest":{"function_hash":"319046355199085674763024663432357552292","length":424},"id":"CVE-2026-76899-2b433bd2"},{"signature_version":"v1","source":"https://github.com/1panel-dev/cordyscrm/commit/a49efa7428d082d494e3191a512c2084125c34e2","target":{"file":"backend/crm/src/main/java/cn/cordys/crm/system/dto/field/base/BaseField.java"},"deprecated":false,"digest":{"line_hashes":["241251773315382109834634584394552784288","249959947122790469672931033981937048663","281830738539750662255420688511312121970","175571204292268849138479673360747876948","242061611090138983675070251687750600244","13766706839387319315911092133697527781","181302790946518993643646118498950223525","20047813261948497445339100073678150585","306834403744990968188889174899430139363","72743076204750014391663839928731021516","79319157186612815413491878432412690360","279173438365912182691816554533868663180","40006497577807385726749706601415665529","108004810840513609730419370723388019116","39714350008009221937693314235229545872","39763127777829618193557450441883992899","319122692565840696155176396382636481995"],"threshold":0.9},"id":"CVE-2026-76899-409d94e5","signature_type":"Line"},{"source":"https://github.com/1panel-dev/cordyscrm/commit/b217166af2935c827c8d73bf55c563dd328692f5","target":{"file":"backend/crm/src/main/java/cn/cordys/common/dto/SortRequest.java","function":"getName"},"deprecated":false,"digest":{"length":113,"function_hash":"245193253129316440598382991734002423039"},"id":"CVE-2026-76899-4131fb94","signature_type":"Function","signature_version":"v1"},{"source":"https://github.com/1panel-dev/cordyscrm/commit/3e6a7003ac5c94bc1166c6065e64420be2f188a8","target":{"file":"backend/crm/src/main/java/cn/cordys/common/dto/SortRequest.java"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["215954594939956255917806477642623379595","313172783840790578454716607614565092742","117208727282530436666466976147679310932","289388144321452097844169252101863119365","297234934043107059455536974148504290579","288768825630198485824502294631252481115","266893733843946177112458391925280789570","339330308103021372886739167954803728109","125932562726305523758781769690702236107","47865153585571441123811295773513132670","139340833860282417045201915023441445622","157958171292496496639170860107592962213"]},"id":"CVE-2026-76899-55d7a3ad","signature_type":"Line","signature_version":"v1"},{"source":"https://github.com/1panel-dev/cordyscrm/commit/3e6a7003ac5c94bc1166c6065e64420be2f188a8","target":{"function":"getName","file":"backend/crm/src/main/java/cn/cordys/common/dto/SortRequest.java"},"deprecated":false,"digest":{"length":113,"function_hash":"245193253129316440598382991734002423039"},"id":"CVE-2026-76899-5c1347dc","signature_type":"Function","signature_version":"v1"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/1panel-dev/cordyscrm/commit/3e6a7003ac5c94bc1166c6065e64420be2f188a8","target":{"file":"backend/crm/src/main/java/cn/cordys/crm/customer/controller/CustomerPoolController.java"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["36939992524026194977355764721639335368","299613181574386786860473550387497134424","309665613272923111831300165128868650913","106045920721628309663517547447100411342"]},"id":"CVE-2026-76899-718649a3"},{"id":"CVE-2026-76899-72e0124c","signature_type":"Line","signature_version":"v1","source":"https://github.com/1panel-dev/cordyscrm/commit/b217166af2935c827c8d73bf55c563dd328692f5","target":{"file":"backend/crm/src/main/java/cn/cordys/common/dto/SortRequest.java"},"deprecated":false,"digest":{"line_hashes":["215954594939956255917806477642623379595","313172783840790578454716607614565092742","117208727282530436666466976147679310932","289388144321452097844169252101863119365","297234934043107059455536974148504290579","288768825630198485824502294631252481115","266893733843946177112458391925280789570","339330308103021372886739167954803728109","125932562726305523758781769690702236107","47865153585571441123811295773513132670","139340833860282417045201915023441445622","157958171292496496639170860107592962213"],"threshold":0.9}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/1panel-dev/cordyscrm/commit/a49efa7428d082d494e3191a512c2084125c34e2","target":{"file":"backend/crm/src/main/java/cn/cordys/crm/system/dto/field/base/BaseField.java","function":"canDisplay"},"deprecated":false,"digest":{"function_hash":"51325219181048072037554962582962229180","length":424},"id":"CVE-2026-76899-84117e9a"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/1panel-dev/cordyscrm/commit/b217166af2935c827c8d73bf55c563dd328692f5","target":{"file":"backend/crm/src/main/java/cn/cordys/crm/customer/controller/CustomerPoolController.java"},"deprecated":false,"digest":{"line_hashes":["36939992524026194977355764721639335368","299613181574386786860473550387497134424","309665613272923111831300165128868650913","106045920721628309663517547447100411342"],"threshold":0.9},"id":"CVE-2026-76899-d0e34a3d"},{"signature_version":"v1","source":"https://github.com/1panel-dev/cordyscrm/commit/3e6a7003ac5c94bc1166c6065e64420be2f188a8","target":{"file":"backend/crm/src/main/java/cn/cordys/crm/customer/controller/CustomerPoolController.java","function":"page"},"deprecated":false,"digest":{"function_hash":"154833347256935526530723069678555613398","length":260},"id":"CVE-2026-76899-f6e7d8ac","signature_type":"Function"},{"target":{"file":"backend/crm/src/main/java/cn/cordys/crm/customer/controller/CustomerPoolController.java","function":"page"},"deprecated":false,"digest":{"length":260,"function_hash":"154833347256935526530723069678555613398"},"id":"CVE-2026-76899-fdc6134c","signature_type":"Function","signature_version":"v1","source":"https://github.com/1panel-dev/cordyscrm/commit/b217166af2935c827c8d73bf55c563dd328692f5"}],"vanir_signatures_modified":"2026-11-10T07:03:47Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76899.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:L"}]}