Medium
Security advisory
Redis before 6cbea7d allows a replica to cause an assertion failure in a primary server by sending a non-administrative command (specifically, a SET command). NOTE: this was fixed for Redis 6.2.x and 7.x in 2021. Versions before 6.2 were not intended to have safety guarantees related to this.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-31294
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:43 UTC · Revision 1
Source evidence
Redis before 6cbea7d allows a replica to cause an assertion failure in a primary server by sending a non-administrative command (specifically, a SET command). NOTE: this was fixed for Redis 6.2.x and 7.x in 2021. Versions before 6.2 were not intended to have safety guarantees related to this.
osv:CVE-2021-31294
Complete source record
{
"id": "98f39c462ada9a86bfa4318f814a9983a17bd5de77761f6d19be9f91eba8e306",
"url": "https://osv.dev/vulnerability/CVE-2021-31294",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-31294",
"summary": "Redis before 6cbea7d allows a replica to cause an assertion failure in a primary server by sending a non-administrative command (specifically, a SET command). NOTE: this was fixed for Redis 6.2.x and 7.x in 2021. Versions before 6.2 were not intended to have safety guarantees related to this.",
"evidence": "osv:CVE-2021-31294",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-31294",
"aliases": [
"BIT-keydb-2021-31294",
"BIT-redis-2021-31294",
"BIT-valkey-2021-31294",
"CVE-2021-31294"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/redis/redis",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "445aa844b946a8f1bc21ac8554b44adb1ecb4018"
},
{
"fixed": "46f4ebbe842620f0976a36741a72482620aa4b48"
},
{
"fixed": "6cbea7d29b5285692843bc1c351abba1a7ef326f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.2.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "46f4ebbe842620f0976a36741a72482620aa4b48"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "6cbea7d29b5285692843bc1c351abba1a7ef326f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"6.2-rc3",
"6.2-rc2",
"6.2-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/cve-osv-conversion/osv-output/CVE-2021-31294.json",
"vanir_signatures": [
{
"id": "CVE-2021-31294-4649935c",
"digest": {
"length": 7030,
"function_hash": "282123370244413014246199029746729897148"
},
"source": "https://github.com/redis/redis/commit/46f4ebbe842620f0976a36741a72482620aa4b48",
"target": {
"file": "src/server.c",
"function": "processCommand"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-31294-987a7952",
"digest": {
"threshold": 0.9,
"line_hashes": [
"276382160438463011791802486832098299543",
"81607497027349941400853452622911852480",
"174079452592190344646743064570921806917",
"22113432673264524511123880544413766800",
"159146439693756605255239566703403474960",
"308353159144754152971991578537313484920",
"215022253635914417357690862670091515120",
"68898065989528973432968670459207424448",
"145822087540847534025611738967447833776",
"75200904934883108131631146582879460284"
]
},
"source": "https://github.com/redis/redis/commit/6cbea7d29b5285692843bc1c351abba1a7ef326f",
"target": {
"file": "src/server.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-31294-afd6e43e",
"digest": {
"length": 7030,
"function_hash": "282123370244413014246199029746729897148"
},
"source": "https://github.com/redis/redis/commit/6cbea7d29b5285692843bc1c351abba1a7ef326f",
"target": {
"file": "src/server.c",
"function": "processCommand"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-31294-e9048c40",
"digest": {
"threshold": 0.9,
"line_hashes": [
"276382160438463011791802486832098299543",
"81607497027349941400853452622911852480",
"174079452592190344646743064570921806917",
"22113432673264524511123880544413766800",
"159146439693756605255239566703403474960",
"308353159144754152971991578537313484920",
"215022253635914417357690862670091515120",
"68898065989528973432968670459207424448",
"145822087540847534025611738967447833776",
"75200904934883108131631146582879460284"
]
},
"source": "https://github.com/redis/redis/commit/46f4ebbe842620f0976a36741a72482620aa4b48",
"target": {
"file": "src/server.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:22:35Z"
}
}
],
"modified": "2026-10-20T14:22:35.693159154Z",
"provider": "osv",
"references": [
"https://security.netapp.com/advisory/ntap-20230814-0007/",
"https://github.com/redis/redis/commit/46f4ebbe842620f0976a36741a72482620aa4b48",
"https://github.com/redis/redis/commit/6cbea7d29b5285692843bc1c351abba1a7ef326f",
"https://github.com/redis/redis/issues/8712"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-31294",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388844,
"published_at": "2023-07-15T23:15:09.203+00:00"
}