{"answers":{"affected":"3 open source packages ship an affected version, including torbot. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45813 exists.","fix":"Upgrade torbot to 4.0.0 or later.","what":"CVE-2023-45813 is a medium-severity denial of service vulnerability in DedSecInside TorBot, published on 18 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-45813 and fix it if it is affected.\n\nWhat it is: CVE-2023-45813 is a medium-severity denial of service vulnerability in DedSecInside TorBot, published on 18 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45813 exists.\n\nAffected packages and fixed versions:\n- torbot (PyPI): affected all versions; fixed in 4.0.0\n- torbot (PyPI): affected all versions; fixed in 4.0.0\n- torbot (PyPI): affected all versions; fixed in 4.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-45813/ (Markdown: https://insights.sbomify.com/CVE-2023-45813/index.md)","id":"CVE-2023-45813","markdown":"https://insights.sbomify.com/CVE-2023-45813/index.md","name":"CVE-2023-45813","record":{"aliases":["GHSA-72qw-p7hh-m3ff","PYSEC-2026-1969"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Tor network intelligence tool","requires_auth":"none","summary":"An attacker can cause a Denial of Service in TorBot by submitting a specially crafted URL that triggers exponential complexity in a regular expression.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"torbot","vendor":"torbot_project"},{"product":"validators","vendor":"validators_project"}],"cvss":{"score":4.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Inefficient Regular Expression Complexity in TorBot","id":"CVE-2023-45813","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"Tokens cached in the AuthenticationService are susceptible to reuse in Bunkum","id":"CVE-2023-45814"},"packages":[{"ecosystem":"PyPI","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"torbot","purl":null,"source":"GHSA-72qw-p7hh-m3ff"},{"ecosystem":"PyPI","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"torbot","purl":"pkg:pypi/torbot","source":"GHSA-72qw-p7hh-m3ff"},{"ecosystem":"PyPI","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"torbot","purl":"pkg:pypi/torbot","source":"PYSEC-2026-1969"}],"prev":{"headline":"Improper Check or Handling of Exceptional Conditions in apollo-router","id":"CVE-2023-45812"},"products":["TorBot"],"published":"2023-10-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-13","vendors":["DedSecInside"]},"summary":"An attacker can cause a Denial of Service in TorBot by submitting a specially crafted URL that triggers exponential complexity in a regular expression.","url":"https://insights.sbomify.com/CVE-2023-45813/"}