title: Incorrect comparison vulnerability in GitHub Enterprise Server leading to commit smuggling
description: An incorrect comparison vulnerability was identified in GitHub Enterprise Server that allowed commit smuggling by displaying an incorrect diff in a re-opened Pull Request. To exploit this vulnerability, an attacker would need write access to the repository. This vulnerability was reported via the  GitHub Bug Bounty Program https://bounty.github.com/ .
problem types: CWE-697 Incorrect Comparison
affected:
{
defaultStatus: unaffected
product: Enterprise Server
vendor: GitHub
versions:
lessThan: 3.6.16, status: affected, version: 3.6.0, versionType: semver
lessThan: 3.7.13, status: affected, version: 3.7.0, versionType: semver
lessThan: 3.8.6, status: affected, version: 3.8.0, versionType: semver
lessThan: 3.9.1, status: affected, version: 3.9.0, versionType: semver
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 4.8
baseSeverity: MEDIUM
confidentialityImpact: LOW
integrityImpact: HIGH
privilegesRequired: HIGH
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL