Miggo Logo

CVE-2021-3382:
Buffer Overflow in gitea

7

CVSS Score
3.1

Basic Information

EPSS Score
0.74909%
Published
4/24/2024
Updated
4/24/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/go-gitea/giteago>= 1.9.0, < 1.13.21.13.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The key evidence comes from the fix in PR #14390 which replaced filepath with path in routers/editor.go. Filepath functions on Windows resolve path separators and clean paths differently, enabling attackers to craft malicious paths that exceed stack buffer limits through repeated directory traversals. The commit message explicitly states this caused stack overflow vulnerabilities, and the CWE-787 classification confirms this is an out-of-bounds write scenario.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

St**k *u***r ov*r*low vuln*r**ility in *it** *.*.* t*rou** *.**.* *llows r*mot* *tt**k*rs to **us* * **ni*l o* s*rvi** (*r*s*) vi* v**tors r*l*t** to * *il* p*t*.

Reasoning

T** k*y *vi**n** *om*s *rom t** *ix in PR #***** w*i** r*pl**** *il*p*t* wit* p*t* in rout*rs/**itor.*o. *il*p*t* *un*tions on Win*ows r*solv* p*t* s*p*r*tors *n* *l**n p*t*s *i***r*ntly, *n**lin* *tt**k*rs to *r**t m*li*ious p*t*s t**t *x**** st**k