PYSEC-2026-2489

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/giskard-checks/PYSEC-2026-2489.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2489
Aliases
Published
2026-07-13T15:02:47.621781Z
Modified
2026-07-13T16:32:37.592772486Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
  • 1.0 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
Giskard has a Regular Expression Denial of Service (ReDoS) in RegexMatching Check
Details

Summary

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

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.

Affected component

text_matching.py, line 457: re.search(pattern, text)

Remediation

Upgrade to giskard-checks >= 1.0.2b1.

Credit

Giskard-AI thanks @dhabaleshwar for identifying the missing timeout on regex evaluation.

References

Affected packages

PyPI / giskard-checks

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.2b1

Affected versions

1.*
1.0.1a1
1.0.1a2
1.0.1b1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/giskard-checks/PYSEC-2026-2489.yaml"