Time-of-check Time-of-use (TOCTOU) Race Condition Affecting chatterbot package, versions [,1.2.14)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-CHATTERBOT-17675229
  • published29 Jun 2026
  • disclosed19 Jun 2026
  • creditUnknown

Introduced: 19 Jun 2026

CVE-2026-58198  (opens in a new tab)
CWE-367  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade ChatterBot to version 1.2.14 or higher.

Overview

ChatterBot is a ChatterBot is a machine learning, conversational dialog engine

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via the extract function. An attacker can cause arbitrary files to be written to a directory of their choice by pre-planting a symlink at a predictable output path, which is then followed during archive extraction. This allows the attacker to control the destination of extracted files and potentially overwrite sensitive files or place malicious content.

CVSS Base Scores

version 4.0
version 3.1