Description
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed an attacker who had code execution inside the Dependabot updater container to write files to arbitrary repository paths, including GitHub Actions workflow files under .github/workflows/ as the path validation did not check the effective path which the attacker could control through the dependency file's directory and symlink target. If the repository used a pull_request_target workflow or had auto-merge enabled, an injected workflow could execute with access to the repository's GitHub Actions secrets. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.22 and was fixed in versions 3.21.3, 3.20.5, 3.19.9, 3.18.12, 3.17.18.
Published: 2026-07-17
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability stems from an unchecked path traversal check in GitHub Enterprise Server that allows an attacker who can execute code inside the Dependabot updater container to write files to any location within a repository. Because the effective path used when creating a file is not validated, the attacker can supply a specially crafted dependency-file path that resolves to a location inside the .github/workflows/ directory. If a pull_request_target workflow or auto-merge is enabled for that repository, the injected workflow can run with the repository’s GitHub Actions secrets, giving the attacker full access to privileged credentials and the ability to execute arbitrary code. The flaw therefore escalates local code execution to remote code execution with the permissions granted to GitHub Actions runner.

Affected Systems

GitHub Enterprise Server versions older than 3.22 are affected. The issue was addressed in the following releases: 3.21.3, 3.20.5, 3.19.9, 3.18.12, and 3.17.18. Any installation running a version prior to those mitigated releases is vulnerable, regardless of the deployment size or configuration.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity flaw. The EPSS score of less than 1% suggests that the probability of exploitation is currently low, and the vulnerability is not listed in CISA’s KEV catalog. An attacker must first attain code execution inside the Dependabot container, which is a non-trivial prerequisite. Once achieved, the attacker can write arbitrary workflow files; the subsequent execution hinges on the repository’s use of pull_request_target workflows or auto-merge, which are common for pull‑request integration. Therefore, while the chance of exploitation is limited, the potential impact—credential theft and arbitrary code execution—remains substantial.

Generated by OpenCVE AI on July 31, 2026 at 00:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade GitHub Enterprise Server to version 3.21.3 or later to apply the path‑traversal fix
  • If an upgrade cannot be performed immediately, review all repositories that use pull_request_target workflows or auto‑merge and either disable those features or restrict their use to trusted contributors
  • Regularly audit repository contents for newly added .github/workflows files, and remove any that are not part of a known workflow or that appear in untrusted branches

Generated by OpenCVE AI on July 31, 2026 at 00:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 17 Jul 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Github
Github enterprise Server
Vendors & Products Github
Github enterprise Server

Fri, 17 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 17 Jul 2026 16:00:00 +0000

Type Values Removed Values Added
Description A path traversal vulnerability was identified in GitHub Enterprise Server that allowed an attacker who had code execution inside the Dependabot updater container to write files to arbitrary repository paths, including GitHub Actions workflow files under .github/workflows/ as the path validation did not check the effective path which the attacker could control through the dependency file's directory and symlink target. If the repository used a pull_request_target workflow or had auto-merge enabled, an injected workflow could execute with access to the repository's GitHub Actions secrets. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.22 and was fixed in versions 3.21.3, 3.20.5, 3.19.9, 3.18.12, 3.17.18.
Title Path traversal vulnerability in GitHub Enterprise Server allowed writing files to arbitrary repository paths, including GitHub Actions workflow files, via unchecked Dependabot dependency-file paths
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Github Enterprise Server
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_P

Published:

Updated: 2026-07-17T16:33:04.480Z

Reserved: 2026-07-09T20:11:46.081Z

Link: CVE-2026-15343

cve-icon Vulnrichment

Updated: 2026-07-17T16:32:57.520Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T00:30:18Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')