{"id":"CVE-2023-45813","aliases":["CVE-2023-45813","GHSA-72qw-p7hh-m3ff","PYSEC-2026-1969"],"related":[],"kind":"vulnerability","state":"published","title":"Inefficient Regular Expression Complexity in TorBot","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n_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.._\n\n### Details\nhttps://github.com/DedSecInside/TorBot/blob/d2b89192379ad033ffc7044efff26e16ccc02d5a/torbot/modules/validators.py#L13\n\nAn 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.\n\n### PoC\nI have uploaded a secret gist containing a PoC (https://gist.github.com/ikkebr/6041055314f1cfb8e65b2a1acbaae12c). By adding one special character at the end of the user argument of the URL, the regular expression will take exponentially longer to compute.\n\nFor a string of size 10k, the regex will take 0.01s without the well-crafted URL and 1.3s with the well-crafted URL exploit.\nFor a string of size 50k, the regex will take 0.03s without the well-crafted URL and 35s with the well-crafted URL exploit.\nFor a string of size 100k, the regex will take 0.05s without the well-crafted URL and over 200s with the well-crafted URL exploit.\n\nThe regular expression used in the validators library versions [0.20, 0.11] is vulnerable to this attack. Version 0.21 appears to be unaffected, but it no longer contains a single regular expression.\n\n### Impact\nAn attacker could exploit this vulnerability to cause a denial of service or increased resource usage.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Torbot es una herramienta de inteligencia de red Tor de código abierto. En las versiones afectadas, la `función torbot.modules.validators.validate_link` utiliza la expresión regular de validación de URL de python-validators. Esta expresión regular en particular tiene una complejidad exponencial que permite a un atacante provocar el bloqueo de una aplicación utilizando un argumento manipulado bien elaborado. Un atacante puede utilizar un argumento de URL manipulado bien elaborado para explotar la vulnerabilidad en la expresión regular y provocar una Denegación de Servicio en el System. El archivo de validadores se eliminó en la versión 4.0.0. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2023-10-18T20:26:44.531Z","modified":"2026-09-10T03:49:58.632Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":4.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"< 4.0.0","status":"affected"}],"vendor":"DedSecInside","product":"TorBot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.0"}],"ecosystem":"PyPI","package":"torbot","purl":"pkg:pypi/torbot","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.0.0"}],"vendor":"torbot_project","product":"torbot","cpe":"cpe:2.3:a:torbot_project:torbot:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"0.11.0"},{"status":"affected","version":"0.20.0"}],"vendor":"validators_project","product":"validators","cpe":"cpe:2.3:a:validators_project:validators:0.11.0:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.0"}],"ecosystem":"PyPI","package":"torbot","purl":"pkg:pypi/torbot","source":"pysec"}],"references":[{"url":"https://github.com/DedSecInside/TorBot/security/advisories/GHSA-72qw-p7hh-m3ff","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/DedSecInside/TorBot/commit/ef6e06bc7785355b1701d5524eb4550441086ac4","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45813","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://gist.github.com/ikkebr/6041055314f1cfb8e65b2a1acbaae12c","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/DedSecInside/TorBot","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/DedSecInside/TorBot/blob/d2b89192379ad033ffc7044efff26e16ccc02d5a/torbot/modules/validators.py#L13","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/torbot","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-72qw-p7hh-m3ff","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-09-13T14:38:17.210Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-45813","url":"https://www.cve.org/CVERecord?id=CVE-2023-45813","licence":"CVE Terms of Use","modified":"2024-09-13T14:39:25.852Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-72qw-p7hh-m3ff","url":"https://github.com/advisories/GHSA-72qw-p7hh-m3ff","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:58.632Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-45813","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45813","licence":"Public domain","modified":"2026-06-17T06:29:34.597Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1969","url":"https://osv.dev/vulnerability/PYSEC-2026-1969","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:05.329Z"}],"updatedAt":"2026-11-25T22:58:28.919Z","epss":{"score":0.00961,"percentile":0.6255,"date":"2026-12-01T12:00:22.000Z"}}