CVE-2022-36045

Source
https://cve.org/CVERecord?id=CVE-2022-36045
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-36045.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-36045
Aliases
Published
2022-08-31T15:10:09Z
Modified
2026-04-10T04:49:12.825397Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Account takeover via cryptographically weak PRNG in NodeBB Forum
Details

NodeBB Forum Software is powered by Node.js and supports either Redis, MongoDB, or a PostgreSQL database. It utilizes web sockets for instant interactions and real-time notifications. utils.generateUUID, a helper function available in essentially all versions of NodeBB (as far back as v1.0.1 and potentially earlier) used a cryptographically insecure Pseudo-random number generator (Math.random()), which meant that a specially crafted script combined with multiple invocations of the password reset functionality could enable an attacker to correctly calculate the reset code for an account they do not have access to. This vulnerability impacts all installations of NodeBB. The vulnerability allows for an attacker to take over any account without the involvement of the victim, and as such, the remediation should be applied immediately (either via NodeBB upgrade or cherry-pick of the specific changeset. The vulnerability has been patched in version 2.x and 1.19.x. There is no known workaround, but the patch sets listed above will fully patch the vulnerability.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-330",
        "CWE-338"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36045.json"
}
References

Affected packages

Git / github.com/nodebb/nodebb

Affected ranges

Type
GIT
Repo
https://github.com/nodebb/nodebb
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*
v0.0.3
v0.0.6
v0.2.0
v0.3.0
v0.3.1
v0.3.2
v0.5.0-1
v0.5.0-2
v0.9.2
v1.*
v1.14.1-beta.0
v1.14.1-beta.1
v1.14.1-beta.3
v1.14.2-beta.1
v1.14.3-beta.0
v1.14.3-beta.10
v1.14.3-beta.11
v1.14.3-beta.12
v1.14.3-beta.13
v1.14.3-beta.14
v1.14.3-beta.15
v1.14.3-beta.16
v1.14.3-beta.4
v1.14.3-beta.5
v1.14.3-beta.6
v1.14.3-beta.7
v1.14.3-beta.8
v1.14.3-beta.9
v1.15.0
v1.15.0-beta.0
v1.15.0-beta.1
v1.15.0-beta.10
v1.15.0-beta.11
v1.15.0-beta.12
v1.15.0-beta.13
v1.15.0-beta.14
v1.15.0-beta.15
v1.15.0-beta.16
v1.15.0-beta.17
v1.15.0-beta.18
v1.15.0-beta.19
v1.15.0-beta.2
v1.15.0-beta.21
v1.15.0-beta.22
v1.15.0-beta.23
v1.15.0-beta.24
v1.15.0-beta.25
v1.15.0-beta.27
v1.15.0-beta.29
v1.15.0-beta.3
v1.15.0-beta.30
v1.15.0-beta.4
v1.15.0-beta.5
v1.15.0-beta.6
v1.15.0-beta.7
v1.15.0-beta.8
v1.15.0-beta.9
v1.15.0-rc.0
v1.15.0-rc.1
v1.15.0-rc.3
v1.15.0-rc.4
v1.15.0-rc.5
v1.15.1
v1.15.1-beta.0
v1.15.2-beta.0
v1.15.2-beta.1
v1.15.3-beta.0
v1.16.1-beta.0
v1.17.0-beta.0
v1.17.0-beta.2
v1.17.0-beta.3
v1.17.0-beta.4
v1.17.0-beta.5
v1.19.0
v1.19.1
v1.19.2
v1.19.3
v1.19.9
v1.5.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-36045.json"