Skip to main content

Python CVE-2026-40319

LOW
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-04-14 https://github.com/Giskard-AI/giskard-oss GHSA-rq2q-4r55-9877
1.0
CVSS 4.0 · Vendor: https://github.com/Giskard-AI/giskard-oss
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise or modify check configuration
  2. Delivery
    Insert pathological regex pattern
  3. Exploit
    Execute test suite
  4. Execution
    Trigger catastrophic backtracking
  5. Persist
    Process hangs indefinitely
  6. Impact
    Deny service to CI/CD pipeline

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

This vulnerability presents a moderate availability risk in automated environments despite lacking a CVSS score and vector. The exploitation path is constrained by requiring write access to check definitions, limiting the attack surface to internal threats or compromised configuration management systems. However, the absence of regex timeout enforcement creates a reliable denial-of-service primitive once access is gained. In CI/CD pipelines, a hanging regex check could block deployments indefinitely, cascading into operational impact. The EPSS score is unavailable, but the public GitHub advisory and confirmed fix indicate vendor acknowledgment of real risk. Unlike network-based RCE vulnerabilities, this is not actively exploitable remotely without prior system compromise, yet it merits priority in environments where external contributors can modify test configurations or in supply-chain scenarios where dependencies are untrusted. Organizations running giskard-checks in automated pipelines should treat this as medium-to-high priority for availability concerns.

Exploit ScenarioDerived

An attacker with write access to the application's test configuration or check definitions (e.g., via compromised developer credentials or a malicious pull request) inserts a pathological regex pattern such as (a+)+$ paired with a long string of 'a' characters in the text being matched. When the test suite executes, the RegexMatching check's re.search() call enters catastrophic backtracking, consuming CPU indefinitely and hanging the process. In CI/CD environments, this causes the build pipeline to stall, blocking all subsequent deployments.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 15, 2026

Denial of service in giskard-checks RegexMatching check via unguarded regex pattern matching allows local attackers with write access to check definitions to trigger catastrophic backtracking in Python's re.search() function, causing process hangs and disrupting CI/CD pipelines or automated test execution.

RemediationAI

Upgrade giskard-checks to version 1.0.2b1 or later by executing pip install --upgrade giskard-checks>=1.0.2b1 in your Python environment. The vendor-released patch introduces timeout and complexity guards on regex evaluation to prevent catastrophic backtracking. If immediate upgrade is not feasible, review and restrict write access to check definition files and configuration sources to limit the attack surface. Additional mitigation involves disabling or removing RegexMatching checks if they are not actively used in your test suite. For detailed information, refer to the GitHub security advisory at https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-rq2q-4r55-9877.

Affected Packages

pypi giskard-checks fix: 1.0.2b1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The giskard-checks library is a Python package for local model testing that includes a RegexMatching check component. The vulnerability resides in text_matching.py at line 457, where user-supplied regex patterns are passed directly to Python's re.search() function without timeout enforcement, complexity validation, or pattern sanitization. Python's re module is susceptible to ReDoS (Regular Expression Denial of Service) attacks via catastrophic backtracking when given pathological patterns combined with certain input strings. The root cause is classified under CWE-1333 (Inefficient Regular Expression Complexity), which encompasses regex engines that lack safeguards against exponential-time matching behavior. Since giskard-checks is a developer-facing testing library executed in local or CI/CD environments, exploitation requires prior write access to configuration or application code defining check parameters.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/Giskard-AI/giskard-oss) PRIMARY 1.0 LOW
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

Primary rating from Vendor (https://github.com/Giskard-AI/giskard-oss) · only source for this CVE.

CVSS VectorVendor: https://github.com/Giskard-AI/giskard-oss

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
Low

Lifecycle Timeline

3
CVSS changed
Apr 17, 2026 - 18:22 NVD
1.0 (LOW)
Patch released
Apr 15, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 14, 2026 - 23:13 nvd
LOW 1.0

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

5
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +5
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:pip/giskard-checks

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy