CVE-2021-3382:
Buffer Overflow in gitea
7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.74909%
CWE
Published
4/24/2024
Updated
4/24/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/go-gitea/gitea | go | >= 1.9.0, < 1.13.2 | 1.13.2 |
Vulnerability Intelligence
Miggo AI
Root 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.