CVE-2024-5816 Improper authorization allows persistent access in GitHub Enterprise Server

Medium 6.9 Published Updated

A suspended GitHub App could retain repository access via a scoped token in public repositories, allowing unauthorized data access or modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-5816?

CVE-2024-5816 is a medium-severity missing authorization vulnerability in Github Enterprise Server, published on 16 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-863

Which versions are affected by CVE-2024-5816?

It affects 1 product.

Products include Github Enterprise Server.

How do I fix CVE-2024-5816?

No fix has been published for CVE-2024-5816 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-5816 being exploited?

There is no known exploitation of CVE-2024-5816 in the wild and no public exploit code.

All Github Enterprise Server vulnerabilities

Sources

Also known as GHSA-xrcw-9q57-9frw.

Is CVE-2024-5816 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free