{"schemaVersion":3,"id":"CVE-2025-46818","aliases":["ALPINE-CVE-2025-46818","UBUNTU-CVE-2025-46818","DEBIAN-CVE-2025-46818","CGA-2jcv-qq7j-37fc","CGA-335c-jp5g-9p34","CGA-4458-4g88-qqhv","CGA-547w-c325-r2fv","CGA-723v-8255-x34f","CGA-8hh3-9r4j-pwgc","CGA-pc35-cjvm-m3pw","CGA-wgpx-5wr7-x9r6","CGA-wh68-6mj3-qgxq","CGA-x7pw-mfvq-9f7h"],"status":"published","duplicateOf":null,"title":null,"description":"Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate different LUA objects and potentially run their own code in the context of another user. The problem exists in all versions of Redis with LUA scripting. This issue is fixed in version 8.2.2. A workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing LUA scripts. This can be done using ACL to block a script by restricting both the EVAL and FUNCTION command families.","dates":{"published":"2025-10-03T18:38:57.170Z","modified":"2025-10-03T19:14:19.668Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":2.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00727,"percentile":0.53312,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00727},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00727,"percentile":0.53312}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00727,"percentile":0.53312}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"alpine","product":"valkey","name":"valkey","label":"valkey","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/valkey","purlType":"apk","versions":[{"text":"< 7.2.11-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 8.1.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.2.11-r0 | < 8.1.4-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3-redis","name":"py3-redis","label":"py3-redis","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3-redis","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.10-redis","name":"py3.10-redis","label":"py3.10-redis","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.10-redis","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.11-redis","name":"py3.11-redis","label":"py3.11-redis","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.11-redis","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.12-redis","name":"py3.12-redis","label":"py3.12-redis","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.12-redis","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.13-redis","name":"py3.13-redis","label":"py3.13-redis","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.13-redis","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"redict","name":"redict","label":"redict","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/redict","purlType":"deb","versions":[{"text":"< 7.3.6+ds-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.3.6+ds-1","eol":null,"hubHref":null},{"vendor":"debian","product":"redis","name":"redis","label":"redis","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/redis","purlType":"deb","versions":[{"text":"< 5:7.0.15-1~deb12u6","noFixRecorded":false,"fixedIn":null},{"text":"< 5:8.0.2-3+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 5:8.0.4-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5:7.0.15-1~deb12u6 | < 5:8.0.2-3+deb13u1 | < 5:8.0.4-1","eol":null,"hubHref":null},{"vendor":"debian","product":"valkey","name":"valkey","label":"valkey","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/valkey","purlType":"deb","versions":[{"text":"< 8.1.1+dfsg1-3+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 8.1.4+dfsg1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.1.1+dfsg1-3+deb13u1 | < 8.1.4+dfsg1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"redict","name":"redict","label":"redict","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/redict","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"redis","name":"redis","label":"redis","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/redis","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"valkey","name":"valkey","label":"valkey","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/valkey","purlType":"deb","versions":[{"text":"< 7.2.11+dfsg1-0ubuntu0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 8.1.4+dfsg1-0ubuntu0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.2.11+dfsg1-0ubuntu0.2 | < 8.1.4+dfsg1-0ubuntu0.2","eol":null,"hubHref":null},{"vendor":"redis","product":"redis","name":"redis","label":"redis","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 8.2.2","noFixRecorded":false,"fixedIn":null},{"text":"< 6.2.20","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0, < 7.2.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.4.0, < 7.4.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0, < 8.0.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.2.0, < 8.2.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.2.2 | < 6.2.20 | ≥ 7.0, < 7.2.11 | ≥ 7.4.0, < 7.4.6 | ≥ 8.0.0, < 8.0.4 | ≥ 8.2.0, < 8.2.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"redis","label":"Redis","category":"database"}},"hubHref":"/vendor/redis/redis"}],"affectedCount":13,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/redis/redis/security/advisories/GHSA-qrv7-wcrx-q5jp","label":"github.com/redis/redis/security/advisories/GHSA-qrv7-wcrx-q5jp","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Advisory","Third Party Advisory"]},{"url":"https://github.com/redis/redis/commit/45eac0262028c771b6f5307372814b75f49f7a9e","label":"github.com/redis/redis/commit/45eac0262028c771b6f5307372814b75f49f7a9e","hostname":"github.com","tags":["X Refsource MISC","REPORT","FIX","Patch"]},{"url":"https://github.com/redis/redis/releases/tag/8.2.2","label":"github.com/redis/redis/releases/tag/8.2.2","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Release Notes"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-46818","label":"security.alpinelinux.org/vuln/CVE-2025-46818","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-46818","label":"ubuntu.com/security/CVE-2025-46818","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-46818","label":"www.cve.org/CVERecord?id=CVE-2025-46818","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/valkey-io/valkey/commit/6dd003e88feace83e55491f32376f6927896e31e","label":"github.com/valkey-io/valkey/commit/6dd003e88feace83e55491f32376f6927896e31e","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7893-1","label":"ubuntu.com/security/notices/USN-7893-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-46818","label":"security-tracker.debian.org/tracker/CVE-2025-46818","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46818.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46818.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46818","label":"nvd.nist.gov/vuln/detail/CVE-2025-46818","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]}],"lineage":{"upstream":[],"downstream":["DSA-6020-1","DSA-6022-1","MGASA-2025-0307","OPENSUSE-SU-2025:15600-1","OPENSUSE-SU-2025:15604-1","OPENSUSE-SU-2025:20121-1","OPENSUSE-SU-2026:20003-1","RHSA-2025:19237","RHSA-2025:19238","RHSA-2025:19345","RHSA-2025:19675","RHSA-2025:20926","RHSA-2025:20955","RHSA-2025:21916","RHSA-2025:21936","SUSE-SU-2025:03499-1","SUSE-SU-2025:03500-1","SUSE-SU-2025:03501-1","SUSE-SU-2025:03502-1","SUSE-SU-2025:03505-1","SUSE-SU-2025:03506-1","SUSE-SU-2025:03507-1","SUSE-SU-2026:20022-1","USN-7893-1"],"duplicates":[],"related":["CGA-4C3M-8FX5-QRP2","OPENSUSE-SU-2025:15600-1","OPENSUSE-SU-2025:15604-1","OPENSUSE-SU-2025:20121-1","OPENSUSE-SU-2026:20003-1","SUSE-SU-2025:03499-1","SUSE-SU-2025:03500-1","SUSE-SU-2025:03501-1","SUSE-SU-2025:03502-1","SUSE-SU-2025:03505-1","SUSE-SU-2025:03506-1","SUSE-SU-2025:03507-1","SUSE-SU-2026:20022-1","USN-7893-1"]},"timeline":[{"kind":"published","date":"2025-10-03T18:38:57.170Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-03T19:14:19.668Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:13:17.454Z","stale":false,"partial":false}}