CVE-2021-21246
CVE-2021-21246 is a high-severity vulnerability in Onedev Project Onedev with a CVSS 3.x base score of 8.6. Its EPSS exploit-prediction score of 49% places it in the 99th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-862.
Key facts
- Severity: High (CVSS 3.x base score 8.6)
- CVSS v2: 5.0
- EPSS exploit prediction: 49% (99th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-862
- Affected product: Onedev Project Onedev
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2021-21246?
- 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.
- How severe is CVE-2021-21246?
- CVE-2021-21246 has a CVSS 3.x base score of 8.6, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2021-21246 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 49% (99th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-21246?
- CVE-2021-21246 affects Onedev Project Onedev. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-21246?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-21246 published?
- CVE-2021-21246 was published on 2021-01-15 and last updated on 2026-06-17.
References
- https://github.com/theonedev/onedev/commit/a4491e5f79dc6cc96eac20972eedc8905ddf6089
- https://github.com/theonedev/onedev/security/advisories/GHSA-66v7-gg85-f4gx
Affected products (1)
- cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:*
More vulnerabilities in Onedev Project Onedev
- CVE-2021-21245 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, AttachmentUploadServlet also saves user…
- CVE-2021-21242 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability which can…
- CVE-2021-21244 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, There is a vulnerability that enabled pre-auth…
- CVE-2021-21243 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, a Kubernetes REST endpoint exposes two methods…
- CVE-2022-39206 — Critical (CVSS 9.9): Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. When using Docker-based job executors, the…
- CVE-2021-21249 — Critical (CVSS 9.6): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is an issue involving YAML parsing which…
All CVEs affecting Onedev Project Onedev →
Other CWE-862 (Missing Authorization) vulnerabilities
- CVE-2026-0092 — Critical (CVSS 10.0): In Package Manager, there is a possible device lock controller bypass due to a missing permission check. This could…
- CVE-2026-33712 — Critical (CVSS 10.0): Typebot is a chatbot builder tool. In versions 3.15.2 and prior, the preview chat endpoint (POST…
- CVE-2026-2031 — Critical (CVSS 10.0): An Improper Access Control vulnerability in several internal API endpoints for Google Cloud Application Integration…
- CVE-2026-34976 — Critical (CVSS 10.0): Dgraph is an open source distributed GraphQL database. Prior to 25.3.1, the restoreTenant admin mutation is missing…
- CVE-2025-30416 — Critical (CVSS 10.0): Sensitive data disclosure and manipulation due to missing authorization. The following products are affected: Acronis…
- CVE-2025-45854 — Critical (CVSS 10.0): /server/executeExec of JEHC-BPM 2.0.1 allows attackers to execute arbitrary code via execParams.
Browse all CWE-862 (Missing Authorization) vulnerabilities →