CVE-2021-21246

Pre-Auth Access token leak

Description

OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, the REST UserResource endpoint performs a security check to make sure that only administrators can list user details. However for the `/users/{id}` endpoint there are no security checks enforced so it is possible to retrieve arbitrary user details including their Access Tokens! These access tokens can be used to access the API or clone code in the build spec via the HTTP(S) protocol. It has permissions to all projects accessible by the user account. This issue may lead to `Sensitive data leak` and leak the Access Token which can be used to impersonate the administrator or any other users. This issue was addressed in 4.0.3 by removing user info from restful api.

Category

8.6
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 1.21% Top 25%
Third-Party Advisory github.com Third-Party Advisory github.com
Affected: theonedev onedev
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-21246?
CVE-2021-21246 has been scored as a high severity vulnerability.
How to fix CVE-2021-21246?
To fix CVE-2021-21246, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-21246 being actively exploited in the wild?
It is possible that CVE-2021-21246 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-21246?
CVE-2021-21246 affects theonedev onedev.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.