CVE-2026-15343: 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
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed an attacker with code execution inside a Dependabot updater container to write files to arbitrary repository paths, including GitHub Actions workflow files under .github/workflows/, because path validation did not check the actual write destination. The initial fix in versions 3.21.3, 3.20.5, 3.19.9, 3.18.12, and 3.17.18 was incomplete because validation checked the supplied symlink target, while the publisher wrote the file using its directory and name. Writing GitHub Actions workflow files required the Dependabot installation to have workflows: write permission. Depending on repository permissions and workflow configuration, including a relevant pullrequesttarget workflow or auto-merge, an injected workflow could execute with access to GitHub Actions secrets. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.23 and was fully fixed in versions 3.22.3, 3.21.8, 3.20.10, and 3.19.14. This vulnerability was reported via the GitHub Bug Bounty program.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.19.14 - Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.20.10 - Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.21.8 - Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.22.3
Event History
Frequently Asked Questions
What is the severity of CVE-2026-15343?
The severity of CVE-2026-15343 is high with a CVSS score of 8.6.
How do I fix CVE-2026-15343?
To fix CVE-2026-15343, update your GitHub Enterprise Server to the latest version where the vulnerability is patched.
What type of vulnerability is CVE-2026-15343?
CVE-2026-15343 is a path traversal vulnerability that affects GitHub Enterprise Server.
What can an attacker do with CVE-2026-15343?
An attacker can exploit CVE-2026-15343 to write files to arbitrary repository paths, potentially compromising GitHub Actions workflow files.
How does CVE-2026-15343 affect GitHub Enterprise Server?
CVE-2026-15343 affects GitHub Enterprise Server by allowing unauthorized file writing due to unchecked Dependabot dependency-file paths.