medium4.3
CVE-2025-56760
Memos Vulnerable to Path Traversal via the CreateResource Endpoint
Impact
When Memos 0.22 is configured to store objects locally, an attacker can create a file via the CreateResource endpoint containing a path traversal sequence in the name, allowing arbitrary file write on the server.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/usememos/memos | <= 0.22.0 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Usememos | Memos | Version 0.22.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/usememos/memos/blob/v0.24.4/server/router/api/v1/resource_service.go#L48
- https://www.sonarsource.com/blog/securing-go-applications-with-sonarqube-real-world-examples/
- https://github.com/advisories/GHSA-78j5-8vq7-jxv5
- https://nvd.nist.gov/vuln/detail/CVE-2025-56760
- https://www.sonarsource.com/blog/securing-go-applications-with-sonarqube-real-world-examples