【高危】EverOS: Path traversal in EverOS /api/v1/memory/add via unvalidated sender_id
安全速报 · 严重级:高危 · CVSS:8.2 · GHSA-c795-2g9c-j48m
漏洞概要
EverOS versions 1.0.0 and earlier are vulnerable to path traversal in the POST /api/v1/memory/add ingestion endpoint. The per-message sender_id field was not validated as a path-safe identifier (unlike app_id / project_id, which already enforced this). During user-memory extraction, sender_id is used as the owner_id and joined into the filesystem path where the extracted episode is persisted as a Markdown file. A sender_id containing ../ sequences could direct the write outside the configured memory root, allowing an unauthenticated caller to create or overwrite .md files at locations writable by the server process (unauthorized arbitrary file write). The file content is partially attacker-influenced.
Patch: Fixed in v1.0.1 with (1) path-safe validation on sender_id (character whitelist plus rejection of the . and .. tokens) and (2) a defense-in-depth containment check in the Markdown writer that rejects any write resolving outside the memory root before any filesystem access, covering both the write and the append read-modify-write paths.
Remediation: Upgrade to EverOS 1.0.1. There is no workaround for affected versions other than upgrading.
受影响组件
| 生态 | 组件 | 受影响版本 | 修复版本 |
|---|---|---|---|
| pip | everos |
<= 1.0.0 | 1.0.1 |
修复建议
升级 everos 至 1.0.1 或更高版本。
参考链接
- GitHub Advisory GHSA-c795-2g9c-j48m
- https://github.com/EverMind-AI/EverOS/security/advisories/GHSA-c795-2g9c-j48m
- https://github.com/EverMind-AI/EverOS/releases/tag/v1.0.1
本文基于 GitHub Advisory Database(CC-BY-4.0 授权)整理,数据来源已注明。
评论
登录 后参与讨论。
还没有评论,来说两句。