{"id":"CVE-2022-36021","summary":"Redis string pattern matching can be abused to achieve Denial of Service","details":"Redis is an in-memory database that persists on disk. Authenticated users can use string matching commands (like `SCAN` or `KEYS`) with a specially crafted pattern to trigger a denial-of-service attack on Redis, causing it to hang and consume 100% CPU time. The problem is fixed in Redis versions 6.0.18, 6.2.11, 7.0.9.\n","aliases":["BIT-keydb-2022-36021","BIT-redis-2022-36021","BIT-valkey-2022-36021","GHSA-jr7j-rfj5-8xqv"],"modified":"2026-08-18T16:22:12.263486Z","published":"2023-03-01T15:46:23.567Z","related":["ALSA-2025:0595","SUSE-SU-2023:0693-1","SUSE-SU-2023:0694-1","SUSE-SU-2023:2122-1","SUSE-SU-2023:2925-1","openSUSE-SU-2024:12743-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-407"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36021.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36021.json"},{"type":"ADVISORY","url":"https://github.com/redis/redis/security/advisories/GHSA-jr7j-rfj5-8xqv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36021"},{"type":"FIX","url":"https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/redis/redis","events":[{"introduced":"0"},{"fixed":"ebe2e4583fc6b4cd1a8142caa51fa7c8d37d6de3"},{"introduced":"445aa844b946a8f1bc21ac8554b44adb1ecb4018"},{"fixed":"720ea82eab846abc36651d01cc9f8347d4f42f90"},{"introduced":"d375595d5e3ae2e5c29e6c00a2dc3d60578fd9fc"},{"fixed":"86920532f72ff005fcb146c5a02562f9a10b8140"},{"fixed":"dcbfcb916ca1a269b3feef86ee86835294758f84"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"6.0.18"},{"introduced":"6.2.0"},{"fixed":"6.2.11"},{"introduced":"7.0.0"},{"fixed":"7.0.9"}]}}],"versions":["7.0.8","6.2.10","6.0.17","6.2.9","6.0.16","6.2.8","7.0.7","7.0.6","7.0.5","6.2.7","7.0.4","7.0.3","7.0.2","7.0.1","7.0.0","6.2.6","6.2.5","6.0.15","6.0.14","6.2.4","6.2.3","6.0.13","6.2.2","6.0.12","6.2.1","6.2.0","6.0.11","6.0.10","6.0.9","6.0.8","6.0.7","6.0.6","6.0.5","6.0.4","6.0.3","6.0.2","6.0.1","6.0.0","6.0-rc4","6.0-rc3","6.0-rc2","6.0-rc1","2.3-alpha0","2.2.0-rc1","2.2-alpha6","2.2-alpha5","2.2-alpha4","2.2-alpha3","2.2-alpha2","2.2-alpha1","2.2-alpha0","v2.0.0-rc1","v2.1.1-watch","v1.3.11","v1.3.10","v1.3.9","v1.3.8","v1.3.7","1.3.6","vm-playpen"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-36021.json","vanir_signatures_modified":"2026-08-18T16:22:12Z","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["126464697838505507228666083962779546454","150412474198474738257319036961167457092","35374073575678203773399989303306961166","111634149353755209275426835518613667871","94232520062590603120052529204803997911","142664002336838874641599456823725507217","314198068333033048916605646879667238529","235428705830044225770427432796456894789","9750028865141680449935411996214012138","53458498070622451715640627479229719716","285867654145245020322252982284148133281","73512740762000367108698473547362467084","183999695971907554713422441496994192957","5157595485982869501254520368800120422","173020804748077245807074834168018712431","302128118842853102311713414874765200528","32658260615270067165067781859838400334"],"threshold":0.9},"id":"CVE-2022-36021-1aa54db8","signature_type":"Line","signature_version":"v1","source":"https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84","target":{"file":"src/util.c"}},{"source":"https://github.com/redis/redis/commit/dcbfcb916ca1a269b3feef86ee86835294758f84","target":{"file":"src/util.c","function":"stringmatchlen"},"deprecated":false,"digest":{"function_hash":"164722953920992462798870227519663273173","length":1840},"id":"CVE-2022-36021-2429f3b2","signature_type":"Function","signature_version":"v1"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}