{"id":"CVE-2026-104608","state":"PUBLISHED","title":"Use-after-free vulnerability in GitHub Enterprise Server allowed remote code execution in the Git service","description":"A remote code execution vulnerability was identified in GitHub Enterprise Server in the Git service (babeld). babeld held references into internal collections while calling into the SSH library, where a re-entrant callback could modify a collection and invalidate those references. An attacker with an account and SSH access to the instance could leverage this use-after-free into a controlled write and run arbitrary commands as babeld, including disclosure of its environment secrets. Exploitation required per-build memory offsets; failed attempts crashed babeld. This affected all releases prior to 3.23 and was fixed in 3.22.3, 3.21.8, 3.20.10, and 3.19.14. This vulnerability was reported via the GitHub Bug Bounty program.","publishedAt":"2026-11-03T22:49:48.079Z","updatedAt":"2026-11-06T19:10:37.408Z","severity":{"score":7.7,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:N/SA:N","source":"GitHub_P"},"assigner":"GitHub_P","products":["GitHub Enterprise Server"],"affected":[{"vendor":"GitHub","product":"Enterprise Server","defaultStatus":"unknown","versions":[{"version":"3.19.0","status":"affected","lessThan":"3.19.*","changes":[{"at":"3.19.14","status":"unaffected"}],"versionType":"semver"},{"version":"3.20.0","status":"affected","lessThan":"3.20.*","changes":[{"at":"3.20.10","status":"unaffected"}],"versionType":"semver"},{"version":"3.21.0","status":"affected","lessThan":"3.21.*","changes":[{"at":"3.21.8","status":"unaffected"}],"versionType":"semver"},{"version":"3.22.0","status":"affected","lessThan":"3.22.*","changes":[{"at":"3.22.3","status":"unaffected"}],"versionType":"semver"}]}],"references":["https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.14","https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.10","https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.8","https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.3"],"weaknesses":["CWE-416","CWE-1265"],"ingestedAt":"2026-11-06T19:16:06.869Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/104xxx/CVE-2026-104608.json","commit":"3ac0a58c1b022fb86c09bc524740b062fc09f933","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-104608","state":"PUBLISHED","datePublished":"2026-11-03T22:49:48.079Z","dateUpdated":"2026-11-06T19:10:37.408Z","assignerShortName":"GitHub_P","assignerOrgId":"82327ea3-741d-41e4-88f8-2cf9e791e760","dateReserved":"2026-10-02T03:42:53.505Z"},"containers":{"cna":{"title":"Use-after-free vulnerability in GitHub Enterprise Server allowed remote code execution in the Git service","descriptions":[{"lang":"en","value":"A remote code execution vulnerability was identified in GitHub Enterprise Server in the Git service (babeld). babeld held references into internal collections while calling into the SSH library, where a re-entrant callback could modify a collection and invalidate those references. An attacker with an account and SSH access to the instance could leverage this use-after-free into a controlled write and run arbitrary commands as babeld, including disclosure of its environment secrets. Exploitation required per-build memory offsets; failed attempts crashed babeld. This affected all releases prior to 3.23 and was fixed in 3.22.3, 3.21.8, 3.20.10, and 3.19.14. This vulnerability was reported via the GitHub Bug Bounty program."}],"affected":[{"vendor":"GitHub","product":"Enterprise Server","defaultStatus":"unknown","versions":[{"version":"3.19.0","status":"affected","lessThan":"3.19.*","changes":[{"at":"3.19.14","status":"unaffected"}],"versionType":"semver"},{"version":"3.20.0","status":"affected","lessThan":"3.20.*","changes":[{"at":"3.20.10","status":"unaffected"}],"versionType":"semver"},{"version":"3.21.0","status":"affected","lessThan":"3.21.*","changes":[{"at":"3.21.8","status":"unaffected"}],"versionType":"semver"},{"version":"3.22.0","status":"affected","lessThan":"3.22.*","changes":[{"at":"3.22.3","status":"unaffected"}],"versionType":"semver"}]}],"references":[{"url":"https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.14","tags":["release-notes"]},{"url":"https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.10","tags":["release-notes"]},{"url":"https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.8","tags":["release-notes"]},{"url":"https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.3","tags":["release-notes"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":7.7,"vectorString":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:N/SA:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"CWE-416 Use After Free","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-1265","lang":"en","description":"CWE-1265 Unintended reentrant invocation of non-reentrant code via nested calls","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_P","orgId":"82327ea3-741d-41e4-88f8-2cf9e791e760","dateUpdated":"2026-11-03T22:49:48.079Z"},"impacts":[{"capecId":"CAPEC-233","descriptions":[{"lang":"en","value":"CAPEC-233 Privilege Escalation"}]}],"credits":[{"lang":"en","value":"R31n","type":"finder"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-06T19:10:23.666531Z","id":"CVE-2026-104608","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-06T19:10:37.408Z"}}]}}}