# CVE-2023-45813: Inefficient Regular Expression Complexity in TorBot

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-18T20:26:44.531Z
- Modified: 2026-09-10T03:49:58.632Z
- Also known as: GHSA-72qw-p7hh-m3ff, PYSEC-2026-1969
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- DedSecInside TorBot: < 4.0.0
- torbot (PyPI): before 4.0.0
- torbot_project torbot: before 4.0.0
- validators_project validators: 0.11.0; 0.20.0

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/DedSecInside/TorBot/security/advisories/GHSA-72qw-p7hh-m3ff> (exploit, vendor-advisory, web)
- <https://github.com/DedSecInside/TorBot/commit/ef6e06bc7785355b1701d5524eb4550441086ac4> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45813> (advisory)
- <https://gist.github.com/ikkebr/6041055314f1cfb8e65b2a1acbaae12c> (web)
- <https://github.com/DedSecInside/TorBot> (package)
- <https://github.com/DedSecInside/TorBot/blob/d2b89192379ad033ffc7044efff26e16ccc02d5a/torbot/modules/validators.py#L13> (web)
- <https://pypi.org/project/torbot> (package)
- <https://github.com/advisories/GHSA-72qw-p7hh-m3ff> (advisory)

## Sources

- CVE List: [CVE-2023-45813](https://www.cve.org/CVERecord?id=CVE-2023-45813), CVE Terms of Use, modified 2024-09-13
- GitHub Advisory Database: [GHSA-72qw-p7hh-m3ff](https://github.com/advisories/GHSA-72qw-p7hh-m3ff), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-45813](https://nvd.nist.gov/vuln/detail/CVE-2023-45813), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1969](https://osv.dev/vulnerability/PYSEC-2026-1969), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-45813 · Whole record: https://cve.day/CVE-2023-45813.json · Rebuilt by cve.day 2026-11-25T22:58:28.919Z
