{"api_version":"1","generated_at":"2026-11-04T22:14:33+00:00","cve":"CVE-2024-31449","urls":{"html":"https://cve.report/CVE-2024-31449","api":"https://cve.report/api/cve/CVE-2024-31449.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-31449","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-31449"},"summary":{"title":"Lua library commands may lead to stack overflow and RCE in Redis","description":"Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2024-10-07 20:15:05","updated_at":"2026-11-04 00:17:18"},"problem_types":["CWE-20","CWE-121","CWE-20 CWE-20: Improper Input Validation","CWE-121 CWE-121: Stack-based Buffer Overflow"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"8.8","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9","name":"https://github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9","refsource":"security-advisories@github.com","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5","name":"https://github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5","refsource":"security-advisories@github.com","tags":["Vendor Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-31449","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31449","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"redis","product":"redis","version":"affected >= 2.6, < 6.2.16","platforms":[]},{"source":"CNA","vendor":"redis","product":"redis","version":"affected >= 7.0.0, < 7.2.6","platforms":[]},{"source":"CNA","vendor":"redis","product":"redis","version":"affected >= 7.3.0, < 7.4.1","platforms":[]},{"source":"ADP","vendor":"redis","product":"redis","version":"affected 2.6 6.2.16 custom","platforms":[]},{"source":"ADP","vendor":"redis","product":"redis","version":"affected 7.0.0 7.2.6 custom","platforms":[]},{"source":"ADP","vendor":"redis","product":"redis","version":"affected 7.3.0 7.4.1 custom","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2024","cve_id":"31449","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"redis","cpe5":"redis","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"affected":[{"cpes":["cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*"],"defaultStatus":"unknown","product":"redis","vendor":"redis","versions":[{"lessThan":"6.2.16","status":"affected","version":"2.6","versionType":"custom"},{"lessThan":"7.2.6","status":"affected","version":"7.0.0","versionType":"custom"},{"lessThan":"7.4.1","status":"affected","version":"7.3.0","versionType":"custom"}]}],"metrics":[{"other":{"content":{"id":"CVE-2024-31449","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2024-11-19T04:55:44.585080Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-11-03T23:57:36.621Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"product":"redis","vendor":"redis","versions":[{"status":"affected","version":">= 2.6, < 6.2.16"},{"status":"affected","version":">= 7.0.0, < 7.2.6"},{"status":"affected","version":">= 7.3.0, < 7.4.1"}]}],"descriptions":[{"lang":"en","value":"Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-121","description":"CWE-121: Stack-based Buffer Overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2024-10-07T19:51:08.775Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5","tags":["x_refsource_CONFIRM"],"url":"https://github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5"},{"name":"https://github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9","tags":["x_refsource_MISC"],"url":"https://github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9"}],"source":{"advisory":"GHSA-whxg-wx83-85p5","discovery":"UNKNOWN"},"title":"Lua library commands may lead to stack overflow and RCE in Redis"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2024-31449","datePublished":"2024-10-07T19:51:08.775Z","dateReserved":"2024-04-03T17:55:32.646Z","dateUpdated":"2026-11-03T23:57:36.621Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2024-10-07 20:15:05","lastModifiedDate":"2026-11-04 00:17:18","problem_types":["CWE-20","CWE-121","CWE-20 CWE-20: Improper Input Validation","CWE-121 CWE-121: Stack-based Buffer Overflow"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-11-19T04:55:44.585080Z","id":"CVE-2024-31449","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*","versionStartIncluding":"2.8.18","versionEndExcluding":"6.2.16","matchCriteriaId":"92118EB1-660D-4859-BA6D-FDC64E5C48F4"},{"vulnerable":true,"criteria":"cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2.0","versionEndExcluding":"7.2.6","matchCriteriaId":"4F8A45E4-57CF-4B05-B188-A75BBDF37822"},{"vulnerable":true,"criteria":"cpe:2.3:a:redis:redis:7.4.0:-:*:*:*:*:*:*","matchCriteriaId":"4C484C7C-4C3B-45F6-8DF5-84CFE5FF2717"},{"vulnerable":true,"criteria":"cpe:2.3:a:redis:redis:7.4.0:rc1:*:*:*:*:*:*","matchCriteriaId":"14EE168F-747A-43EE-84B8-14C332A7F1CB"},{"vulnerable":true,"criteria":"cpe:2.3:a:redis:redis:7.4.0:rc2:*:*:*:*:*:*","matchCriteriaId":"C983360E-DC98-4C5A-A088-7DCE273595A1"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2024","CveId":"31449","Ordinal":"1","Title":"Lua library commands may lead to stack overflow and RCE in Redis","CVE":"CVE-2024-31449","Year":"2024"},"notes":[{"CveYear":"2024","CveId":"31449","Ordinal":"1","NoteData":"Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.","Type":"Description","Title":"Lua library commands may lead to stack overflow and RCE in Redis"}]}}}