Skip to main content

Absolute Path Traversal

CVE-2024-10833

Severity High
Score 9.1/10

Summary

The package dbgpt versions through 0.6.1 are vulnerable to an arbitrary file write through the knowledge API. The endpoint for uploading files as `knowledge` is susceptible to Absolute Path Traversal, allowing attackers to write files to arbitrary locations on the target server. This vulnerability arises because the `doc_file.filename` parameter is user-controllable, enabling the construction of absolute paths.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-36 - Absolute Path Traversal

The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that is outside of that directory.

Advisory Timeline

  • Published