Обход каталогов в кеше шаблонов GitHub PraisonAI позволяет запись файлов и удаление каталогов за пределами кеша
Кратко
PraisonAI, система мультиагентных команд, подвержена уязвимости в компоненте загрузки и кэширования шаблонов GitHub. Специально сформированная ссылка на шаблон может привести к записи файлов и удалению каталогов за пределами предполагаемой папки кэша, что потенциально позволяет удалить данные, выбранные злоумышленником, на хост-системе.
Резюме сгенерировано ИИ по данным источников и переведено автоматически.
Исправление
Исправлено в версиях: 4.6.59
Затронутые версии
| PraisonAI | с 2.6.0 → исправлено в 4.6.59 |
| praisonaiPyPI | с 2.6.0 → исправлено в 4.6.59 |
| praisonaiPyPI | с 2.6.0 → исправлено в 4.6.59 |
Оригинальное описание (EN)
Оригинальный заголовок: PraisonAI GitHub template cache path traversal allows outside-cache file write and directory deletion
PraisonAI is a multi-agent teams system. From version 2.6.0 to before version 4.6.59, PraisonAI's template loader accepts GitHub template URIs with refs, for example github:owner/repo/template@v1.0.0. The resolver stores the user-controlled template path and ref verbatim, and the cache layer later joins those values into ~/.praison/cache/templates/github/<owner>/<repo>/<template>/<ref> without normalizing each segment or checking that the final path remains inside the template cache root. A crafted ref such as ../../../../../../outside-delete-target therefore escapes the cache directory. The first load can write .cache_meta.json outside the cache. If the normal cache hierarchy for the same owner/repo/template has already been created, the same path reaches shutil.rmtree(cache_path) and removes an attacker-selected outside directory before replacing it with cache metadata. This issue has been patched in version 4.6.59.