{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-5816",
        "assignerOrgId": "82327ea3-741d-41e4-88f8-2cf9e791e760",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_P",
        "dateReserved": "2024-06-10T20:14:52.022Z",
        "datePublished": "2024-07-16T21:27:00.491Z",
        "dateUpdated": "2024-08-01T21:25:02.923Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "defaultStatus": "affected",
                    "product": "GitHub Enterprise Server",
                    "vendor": "GitHub",
                    "versions": [
                        {
                            "changes": [
                                {
                                    "at": "3.10.14",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThanOrEqual": "3.10.13",
                            "status": "affected",
                            "version": "3.10.0",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "3.11.12",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThanOrEqual": "3.11.11",
                            "status": "affected",
                            "version": "3.11.0",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "3.12.6",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThanOrEqual": "3.12.5",
                            "status": "affected",
                            "version": "3.12.0",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "3.13.1",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThanOrEqual": "3.13.0",
                            "status": "affected",
                            "version": "3.13",
                            "versionType": "semver"
                        },
                        {
                            "changes": [
                                {
                                    "at": "3.9.17",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThanOrEqual": "3.9.16",
                            "status": "affected",
                            "version": "3.9.0",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "ahacker1"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p><span style=\"background-color: transparent;\">An Incorrect Authorization vulnerability was identified in GitHub Enterprise Server that allowed a </span><span style=\"background-color: transparent;\">suspended GitHub App to retain access to the repository via a scoped user access token. This was only exploitable in public repositories while private repositories were not impacted. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.14 and was fixed in versions 3.9.17, 3.10.14, 3.11.12, 3.12.6, 3.13.1. This vulnerability was reported via the GitHub Bug Bounty program.</span></p>"
                        }
                    ],
                    "value": "An Incorrect Authorization vulnerability was identified in GitHub Enterprise Server that allowed a suspended GitHub App to retain access to the repository via a scoped user access token. This was only exploitable in public repositories while private repositories were not impacted. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.14 and was fixed in versions 3.9.17, 3.10.14, 3.11.12, 3.12.6, 3.13.1. This vulnerability was reported via the GitHub Bug Bounty program."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-114",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-114 Authentication Abuse"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "attackVector": "NETWORK",
                        "baseScore": 6.9,
                        "baseSeverity": "MEDIUM",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "HIGH",
                        "userInteraction": "ACTIVE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-863",
                            "description": "CWE-863 Incorrect Authorization",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "82327ea3-741d-41e4-88f8-2cf9e791e760",
                "shortName": "GitHub_P",
                "dateUpdated": "2024-07-16T21:27:00.491Z"
            },
            "references": [
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.10/admin/release-notes#3.10.15"
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.11/admin/release-notes#3.11.12"
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.12/admin/release-notes#3.12.6"
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.13/admin/release-notes#3.13.1"
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.10/admin/release-notes#3.9.17"
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.9/admin/release-notes#3.9.17"
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "title": "Improper authorization allows persistent access in GitHub Enterprise Server",
            "x_generator": {
                "engine": "Vulnogram 0.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-07-18T15:13:57.496747Z",
                                "id": "CVE-2024-5816",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-07-18T15:14:00.162Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-01T21:25:02.923Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://docs.github.com/en/enterprise-server@3.10/admin/release-notes#3.10.15",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://docs.github.com/en/enterprise-server@3.11/admin/release-notes#3.11.12",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://docs.github.com/en/enterprise-server@3.12/admin/release-notes#3.12.6",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://docs.github.com/en/enterprise-server@3.13/admin/release-notes#3.13.1",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://docs.github.com/en/enterprise-server@3.10/admin/release-notes#3.9.17",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://docs.github.com/en/enterprise-server@3.9/admin/release-notes#3.9.17",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}