CVE-2022-21164

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-21164
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21164.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21164
Aliases
Related
  • SNYK-JS-NODELMDB-2400723
Published
2022-03-16T16:15:10Z
Modified
2025-10-21T06:50:15.961408Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

The package node-lmdb before 0.9.7 are vulnerable to Denial of Service (DoS) when defining a non-invokable ToString value, which will cause a crash during type check.

References

Affected packages

Git / github.com/venemo/node-lmdb

Affected ranges

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

Affected versions

v0.*

v0.2.0
v0.6.2
v0.7.0
v0.9.6

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/venemo/node-lmdb/commit/97760104c0fd311206b88aecd91fa1f59fe2b85a",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-21164-04b2a102",
        "target": {
            "file": "src/txn.cpp"
        },
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "7895156110730293289671560245138811086",
                "108320994744204762953214035436821145082",
                "209527662274143032484104602345091571488",
                "123988090088222035339782190483665560261"
            ]
        }
    },
    {
        "source": "https://github.com/venemo/node-lmdb/commit/97760104c0fd311206b88aecd91fa1f59fe2b85a",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-21164-2f51e2cb",
        "target": {
            "function": "NAN_METHOD",
            "file": "src/txn.cpp"
        },
        "signature_type": "Function",
        "digest": {
            "length": 294.0,
            "function_hash": "183609526602319647622695542365969939421"
        }
    }
]