NetSight
mittel5.7Noch keine CVE

GHSA-3f4v-mp44-x4x2

Duplicate Advisory: PraisonAI: FastContext path resolution permits absolute and traversal reads outside the workspace

Auswirkung

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-4xxv-6wmf-xf45. This link is maintained to preserve external references. ### Original Description PraisonAI (praisonaiagents) before 1.6.78 contains a path traversal vulnerability in the FastContext feature (praisonaiagents.context.fast). FastContextAgent.execute_tool() prepends the configured workspace_path only for relative paths and neither rejects absolute paths nor canonicalizes joined paths before enforcing workspace containment. As a result, tool arguments or model-generated function calls to grep_search, glob_search, read_file, or list_directory can supply absolute paths or '../' traversal sequences to read, search, and enumerate files outside the intended workspace directory, with file contents returned to the caller or injected into the model's tool-result context.

Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
pippraisonaiagents<= 1.6.77nicht erfasst

Schwachstellenklasse

Referenzen