// For flags

CVE-2025-3509

Pre-Receive Hook Remote Code Execution vulnerability was identified in GitHub Enterprise Server that allowing Privilege Escalation

Severity Score

7.1
*CVSS v4

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track
*SSVC
Descriptions

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.17 and was fixed in versions 3.16.2, 3.15.6, 3.14.11, 3.13.14. This vulnerability was reported via the GitHub Bug Bounty program.

Se identificó una vulnerabilidad de ejecución remota de código (RCE) en GitHub Enterprise Server que permitía a los atacantes ejecutar código arbitrario explotando la funcionalidad del gancho de prerecepción, lo que podría provocar una escalada de privilegios y comprometer el sistema. La vulnerabilidad implica el uso de puertos asignados dinámicamente que se vuelven temporalmente disponibles, como durante una actualización de parches. Esto significa que la vulnerabilidad solo es explotable en condiciones operativas específicas, lo que limita la ventana de ataque. La explotación requería permisos de administrador del sitio para habilitar y configurar los ganchos de prerecepción o un usuario con permisos para modificar repositorios que contuvieran ganchos de prerecepción donde esta funcionalidad ya estuviera habilitada. Esta vulnerabilidad afectó a todas las versiones de GitHub Enterprise Server anteriores a la 3.17 y se corrigió en las versiones 3.16.2, 3.15.6, 3.14.11 y 3.13.14. Esta vulnerabilidad se reportó a través del programa de recompensas por errores de GitHub.

*Credits: R31n
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
System
Vulnerable | Subsequent
Confidentiality
Low
Low
Integrity
High
High
Availability
Low
Low
Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
System
Vulnerable | Subsequent
Confidentiality
Low
Low
Integrity
High
High
Availability
Low
Low
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Network
Attack Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:Track
Exploitation
None
Automatable
No
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2025-04-10 CVE Reserved
  • 2025-04-17 CVE Published
  • 2025-04-21 CVE Updated
  • 2025-05-19 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-94: Improper Control of Generation of Code ('Code Injection')
CAPEC
  • CAPEC-137: Parameter Injection
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
GitHub
Search vendor "GitHub"
Enterprise Server
Search vendor "GitHub" for product "Enterprise Server"
>= 3.13.0 <= 3.13.13
Search vendor "GitHub" for product "Enterprise Server" and version " >= 3.13.0 <= 3.13.13"
en
Affected
GitHub
Search vendor "GitHub"
Enterprise Server
Search vendor "GitHub" for product "Enterprise Server"
>= 3.14.0 <= 3.14.10
Search vendor "GitHub" for product "Enterprise Server" and version " >= 3.14.0 <= 3.14.10"
en
Affected
GitHub
Search vendor "GitHub"
Enterprise Server
Search vendor "GitHub" for product "Enterprise Server"
>= 3.15.0 <= 3.15.5
Search vendor "GitHub" for product "Enterprise Server" and version " >= 3.15.0 <= 3.15.5"
en
Affected
GitHub
Search vendor "GitHub"
Enterprise Server
Search vendor "GitHub" for product "Enterprise Server"
>= 3.16.0 <= 3.16.1
Search vendor "GitHub" for product "Enterprise Server" and version " >= 3.16.0 <= 3.16.1"
en
Affected