← Vulnerability feed

Vulnerability record · CVE-2025-3509 · published 17 April 2025

CVE-2025-3509: Github enterprise server code injection vulnerability

Github · Enterprise Server

A Remote Code Execution (RCE) vulnerability was identified in GitHub Enterprise Server that allowed attackers to execute arbitrary code by exploiting the pre-receive hook functionality, potentially leading to privilege escalation and system compromise. The vulnerability involves using dynamically allocated ports that become temporarily available, such as during a hot patch upgrade. This means the vulnerability is only exploitable during specific operational conditions, which limits the attack window. Exploitation required either site administrator permissions to enable and configure pre-receive hooks or a user with permissions to modify repositories containing pre-receive hooks where this functionality was already enabled. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.18 and was fixed in versions 3.17.1, 3.16.4, 3.15.8, 3.14.13, 3.13.16. This vulnerability was reported via the GitHub Bug Bounty program.

7.1 CVSS 4.0 High EPSS 1.3% · top 30.9% CWE-94 · Code injection
7.1CVSS 4.0 base score
1.3%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
5References
17 Jun 2026Last modified by NVD

Description

A Remote Code Execution (RCE) vulnerability was identified in GitHub Enterprise Server that allowed attackers to execute arbitrary code by exploiting the pre-receive hook functionality, potentially leading to privilege escalation and system compromise. The vulnerability involves using dynamically allocated ports that become temporarily available, such as during a hot patch upgrade. This means the vulnerability is only exploitable during specific operational conditions, which limits the attack window. Exploitation required either site administrator permissions to enable and configure pre-receive hooks or a user with permissions to modify repositories containing pre-receive hooks where this functionality was already enabled. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.18 and was fixed in versions 3.17.1, 3.16.4, 3.15.8, 3.14.13, 3.13.16. This vulnerability was reported via the GitHub Bug Bounty program.

CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:N/R:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-3509 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2024-4985Github enterprise server vulnerabilityAn authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES) when utilizing SAML single sign-on authentication with the …EPSS 2.6%9.8CVE-2024-0200GitHub Enterprise Server unsafe reflection enables remote code executionGitHub Enterprise Server contains an unsafe reflection flaw (CWE-470) that allows reflection injection, letting an attacker execute user-controlled m…EPSS 72%analysed9.8CVE-2022-23739Github enterprise server incorrect authorization vulnerabilityAn incorrect authorization vulnerability was identified in GitHub Enterprise Server, allowing for escalation of privileges in GraphQL API requests fr…EPSS 1.2%9.8CVE-2022-46255Github enterprise server path traversal vulnerabilityAn improper limitation of a pathname to a restricted directory vulnerability was identified in GitHub Enterprise Server that enabled remote code exec…EPSS 1.5%9.8CVE-2021-22869Github enterprise server exposure of resource to wrong sphere vulnerabilityAn improper access control vulnerability in GitHub Enterprise Server allowed a workflow job to execute in a self-hosted runner group it should not ha…EPSS 1.2%9.5CVE-2024-9487Github enterprise server improper verification of cryptographic signature vulnerabilityAn improper verification of cryptographic signature vulnerability was identified in GitHub Enterprise Server that allowed SAML SSO authentication to …EPSS 26%9.5CVE-2024-6800Github enterprise server improper verification of cryptographic signature vulnerabilityAn XML signature wrapping vulnerability was present in GitHub Enterprise Server (GHES) when using SAML authentication with specific identity provider…EPSS 1.5%9.2CVE-2026-9312Github enterprise server server-side request forgery (ssrf) vulnerabilityA server-side request forgery (SSRF) vulnerability was identified in GitHub Enterprise Server that allowed an unauthenticated attacker to send crafte…EPSS 0.59%

Source: NIST National Vulnerability Database (record CVE-2025-3509), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.