{"id":"CVE-2026-40319","aliases":["CVE-2026-40319","GHSA-rq2q-4r55-9877","PYSEC-2026-2489"],"related":[],"kind":"vulnerability","state":"published","title":"Giskard has a Regular Expression Denial of Service (ReDoS) in RegexMatching Check","summary":"Giskard is an open-source testing framework for AI models. In versions prior to 1.0.2b1, the RegexMatching check passes a user-supplied regular expression pattern directly to Python's re.search() without any timeout or complexity guard. A crafted regex pattern can trigger catastrophic backtracking, causing the process to hang indefinitely. Exploitation requires write access to a check definition and subsequent execution of the test suite. This issue has been fixed in giskard-checks version 1.0.2b1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Giskard is an open-source testing framework for AI models. In versions prior to 1.0.2b1, the RegexMatching check passes a user-supplied regular expression pattern directly to Python's re.search() without any timeout or complexity guard. A crafted regex pattern can trigger catastrophic backtracking, causing the process to hang indefinitely. Exploitation requires write access to a check definition and subsequent execution of the test suite. This issue has been fixed in giskard-checks version 1.0.2b1.","source":"cvelist"},{"lang":"en","text":"## Summary\nThe RegexMatching check in the `giskard-checks` package passes a user-supplied regular expression pattern directly to Python's re.search() without any timeout, complexity guard, or pattern validation. An attacker who can control the regex pattern or the text being matched can craft inputs that trigger catastrophic backtracking in the regex engine, causing the process to hang indefinitely and denying service to all other operations. \n\n`giskard-checks` is a local developer testing library. Check definitions, including the pattern parameter, are provided in application code or configuration files and executed locally. Exploitation requires write access to a check definition and subsequent execution of the test suite. The absence of a regex timeout could cause availability issues in automated environments such as CI/CD pipelines.\n\n## Affected component\n \n`text_matching.py`, line 457: `re.search(pattern, text)`\n \n## Remediation\n \nUpgrade to `giskard-checks` >= 1.0.2b1.\n \n## Credit\n \nGiskard-AI thanks @dhabaleshwar for identifying the missing timeout on regex evaluation.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Giskard es un framework de pruebas de código abierto para modelos de IA. En versiones anteriores a la 1.0.2b1, la comprobación RegexMatching pasa un patrón de expresión regular proporcionado por el usuario directamente a re.search() de Python sin ningún tiempo de espera o protección contra la complejidad. Un patrón de regex manipulado puede desencadenar un retroceso catastrófico, haciendo que el proceso se cuelgue indefinidamente. La explotación requiere acceso de escritura a una definición de comprobación y la ejecución posterior de la suite de pruebas. Este problema se ha solucionado en la versión 1.0.2b1 de giskard-checks.","source":"nvd"}],"published":"2026-04-14T23:13:39.000Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","score":1,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","score":1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"< 1.0.2b1","status":"affected"}],"vendor":"Giskard-AI","product":"giskard-oss","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.2b1"}],"ecosystem":"PyPI","package":"giskard-checks","purl":"pkg:pypi/giskard-checks","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.2"}],"vendor":"giskard","product":"giskard","cpe":"cpe:2.3:a:giskard:giskard:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.2b1"}],"ecosystem":"PyPI","package":"giskard-checks","purl":"pkg:pypi/giskard-checks","source":"pysec"}],"references":[{"url":"https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-rq2q-4r55-9877","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Giskard-AI/giskard-oss/releases/tag/giskard-checks%2Fv1.0.2b1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40319","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Giskard-AI/giskard-oss","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/giskard-checks","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-rq2q-4r55-9877","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-20T13:43:20.277Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40319","url":"https://www.cve.org/CVERecord?id=CVE-2026-40319","licence":"CVE Terms of Use","modified":"2026-04-20T13:46:09.167Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rq2q-4r55-9877","url":"https://github.com/advisories/GHSA-rq2q-4r55-9877","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:45.875Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40319","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40319","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2489","url":"https://osv.dev/vulnerability/PYSEC-2026-2489","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:37.592Z"}],"updatedAt":"2026-11-25T22:59:18.950Z","epss":{"score":0.00152,"percentile":0.04558,"date":"2026-12-01T12:00:22.000Z"}}