Skip to main content
VulnerabilityPublished Updated

CVE-2025-3509: GitHub Enterprise Server · Code Injection

Affects GitHub Enterprise ServerSource CVE Database V5

0

Not known to be exploited · CVSS 7.1 High · fixed in 3.17.1 : patch GitHub Enterprise Server soon.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 4.0 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.3% chance of exploitation in 30 days – higher than 70% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.17.1
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/AU:N/R:U/V:C/RE:M/U:Amber

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Apr 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHub Enterprise ServerAffected
  • 3.13.0 – 13.17.0
5 affected builds
Fixed in–

AI-suggested

  1. Immediate upgrade of all GitHub Enterprise Server instances to the fixed versions (3.17.1, 3.16.4, 3.15.8, 3.14.13, or 3.13.16) to eliminate the vulnerability.
  2. Restrict pre-receive hook configuration permissions strictly to trusted site administrators and audit all existing pre-receive hooks for suspicious or unauthorized scripts.
  3. Implement network segmentation and firewall rules to limit exposure of dynamically allocated ports during hot patch upgrades, minimizing the attack surface during vulnerable operational states.
  4. Monitor logs for unusual activity related to pre-receive hook execution and port usage during upgrade windows.
  5. Employ strict access controls and multi-factor authentication for site administrators and repository maintainers to reduce the risk of privilege abuse.
  6. Conduct regular security reviews of DevOps infrastructure and integrate vulnerability scanning for GitHub Enterprise Server versions as part of patch management processes.
  7. Consider temporary disabling of pre-receive hooks during upgrade windows if operationally feasible to eliminate the attack vector during the limited exposure period.

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.

References

Community reviews

Loading reviews…