# CVE-2021-3678: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in star7th/showdoc

- Severity: High 7.5 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/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-08-04T13:14:29.000Z
- Modified: 2026-06-17T04:05:33.230Z
- Also known as: GHSA-j85q-whc9-g4p9
- Weaknesses: CWE-338
- Assigned by: @huntrdev

## Description

showdoc is vulnerable to Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

(As written by CVE List.)

## Affected

- star7th star7th/showdoc: from unspecified up to 2.9.7
- showdoc/showdoc (Packagist): before 2.9.8
- showdoc showdoc: before 2.9.8

## Every score

- @huntrdev: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://huntr.dev/bounties/f9a9defd-29ea-4442-b692-ff1512813de4> (third-party-advisory, web)
- <https://github.com/star7th/showdoc/commit/4b962c1740311e0d46775023b6acba39ad60e370> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3678> (advisory)

## Sources

- CVE List: [CVE-2021-3678](https://www.cve.org/CVERecord?id=CVE-2021-3678), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-j85q-whc9-g4p9](https://github.com/advisories/GHSA-j85q-whc9-g4p9), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-3678](https://nvd.nist.gov/vuln/detail/CVE-2021-3678), Public domain, modified 2026-06-17

---

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