Skip to content
Race condition Disclosed report Advanced CVE-2024-2440

RC Between GitHub's Repo Update REST API and updateTeamsRepository GraphQL Mutation Results in Covert and Persistent Admin Access Retention

A race condition in GitHub Enterprise Server allowed an admin to keep permissions on a detached repository by sending a GraphQL mutation while the repository was detached.

inspector-ambitious Follow

Originally disclosed on HackerOne

  • Triaged in 22 days
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 7 months

Summary by the program

A race condition in GitHub Enterprise Server allowed an existing admin to maintain permissions on a detached repository by making a GraphQL mutation to alter repository permissions while the repository is detached. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.13 and was fixed in versions 3.9.13, 3.10.10, 3.11.8 and 3.12.1. CVE-2024-2440

The original report as published on HackerOne, by inspector-ambitious. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

What the attacker needed

Admin access to the repository; ability to send GraphQL mutation

The fix

The vulnerability was fixed in versions 3.9.13, 3.10.10, 3.11.8 and 3.12.1.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A race condition is when two actions happen at almost the same time. Here, an admin could change permissions at the moment a repository was being detached, and they kept permissions on it.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by inspector-ambitious

View all

15 more disclosed reports, best first.

More from GitHub

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.