{"id":"CVE-2026-58198","state":"PUBLISHED","title":"ChatterBot: Symlink-Following Arbitrary Write via UbuntuCorpusTrainer","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.","publishedAt":"2026-07-09T18:32:16.074Z","updatedAt":"2026-07-09T19:12:29.625Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["gunthercox ChatterBot"],"affected":[{"vendor":"gunthercox","product":"ChatterBot","versions":[{"version":"< 1.2.14","status":"affected"}]}],"references":["https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-wvrh-2f4m-924v","https://github.com/gunthercox/ChatterBot/pull/2445","https://github.com/gunthercox/ChatterBot/commit/82817b5c28bfd43e682b991bcc76e6f780726dbf","https://github.com/gunthercox/ChatterBot/releases/tag/1.2.14"],"weaknesses":["CWE-367","CWE-59"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/58xxx/CVE-2026-58198.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-58198","state":"PUBLISHED","datePublished":"2026-07-09T18:32:16.074Z","dateUpdated":"2026-07-09T19:12:29.625Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-29T17:09:25.872Z"},"containers":{"cna":{"title":"ChatterBot: Symlink-Following Arbitrary Write via UbuntuCorpusTrainer","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"gunthercox","product":"ChatterBot","versions":[{"version":"< 1.2.14","status":"affected"}]}],"references":[{"url":"https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-wvrh-2f4m-924v","name":"https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-wvrh-2f4m-924v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gunthercox/ChatterBot/pull/2445","name":"https://github.com/gunthercox/ChatterBot/pull/2445","tags":["x_refsource_MISC"]},{"url":"https://github.com/gunthercox/ChatterBot/commit/82817b5c28bfd43e682b991bcc76e6f780726dbf","name":"https://github.com/gunthercox/ChatterBot/commit/82817b5c28bfd43e682b991bcc76e6f780726dbf","tags":["x_refsource_MISC"]},{"url":"https://github.com/gunthercox/ChatterBot/releases/tag/1.2.14","name":"https://github.com/gunthercox/ChatterBot/releases/tag/1.2.14","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-367","lang":"en","description":"CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-09T18:32:16.074Z"},"source":{"advisory":"GHSA-wvrh-2f4m-924v","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-wvrh-2f4m-924v","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-09T19:12:08.575193Z","id":"CVE-2026-58198","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-09T19:12:29.625Z"}}]}}}