cve.bz

CVE-2025-3509 github enterprise server: Code Injection

7.1 highEPSS 1.3%Fix available

High (7.1) in github enterprise server. EPSS 1.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

7.1 high
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

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • GitHub Enterprise Server: fixed in 3.13.16
  • GitHub Enterprise Server: fixed in 3.14.13
  • GitHub Enterprise Server: fixed in 3.15.8
  • GitHub Enterprise Server: fixed in 3.16.4
  • GitHub Enterprise Server: fixed in 3.17.1

Ask an AI about this CVE

Show the promptExplain CVE-2025-3509 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-3509?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-3509?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-3509 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GitHub Enterprise Serverfrom 3.13.0 through 3.13.15
GitHub Enterprise Serverfrom 3.14.0 through 3.14.12
GitHub Enterprise Serverfrom 3.15.0 through 3.15.7
GitHub Enterprise Serverfrom 3.16.0 through 3.16.3
GitHub Enterprise Serverfrom 13.17.0 before 13.17.1

Fixed in

ProductFixed in
GitHub Enterprise Server3.13.16
GitHub Enterprise Server3.14.13
GitHub Enterprise Server3.15.8
GitHub Enterprise Server3.16.4
GitHub Enterprise Server3.17.1

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON