# CVE-2021-29245: BTCPay Server through 1.0.7.0 uses a weak method Next to produce pseudo-random values to generate a legacy API key.

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.06%, higher than 65% of CVEs (2026-12-01)
- Published: 2021-05-05T12:25:34.000Z
- Modified: 2026-06-17T03:47:26.463Z
- Weaknesses: CWE-338
- Assigned by: mitre

## Description

BTCPay Server through 1.0.7.0 uses a weak method Next to produce pseudo-random values to generate a legacy API key.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- btcpayserver btcpay_server: up to 1.0.7.0

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/btcpayserver/btcpayserver/releases> (release-notes, third-party-advisory)
- <https://blog.btcpayserver.org/vulnerability-disclosure-v1-0-7-0/> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-29245](https://www.cve.org/CVERecord?id=CVE-2021-29245), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-29245](https://nvd.nist.gov/vuln/detail/CVE-2021-29245), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29245 · Whole record: https://cve.day/CVE-2021-29245.json · Rebuilt by cve.day 2026-11-25T22:58:01.139Z
