ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability is located in the filter_history function within the utils.py module. This function takes a user-provided keyword and attempts to match it against chat history filenames using a regular expression search. Due to the lack of sanitization or validation of the keyword parameter, an attacker can inject a specially crafted regular expression, leading to a denial of service condition. This can cause severe degradation of service performance and potential system unavailability.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-6038
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 07:07 UTC · Revision 1
Source evidence
ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt
core-osv · Original sourcePublished 27 Jun 2024, 18:41 UTC
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability is located in the filter_history function within the utils.py module. This function takes a user-provided keyword and attempts to match it against chat history filenames using a regular expression search. Due to the lack of sanitization or validation of the keyword parameter, an attacker can inject a specially crafted regular expression, leading to a denial of service condition. This can cause severe degradation of service performance and potential system unavailability.
osv:CVE-2024-6038
Complete source record
{
"id": "0baab14be109971c8619f19e28d47495b7597bf27239eeff899479c7c342eee9",
"url": "https://osv.dev/vulnerability/CVE-2024-6038",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt",
"summary": "A Regular Expression Denial of Service (ReDoS) vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability is located in the filter_history function within the utils.py module. This function takes a user-provided keyword and attempts to match it against chat history filenames using a regular expression search. Due to the lack of sanitization or validation of the keyword parameter, an attacker can inject a specially crafted regular expression, leading to a denial of service condition. This can cause severe degradation of service performance and potential system unavailability.",
"evidence": "osv:CVE-2024-6038",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-6038",
"aliases": [
"CVE-2024-6038",
"PYSEC-2024-318"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gaizhenbiao/chuanhuchatgpt",
"type": "GIT",
"events": [
{
"introduced": "20240410"
},
{
"fixed": "fcdd5fd6b05ef537a1db185ab115758d87e1ba3f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:20240410:*:*:*:*:*:*:*",
"range": [
{
"introduced": "20240410"
},
{
"last_affected": "20240410"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "fcdd5fd6b05ef537a1db185ab115758d87e1ba3f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"20240410"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6038.json"
}
}
],
"modified": "2026-10-28T02:30:50.099971029Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/d41cca0a-82bc-4cbf-a52a-928d304fb42d",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6038.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-6038",
"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/fcdd5fd6b05ef537a1db185ab115758d87e1ba3f"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1333"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6038.json"
}
},
"related_cves": [
{
"value": "CVE-2024-6038",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518597,
"published_at": "2024-06-27T18:41:45.405+00:00"
}