cve.bz

CVE-2024-6886 gitea gitea open source git server: Cross-site Scripting

10.0 criticalEPSS 33%Fix available

Critical (10.0) in gitea gitea open source git server. EPSS 33% estimated probability of exploitation activity in the next 30 days. Fixed in code.gitea.io/gitea 1.22.1.

On this page
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea Open Source Git Server allows Stored XSS.This issue affects Gitea Open Source Git Server: 1.22.0.

Severity

CVSS 4.0

10.0 critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
EPSS
33% (unchanged from 33% a week ago; 33% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2024-08-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • code.gitea.io/gitea (Go): fixed in 1.22.1

Ask an AI about this CVE

Show the promptExplain CVE-2024-6886 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-6886?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-6886?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-6886 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Gitea Open Source Git Server1.22.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4h4p-553m-46qhGocode.gitea.io/gitea<1.22.11.22.1
GO-2024-3056Gocode.gitea.io/gitea<1.22.11.22.1

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is specific to the Gitea server application, which is not shipped or used by any Red Hat products. While some components may use the Gitea Go SDK, the SDK is a client library and is not impacted by this server-side vulnerability.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

ProductPackageStateAdvisory
OpenShift Pipelinesopenshift-pipelines-clientNot affected
Red Hat OpenShift AI (RHOAI)odh-ml-pipelines-api-server-containerNot affected
Red Hat OpenShift AI (RHOAI)odh-ml-pipelines-artifact-manager-containerNot affected
Red Hat OpenShift AI (RHOAI)odh-ml-pipelines-cache-containerNot affected
Red Hat OpenShift AI (RHOAI)odh-ml-pipelines-persistenceagent-containerNot affected
Red Hat OpenShift AI (RHOAI)odh-ml-pipelines-scheduledworkflow-containerNot affected
Red Hat OpenShift Data Science (RHODS)rhods/odh-ml-pipelines-api-server-rhel8Not affected
Red Hat OpenShift Data Science (RHODS)rhods/odh-ml-pipelines-artifact-manager-rhel8Not affected
Red Hat OpenShift Data Science (RHODS)rhods/odh-ml-pipelines-cache-rhel8Not affected
Red Hat OpenShift Data Science (RHODS)rhods/odh-ml-pipelines-persistenceagent-rhel8Not affected
Red Hat OpenShift Data Science (RHODS)rhods/odh-ml-pipelines-scheduledworkflow-rhel8Not affected
Red Hat OpenShift GitOpsopenshift-gitops-1/argocd-rhel8Not affected
Red Hat OpenShift GitOpsopenshift-gitops-1/argocd-rhel9Not affected
Red Hat OpenShift GitOpsopenshift-gitops-1/dex-rhel8Not affected
Red Hat OpenShift GitOpsopenshift-gitops-1/gitops-operator-bundleNot affected
Red Hat OpenShift GitOpsopenshift-gitops-1/gitops-rhel8Not affected
Red Hat OpenShift GitOpsopenshift-gitops-1/kam-delivery-rhel8Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-6886.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON