CVE-2022-4863: usememos/memos vulnerable to Improper Handling of Insufficient Permissions or Privileges
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.2489%
CWE
Published
12/30/2022
Updated
2/3/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/usememos/memos | go | < 0.9.1 | 0.9.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from missing authorization checks after resource retrieval in multiple handlers. The patch added explicit creator ID verification post-fetch (e.g., checking memo.CreatorID != userID) where previously authorization was only enforced through query parameters. This pattern was present in memo, resource, and shortcut handlers. The JSON struct tag additions (json:"-") in API models prevent malicious parameter injection, but the core vulnerability was in the server-side handlers' authorization flow.