VYPR
Moderate severityNVD Advisory· Published Oct 18, 2023· Updated Sep 13, 2024

Inefficient Regular Expression Complexity in TorBot

CVE-2023-45813

Description

Torbot is an open source tor network intelligence tool. In affected versions the torbot.modules.validators.validate_link function uses the python-validators URL validation regex. This particular regular expression has an exponential complexity which allows an attacker to cause an application crash using a well-crafted argument. An attacker can use a well-crafted URL argument to exploit the vulnerability in the regular expression and cause a Denial of Service on the system. The validators file has been removed in version 4.0.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

CVE-2023-45813: A ReDoS vulnerability in Torbot's URL validation allows attackers to cause Denial of Service via a crafted URL.

Vulnerability

Description

CVE-2023-45813 is a Regular Expression Denial of Service (ReDoS) vulnerability in Torbot, an open-source Tor network intelligence tool. The flaw exists in the torbot.modules.validators.validate_link function, which uses the python-validators library's URL validation regex. This regex exhibits exponential complexity, meaning that a carefully crafted input can cause the regex engine to consume excessive CPU time, leading to an application hang or crash [1].

Exploitation

An attacker can exploit this vulnerability by providing a well-crafted URL argument to the affected function. No authentication is required; the attack vector is remote, as Torbot likely processes user-supplied URLs during its operation. The malicious input triggers the exponential backtracking behavior in the regex, resulting in a Denial of Service condition against the system running Torbot [1].

Impact and

Mitigation

Successful exploitation allows an attacker to cause a Denial of Service, potentially disrupting the Torbot tool's availability for intelligence-gathering tasks. The project maintainers removed the vulnerable validators.py file in version 4.0.0, as shown in the referencing commit [3]. Users are strongly advised to upgrade to version 4.0.0 or later. There are no known workarounds for this vulnerability [1].

AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
torbotPyPI
< 4.0.04.0.0

Affected products

3

Patches

1
ef6e06bc7785

remove unused validators file

https://github.com/DedSecInside/TorBotAkeem KingOct 9, 2023via ghsa
1 file changed · +0 13
  • torbot/modules/validators.py+0 13 removed
    @@ -1,13 +0,0 @@
    -import validators
    -
    -
    -def validate_email(email):
    -    if not isinstance(email, str):
    -        return False
    -    return validators.email(email)
    -
    -
    -def validate_link(link):
    -    if not isinstance(link, str):
    -        return False
    -    return validators.url(link)
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.