CVE-2024-5982CWE-22

Path Traversal in gaizhenbiao/chuanhuchatgpt

Critical · published October 29, 2024

CVSS v3.0
9.1
EPSS
31%
Percentile
98.3
In the wild
Unconfirmed
What it is

🔥 A sneaky path traversal vulnerability lurks in the latest version of gaizhenbiao/chuanhuchatgpt, allowing attackers to manipulate file paths like a magician pulling a rabbit out of a hat! This flaw is like a delivery driver following a poorly written address, leading them straight to the wrong location—your sensitive files! Attackers can exploit unsanitized inputs to navigate through your directories, with potentially devastating consequences. An attacker could exploit this vulnerability to upload malicious files, execute arbitrary code, or even leak sensitive information from CSV files. With critical access, they could take complete control over your server, compromising not just your data but your entire system's integrity. It's like leaving the door wide open for intruders to waltz right in!

Put simply

This flaw is like a delivery driver following a poorly written address, leading them straight to the wrong location—your sensitive files! Attackers can exploit unsanitized inputs to navigate through your directories, with potentially devastating consequences. The vulnerability arises from improper sanitization of user inputs in multiple functions, particularly in file uploads and directory creation, allowing attackers to traverse directories and execute arbitrary code via crafted inputs.

What to do

An attacker could exploit this vulnerability to upload malicious files, execute arbitrary code, or even leak sensitive information from CSV files. With critical access, they could take complete control over your server, compromising not just your data but your entire system's integrity. It's like leaving the door wide open for intruders to waltz right in! Patch the application to the latest version immediately. Review the input handling in the load_chat_history, get_history_names, and load_template functions to ensure proper sanitization. Implement strict validation checks to prevent harmful path manipulations. You've got this! By following these steps, you can secure your application and bolster your defenses. 🛡️

The record
Technical detail
CVSS v3.0
9.1 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.31305 · 98.3th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2024-10-29T12:46Z
EPSS history
Timeline
  • 29 OCT 12:46Z
    Path Traversal in gaizhenbiao/chuanhuchatgpt
    cvelistv5