BreachSpiderVerified, not vibes

CVE-2022-30781 in Gitea

High 7.5 Public exploit reported

Gitea before 1.16.7 does not escape git fetch remote.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS58.5%
EPSS percentile99th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Gitea Gitea < 1.16.7

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official description

Gitea before 1.16.7 does not escape git fetch remote.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-30781
BreachSpider IDBS-2022-GLOBAL-254493-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2022-05-16
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-116: CWE-116

Related attack patterns (CAPEC)

CAPEC-81 Web Server Logs Tampering via CWE-116

CAPEC-85 AJAX Footprinting via CWE-116

CAPEC-73 User-Controlled Filename via CWE-116

CAPEC-104 Cross Zone Scripting via CWE-116

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2022-30781 affects Gitea versions before 1.16.7, where the git fetch remote is not properly escaped, leading to potential injection attacks. This vulnerability has a CVSS score of 7.5 and is rated as HIGH in terms of exploitation likelihood. Immediate remediation is recommended to prevent potential data integrity issues and unauthorized access to the Gitea repository.

The vulnerability allows an attacker to inject arbitrary commands into the git fetch process due to insufficient input validation and escaping. This can lead to unauthorized access and manipulation of the repository, potentially compromising the integrity of the codebase and the security of the development environment.

Compensating controls AI-drafted, review before use

Implement strict input validation and sanitization for all git fetch commands in the Gitea application. Additionally, configure network firewalls to block suspicious traffic patterns associated with this vulnerability.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2022-30781?

CVE-2022-30781 affects Gitea versions before 1.16.7, where the git fetch remote is not properly escaped, leading to potential injection attacks. This vulnerability has a CVSS score of 7.5 and is rated as HIGH in terms of exploitation likelihood. Immediate remediation is recommended to prevent potential data integrity issues and unauthorized access to the Gitea repository.

What is the CVSS score for CVE-2022-30781?

CVE-2022-30781 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 58.5%.

Is CVE-2022-30781 actively exploited?

Public exploit available for CVE-2022-30781. Exploitation risk elevated.

How do I remediate CVE-2022-30781?

Priority: IMMEDIATE. Advisory: https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/ PSIRT: [email protected]

What systems are affected by CVE-2022-30781?

CVE-2022-30781 affects Gitea Gitea.

What NERC-CIP standard applies to CVE-2022-30781?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 by not ensuring the security of the electronic access to the control system, as the unescaped git fetch command can be exploited to gain unauthorized access and manipulate the repository.

What IEC 62443 requirement maps to CVE-2022-30781?

IEC 62443 SR 7.6: This CVE maps to SR 7.6, which requires the implementation of secure coding practices to prevent injection attacks. The unescaped git fetch command in Gitea can be exploited to inject arbitrary commands, compromising the security of the system.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Gitea","product":"Gitea","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.