{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-58198",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-06-29T17:09:25.872Z",
        "datePublished": "2026-07-09T18:32:16.074Z",
        "dateUpdated": "2026-07-09T19:12:29.625Z"
    },
    "containers": {
        "cna": {
            "title": "ChatterBot: Symlink-Following Arbitrary Write via UbuntuCorpusTrainer",
            "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"
                        }
                    ]
                }
            ],
            "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"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-wvrh-2f4m-924v",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-wvrh-2f4m-924v"
                },
                {
                    "name": "https://github.com/gunthercox/ChatterBot/pull/2445",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/gunthercox/ChatterBot/pull/2445"
                },
                {
                    "name": "https://github.com/gunthercox/ChatterBot/commit/82817b5c28bfd43e682b991bcc76e6f780726dbf",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/gunthercox/ChatterBot/commit/82817b5c28bfd43e682b991bcc76e6f780726dbf"
                },
                {
                    "name": "https://github.com/gunthercox/ChatterBot/releases/tag/1.2.14",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/gunthercox/ChatterBot/releases/tag/1.2.14"
                }
            ],
            "affected": [
                {
                    "vendor": "gunthercox",
                    "product": "ChatterBot",
                    "versions": [
                        {
                            "version": "< 1.2.14",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-07-09T18:32:16.074Z"
            },
            "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."
                }
            ],
            "source": {
                "advisory": "GHSA-wvrh-2f4m-924v",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "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"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-07-09T19:12:29.625Z"
                }
            }
        ]
    }
}