CVE-2021-21246
published high CVSS 3.1 · 8.6Pre-Auth Access token leak
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| theonedev | — | onedev< 4.0.3 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| theonedev | onedev | < 4.0.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-862 CWE-862 Missing Authorization
References
2Provider assertions
2GitHub_M · cna
Pre-Auth Access token leak
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 464e65fdd15311420ac5b4cbb23f5b3082510c5d6264ecc635f055097b096c8d
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record