Description
AutoGPT is a platform that allows users to create, deploy, and manage continuous artificial intelligence agents that automate complex workflows. The autogpt before 0.6.32 is vulnerable to Regular Expression Denial of Service due to the use of regex at Code Extraction Block. The two Regex are used containing the corresponding dangerous patterns \s+[\s\S]*? and \s+(.*?). They share a common characteristic — the combination of two adjacent quantifiers that can match the same space character (\s). As a result, an attacker can supply a long sequence of space characters to trigger excessive regex backtracking, potentially leading to a Denial of Service (DoS). This vulnerability is fixed in 0.6.32.
Problem types
CWE-1333: Inefficient Regular Expression Complexity
Product status
References
github.com/...utoGPT/security/advisories/GHSA-m2wr-7m3r-p52c
github.com/...ommit/57a06f70883ce6be18738c6ae8bb41085c71e266
github.com/...ackend/backend/blocks/code_extraction_block.py
github.com/...ackend/backend/blocks/code_extraction_block.py
github.com/...GPT/releases/tag/autogpt-platform-beta-v0.6.32