# CVE-2025-3509: Pre-Receive Hook Remote Code Execution vulnerability was identified in GitHub Enterprise Server that allowing Privilege Escalation

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_P) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.31%, higher than 71% of CVEs (2026-12-01)
- Published: 2025-04-17T22:50:18.437Z
- Modified: 2026-06-17T09:20:04.700Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_P

## 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.

(As written by CVE List.)

## Affected

- GitHub Enterprise Server: from 3.13.0 up to 3.13.15; from 3.14.0 up to 3.14.12; from 3.15.0 up to 3.15.7; from 3.16.0 up to 3.16.3; from 13.17.0 before 13.17.1
- github enterprise_server: before 3.13.16; from 3.14.0 before 3.14.13; from 3.15.0 before 3.15.8; from 3.16.0 before 3.16.4; from 3.17.0 before 3.17.1

## Every score

- GitHub_P: 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`
- NVD: 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`

## References

- <https://docs.github.com/en/enterprise-server@3.13/admin/release-notes#3.13.16> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.14/admin/release-notes#3.14.13> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.15/admin/release-notes#3.15.8> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.16/admin/release-notes#3.16.4> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.1> (release-notes)

## Sources

- CVE List: [CVE-2025-3509](https://www.cve.org/CVERecord?id=CVE-2025-3509), CVE Terms of Use, modified 2025-06-18
- NVD: [CVE-2025-3509](https://nvd.nist.gov/vuln/detail/CVE-2025-3509), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-3509 · Whole record: https://cve.day/CVE-2025-3509.json · Rebuilt by cve.day 2026-11-25T22:58:56.749Z
