CVE-2022-4734: usememos/memos may leak user information to an authenticated user
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.25567%
CWE
Published
12/27/2022
Updated
7/19/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/usememos/memos | go | <= 0.9.0 | 0.9.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incomplete data sanitization in system status responses. The commit 05b41804e33a specifically modifies the registerSystemRoutes function in server/system.go to add email field redaction. Before this patch, while OpenID was cleared, email remained in responses. This function handles authentication-gated system information endpoints, making it the logical point of exposure for authenticated user data leaks. The CWE-212 mapping confirms this is an improper sensitive data removal issue during response preparation.