CVE-2026-73539

Gitea external renderer argument injection and code execution

Published Oct 14, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Gitea substitutes a URL derived from the markup Context field into external renderer command templates without escaping the reference path before shell-style argument splitting. A crafted Context can inject additional renderer arguments, including options that load executable filter files. On deployments using a susceptible external renderer such as pandoc, a user who can place a filter file at an accessible path can cause it to execute as the Gitea service account; the public repository markup endpoint itself can be reachable without authentication.

Analysis

AI-generated

Technical impact

Gitea substitutes a URL derived from the markup Context field into external renderer command templates without escaping the reference path before shell‑style argument splitting. A crafted Context can inject additional renderer arguments, including options that load executable filter files. If a susceptible external renderer such as pandoc is available, an attacker who can place a filter file at an accessible path can cause it to execute as the Gitea service account. The public repository markup endpoint is reachable without authentication, enabling remote exploitation. The vulnerability is classified under CWE-88 as an improper handling of an injected type.

Affected Systems

The vulnerability affects Gitea installations that enable external renderers such as pandoc before the release of version 1.27.2. All prior versions are vulnerable; the 1.27.2 release includes the fix. Users running older Gitea instances should update or disable the external renderer feature.

Risk and Exploitability

The CVSS score is 7.5, and the EPSS score is < 1%, but the vulnerability is not currently indexed in the CISA KEV catalog. Given that the public markup endpoint can be accessed without authentication, exploitation is feasible by any internet-connected attacker who can craft a malicious Context field. The attacker must only supply a path to a filter file they can write to a location reachable by the Gitea process. Once the external renderer runs, arbitrary code would execute under the privileges of the Gitea service account, giving the attacker local root‑like access to the underlying host. The absence of a KEV listing does not preclude exploitation; it simply indicates no known large-scale campaigns have been observed yet.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.2 or later to apply the vendor fix.
  • If an upgrade is not immediately possible, disable the external renderer feature or remove configuration of external renderers such as pandoc.
  • Restrict or remove public access to the repository markup endpoint, requiring authentication so that only authorized users can submit markup with a Context field.
  • Prevent unauthorized write access to directories from which external renderers load filter files, limiting the attacker’s ability to place malicious files.

Generated by OpenCVE AI on October 18, 2026 at 15:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Gitea substitutes a URL derived from the markup Context field into external renderer command templates without escaping the reference path before shell-style argument splitting. A crafted Context can inject additional renderer arguments, including options that load executable filter files. On deployments using a susceptible external renderer such as pandoc, a user who can place a filter file at an accessible path can cause it to execute as the Gitea service account; the public repository markup endpoint itself can be reachable without authentication.
Title Gitea external renderer argument injection and code execution
Weaknesses CWE-88
References
Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 18, 2026, 1:32 PM
Reserved
Aug 13, 2026, 4:50 PM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 18, 2026, 2:16 PM