GHSA-j85q-whc9-g4p9 CVE-2021-3678
Use of Cryptographically Weak Pseudo-Random Number Generator in showdoc
- Severity
- 5.9 / 10
- Medium · CVSS 3.1
- Exploit chance (EPSS)
- 1.06%
- Chance of exploitation in the next 30 days. Higher than 64.67% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
- Fix
2.9.8- Upgrade showdoc/showdoc to this version or later
Description
showdoc is vulnerable to Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected versions
Packagist
| Package | Vulnerable | Fixed in |
|---|---|---|
| showdoc/showdoc | < 2.9.8 |
2.9.8 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
showdoc/showdoc Packagist → 2.9.8
- composer
composer require showdoc/showdoc:^2.9.8
Severity breakdown
CVSS 3.1 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Weakness
CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.
How to prevent it
- Implementation: Use functions or hardware which use a hardware-based random number generation for all crypto. This is the recommended solution. Use CyptGenRandom on Windows, or hw_rand() on Linux.
References
Advisories
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-fm5r-cj7v-rj2c ShowDoc has an Injection vulnerability | Medium | Also affects showdoc/showdoc |
| GHSA-6jmr-r7p6-f5wr ShowDoc unrestricted file upload vulnerability | Critical | Also affects showdoc/showdoc |
| GHSA-2263-jwgm-wv97 Showdoc XSS Vulnerability | Medium | Also affects showdoc/showdoc |
| GHSA-6xx7-cphv-pxgr Showdoc Forced Browsing | Medium | Also affects showdoc/showdoc |
| GHSA-3p87-gqw8-4pf2 Showdoc CSRF Vulnerability | Medium | Also affects showdoc/showdoc |
| GHSA-pfrc-5hhq-6hvr Showdoc Unauthenticated Access | Medium | Also affects showdoc/showdoc |
| GHSA-xp82-jmw8-mjxp Unrestricted Upload of File with Dangerous Type in ShowDoc | High | Also affects showdoc/showdoc |
| GHSA-vpwq-6cp4-ffqc Stored Cross-site Scripting in ShowDoc | Medium | Also affects showdoc/showdoc |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor