Skip to content

Limited file write in routes.py (GHSL-2023-250)

Low
dartpain published GHSA-p5qc-vj2x-9rjp Apr 12, 2024

Package

No package listed

Affected versions

v0.5.0

Patched versions

v0.8.1

Description

DocsGPT v0.5.0 is vulnerable to unauthenticated limited file write.

Fix commit: d36f582

Severity

Low

CVE ID

CVE-2024-31451

Weaknesses

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. Learn more on MITRE.

Credits