Description
ChatterBot is a machine learning, conversational dialog engine for creating chat bots. Prior to 1.2.14, UbuntuCorpusTrainer.extract() uses a predictable home-rooted output directory (~/ubuntu_data/ubuntu_dialogs) with a check-then-create pattern followed by tar.extractall(path=self.data_path), allowing a local attacker who pre-plants a symlink at the predictable path to cause archive contents to be written through the symlink to an attacker-chosen directory. This issue is fixed in version 1.2.14.
Published: 2026-07-09
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Prior to release 1.2.14, the UbuntuCorpusTrainer in ChatterBot extracts archives into a predictable directory located at the user’s home. The extraction process uses a check‑then‑create pattern followed by a tar.extractall call, which follows symbolic links. A local attacker who can pre‑plant a symlink at the expected path can cause the archive to write files through that symlink into an arbitrary location of the attacker’s choosing, effectively allowing arbitrary file modification or overwriting of critical files. The weakness is classified as CWE-367 and CWE-59, involving race conditions and symlink exploitation.

Affected Systems

The vulnerability affects the ChatterBot machine learning conversational engine produced by gunthercox:ChatterBot. All releases prior to version 1.2.14 are vulnerable. The issue is fixed in release 1.2.14 and later, so any deployment using an earlier version must be upgraded.

Risk and Exploitability

The CVSS score of 5.5 indicates a moderate severity; the EPSS score is < 1%, indicating a low exploitation probability, and the vulnerability has not been listed in the CISA KEV catalogue. Because the flaw requires local file‑system access and the ability to supply an archive to the trainer, the attack vector is inferred to be local. An attacker would need to execute or influence the ChatterBot process or place files in the user’s home directory, limiting the threat to environments where untrusted code runs with the same user access level or where an attacker has local device access.

Generated by OpenCVE AI on July 29, 2026 at 12:04 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ChatterBot to version 1.2.14 or later.
  • If upgrading is not immediately possible, configure not writable by untrusted users and monitor that directory for unexpected symlinks.
  • Consider applying filesystem ACLs or permissions that disallow following symlink extraction in the designated data directory, or use tar options that refuse symlink extraction if the tool supports them.

Generated by OpenCVE AI on July 29, 2026 at 12:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 09 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Gunthercox
Gunthercox chatterbot
Vendors & Products Gunthercox
Gunthercox chatterbot

Thu, 09 Jul 2026 18:45:00 +0000

Type Values Removed Values Added
Description ChatterBot is a machine learning, conversational dialog engine for creating chat bots. Prior to 1.2.14, UbuntuCorpusTrainer.extract() uses a predictable home-rooted output directory (~/ubuntu_data/ubuntu_dialogs) with a check-then-create pattern followed by tar.extractall(path=self.data_path), allowing a local attacker who pre-plants a symlink at the predictable path to cause archive contents to be written through the symlink to an attacker-chosen directory. This issue is fixed in version 1.2.14.
Title ChatterBot: Symlink-Following Arbitrary Write via UbuntuCorpusTrainer
Weaknesses CWE-367
CWE-59
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Gunthercox Chatterbot
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T19:12:29.625Z

Reserved: 2026-06-29T17:09:25.872Z

Link: CVE-2026-58198

cve-icon Vulnrichment

Updated: 2026-07-09T19:12:25.892Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T12:15:03Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')