CVE-2022-4767: usememos/memos Denial of Service vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.20629%
CWE
Published
12/27/2022
Updated
2/3/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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 missing input validation on user-controllable fields (username, password, nickname, email) in both user creation and update operations. The UserCreate.Validate
function lacked maximum length checks, and the UserPatch
struct had no validation method. The server's PATCH handler only checked email format, not other fields. Attackers could exploit this by sending large input values, leading to uncontrolled resource consumption (CWE-400). The patch added proper validation in UserCreate.Validate
and introduced UserPatch.Validate
, which the server now uses.