{"id":"CVE-2025-1023","state":"PUBLISHED","title":"SQL Injection in ChurchCRM newCountName Parameter via EditEventTypes.php","description":"A vulnerability exists in ChurchCRM 5.13.0 and prior that allows an attacker to execute arbitrary SQL queries by exploiting a time-based blind SQL Injection vulnerability in the EditEventTypes functionality. The newCountName parameter is directly concatenated into an SQL query without proper sanitization, allowing an attacker to manipulate database queries and execute arbitrary commands, potentially leading to data exfiltration, modification, or deletion.","publishedAt":"2025-02-18T09:45:26.188Z","updatedAt":"2025-02-18T14:27:27.899Z","severity":{"score":9.3,"label":"Critical","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:H/AU:Y/R:U/V:C/RE:H/U:Red","source":"Gridware"},"assigner":"Gridware","products":["ChurchCRM ChurchCRM"],"affected":[{"vendor":"ChurchCRM","product":"ChurchCRM","defaultStatus":"unaffected","versions":[{"version":"ChurchCRM 5.13.0 and prior","status":"affected"}]}],"references":["https://github.com/ChurchCRM/CRM/issues/7246"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/1xxx/CVE-2025-1023.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-1023","state":"PUBLISHED","datePublished":"2025-02-18T09:45:26.188Z","dateUpdated":"2025-02-18T14:27:27.899Z","assignerShortName":"Gridware","assignerOrgId":"b7efe717-a805-47cf-8e9a-921fca0ce0ce","dateReserved":"2025-02-04T10:31:51.341Z"},"containers":{"cna":{"title":"SQL Injection in ChurchCRM newCountName Parameter via EditEventTypes.php","descriptions":[{"lang":"en","value":"A vulnerability exists in ChurchCRM 5.13.0 and prior that allows an attacker to execute arbitrary SQL queries by exploiting a time-based blind SQL Injection vulnerability in the EditEventTypes functionality. The newCountName parameter is directly concatenated into an SQL query without proper sanitization, allowing an attacker to manipulate database queries and execute arbitrary commands, potentially leading to data exfiltration, modification, or deletion."}],"affected":[{"vendor":"ChurchCRM","product":"ChurchCRM","defaultStatus":"unaffected","versions":[{"version":"ChurchCRM 5.13.0 and prior","status":"affected"}]}],"references":[{"url":"https://github.com/ChurchCRM/CRM/issues/7246"}],"metrics":[{"cvssV4_0":{"Automatable":"YES","Recovery":"USER","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":9.3,"baseSeverity":"CRITICAL","privilegesRequired":"HIGH","providerUrgency":"RED","subAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"LOW","userInteraction":"NONE","valueDensity":"CONCENTRATED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:H/AU:Y/R:U/V:C/RE:H/U:Red","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"HIGH"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","description":"CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Gridware","orgId":"b7efe717-a805-47cf-8e9a-921fca0ce0ce","dateUpdated":"2025-02-18T09:45:26.188Z"},"credits":[{"lang":"en","type":"finder","value":"Michael McInerney"}],"impacts":[{"capecId":"CAPEC-66","descriptions":[{"lang":"en","value":"CAPEC-66 SQL Injection"}]}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>To prevent SQL injection, use prepared statements with parameterised queries. Additionally, implement input validation to reject dangerous characters, apply the principle of least privilege to database users to minimise potential damage, and assign appropriate data types in PHP, such as converting newCountName to an integer if it represents a numeric value.</p>"}],"value":"To prevent SQL injection, use prepared statements with parameterised queries. Additionally, implement input validation to reject dangerous characters, apply the principle of least privilege to database users to minimise potential damage, and assign appropriate data types in PHP, such as converting newCountName to an integer if it represents a numeric value."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-18T14:27:14.150090Z","id":"CVE-2025-1023","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-18T14:27:27.899Z"}}]}}}