# CVE-2025-65799: usememos memos path traversal in Attachment service

Source: https://junglewise.ai/threats/cve-2025-65799-usememos-memos-path-traversal-in-attachment-service  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-08. Updated: 2026-07-05  
License: CC BY 4.0 with a link back

CVE-2025-65799 · Severity: medium · CVSS 4.3 · Published 2025-12-08

A security vulnerability exists in Memos, a self-hosted note-taking application, specifically within its file attachment service. An authenticated user could exploit this flaw to save files outside of the intended storage directory, potentially overwriting critical system or application files. In practice, this could allow an attacker to corrupt the application's database, leading to data loss or service disruption.

Technologies: [github.com/usememos/memos (Go)](https://junglewise.ai/threats/technologies/github-com-usememos-memos), [Usememos Memos](https://junglewise.ai/threats/technologies/memos). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Usememos](https://junglewise.ai/threats/vendors/usememos).

## Quick answers

**Is CVE-2025-65799 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-65799 being exploited in the wild.

**How severe is CVE-2025-65799?** Medium severity, with a CVSS score of 4.3, published 8 December 2025.

**Which products and versions are affected?** github.com/usememos/memos (Go) SEMVER:introduced=0,fixed=0.25.3; Usememos Memos 0.25.2.

**Is there a fix for CVE-2025-65799?** Yes. github.com/usememos/memos (Go): upgrade to 0.25.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-65799 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2025-65799?** Check whether you run github.com/usememos/memos (Go) or Usememos Memos at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/usememos/memos (Go): upgrade to 0.25.3 or later

  ```sh
  go get github.com/usememos/memos@v0.25.3
  ```


## Technical details

A path traversal vulnerability (CWE-23/CWE-73) exists in the Attachment service of usememos memos v0.25.2. The application fails to validate or sanitize filenames provided during attachment creation or updates when local storage is used. An authenticated, low-privileged attacker can supply a filename containing traversal sequences (e.g., '../../') to write files to arbitrary locations on the host filesystem. This can be leveraged to overwrite the SQLite database file (memos_prod.db), resulting in data corruption or a denial-of-service condition. The issue was addressed in version 0.25.3 by implementing a 'validateFilename' function that rejects directory separators and dangerous path patterns.

## Affected products

- usememos memos 0.25.2

## Identifiers

- CVE-2025-65799
- GHSA-qgjp-5g5x-vhq2
- GO-2025-4218

## Timeline

- 2025-11-03: disclosed: First contact and pull request submitted
- 2025-11-05: patched: Fix merged to main branch
- 2025-11-25: patched: Version 0.25.3 released
- 2025-12-03: advisory: Third-party advisory published by usd HeroLab
- 2025-12-08: advisory: NVD publication date

## References

- [http://usememos.com/](http://usememos.com/)
- [https://github.com/usememos/memos/pull/5218](https://github.com/usememos/memos/pull/5218)
- [https://herolab.usd.de/security-advisories/usd-2025-0056/](https://herolab.usd.de/security-advisories/usd-2025-0056/)

## Related threats

- [Memos missing authorization in ActivityService API methods](https://junglewise.ai/threats/cve-2026-113601-memos-before-0-27-0-contains-a-missing-authorization)
- [Memos link-metadata fetcher SSRF via missing carrier-grade NAT range](https://junglewise.ai/threats/cve-2026-82476-memos-link-metadata-fetcher-ssrf-via-missing-carrier-grade-nat)
- [usememos Memos SSO account takeover via identifier mismatch](https://junglewise.ai/threats/cve-2026-51584-usememos-memos-sso-account-takeover-via-identifier-mismatch)
- [Memos Server-Side Request Forgery in webhook validation](https://junglewise.ai/threats/cve-2026-51583-memos-server-side-request-forgery-in-webhook-validation)
- [usememos Memos HTML injection and UI redressing in SANITIZE_SCHEMA](https://junglewise.ai/threats/cve-2026-30586-usememos-memos-html-injection-and-ui-redressing-in-sanitize)
