CVE-2021-3382: 
NixOS vulnerability analysis and mitigation

Overview

A stack buffer overflow vulnerability was identified in Gitea versions 1.9.0 through 1.13.1. The vulnerability, tracked as CVE-2021-3382, was discovered in January 2021 and publicly disclosed on February 5, 2021. The issue stems from the incorrect use of filepath instead of path in the software's routing system (NVD, Ubuntu Security).

Technical details

The vulnerability occurs due to the improper implementation of file path handling in Gitea's routing system, specifically in the routers/editor component. The issue manifests when filepath is incorrectly used instead of path, which can lead to a stack overflow condition particularly on Windows systems. The vulnerability has been assigned a CVSS 3.1 base score of 7.5 (High), with attack vector being Network, attack complexity Low, and requiring no privileges or user interaction (Ubuntu Security, Gitea PR).

Impact

When exploited, this vulnerability allows remote attackers to cause a denial of service condition, resulting in a system crash. The impact assessment indicates that while there are no confidentiality or integrity impacts, the availability impact is rated as High (Ubuntu Security).

Exploitability

The vulnerability is exploitable over the network with low attack complexity and requires no privileges or user interaction. The attack vector is related to file path manipulation, which can trigger a stack overflow condition specifically on Windows systems (Gitea PR).

Mitigation and workarounds

The vulnerability was addressed through a pull request (#14390) that corrected the usage of path instead of filepath in the routers/editor component. The fix was merged into the master branch and backported to affected versions (Gitea PR).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

gitea: 1.13.2-r0

Fixed

v3.18

gitea: 1.13.2-r0

Fixed

v3.19

gitea: 1.13.2-r0

Fixed

v3.20

gitea: 1.13.2-r0

Fixed

v3.21

gitea: 1.13.2-r0

Fixed

v3.22

gitea: 1.13.2-r0

Fixed

v3.23

gitea: 1.13.2-r0

Fixed

Arch Linux

Fixed

rolling

gitea: 1.13.2-1

Fixed

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-106016CRITICAL9.8
  • NixOS logoNixOS
  • firefox
NoYesOct 06, 2026
CVE-2026-104048HIGH8.1
  • NixOS logoNixOS
  • libsss_sudo
NoYesOct 06, 2026
CVE-2026-104047MEDIUM5.3
  • NixOS logoNixOS
  • libipa_hbac
NoYesOct 06, 2026
CVE-2026-105758MEDIUM5.3
  • NixOS logoNixOS
  • vllm
NoYesOct 05, 2026
CVE-2026-105922LOW2.1
  • NixOS logoNixOS
  • vllm
NoNoOct 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management