{"id":"UBUNTU-CVE-2022-24834","details":"Redis is an in-memory database that persists on disk. A specially crafted Lua script executing in Redis can trigger a heap overflow in the cjson library, and result with heap corruption and potentially remote code execution. The problem exists in all versions of Redis with Lua scripting support, starting from 2.6, and affects only authenticated and authorized users. The problem is fixed in versions 7.0.12, 6.2.13, and 6.0.20.","modified":"2026-05-20T16:06:42.341857424Z","published":"2023-07-13T15:15:00Z","related":["USN-6531-1","USN-8169-1"],"upstream":["CVE-2022-24834"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-24834"},{"type":"REPORT","url":"https://raw.githubusercontent.com/redis/redis/7.0/00-RELEASENOTES"},{"type":"REPORT","url":"https://github.com/redis/redis/commit/936cfa464f371666c46bff59f7c4247d48973ec6"},{"type":"REPORT","url":"https://github.com/redis/redis/commit/f6a7c9f9ec9354702cc3143310a24bf3d1507b03"},{"type":"REPORT","url":"https://github.com/redis/redis/pull/12398"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2022-24834"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6531-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-24834"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8169-1"}],"affected":[{"package":{"name":"redis","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/redis?arch=source&distro=trusty%2Fesm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:2.8.4-2ubuntu0.2+esm3"}]}],"versions":["2:2.6.13-1","2:2.6.16-3","2:2.8.0-1","2:2.8.2-1","2:2.8.4-2","2:2.8.4-2ubuntu0.2","2:2.8.4-2ubuntu0.2+esm1","2:2.8.4-2ubuntu0.2+esm2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"redis-server","binary_version":"2:2.8.4-2ubuntu0.2+esm3"},{"binary_name":"redis-tools","binary_version":"2:2.8.4-2ubuntu0.2+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"redis","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/redis?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:3.0.6-1ubuntu0.4+esm2"}]}],"versions":["2:3.0.3-3","2:3.0.5-1","2:3.0.5-2","2:3.0.5-3","2:3.0.5-4","2:3.0.6-1","2:3.0.6-1ubuntu0.2","2:3.0.6-1ubuntu0.3","2:3.0.6-1ubuntu0.4","2:3.0.6-1ubuntu0.4+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"redis-sentinel","binary_version":"2:3.0.6-1ubuntu0.4+esm2"},{"binary_name":"redis-server","binary_version":"2:3.0.6-1ubuntu0.4+esm2"},{"binary_name":"redis-tools","binary_version":"2:3.0.6-1ubuntu0.4+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cjson","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/lua-cjson?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-cjson","binary_version":"2.1.0+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cjson","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/lua-cjson?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+dfsg-2","2.1.0+dfsg-2.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.0+dfsg-2.1","binary_name":"lua-cjson"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"redis","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/redis?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5:4.0.9-1ubuntu0.2+esm4"}]}],"versions":["4:4.0.1-7","4:4.0.2-6","4:4.0.2-9","5:4.0.5-1","5:4.0.6-1","5:4.0.6-2","5:4.0.7-1","5:4.0.8-1","5:4.0.8-2","5:4.0.9-1","5:4.0.9-1ubuntu0.1","5:4.0.9-1ubuntu0.2","5:4.0.9-1ubuntu0.2+esm2","5:4.0.9-1ubuntu0.2+esm3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"5:4.0.9-1ubuntu0.2+esm4","binary_name":"redis"},{"binary_name":"redis-sentinel","binary_version":"5:4.0.9-1ubuntu0.2+esm4"},{"binary_version":"5:4.0.9-1ubuntu0.2+esm4","binary_name":"redis-server"},{"binary_name":"redis-tools","binary_version":"5:4.0.9-1ubuntu0.2+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cjson","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/lua-cjson?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0+dfsg-2.1ubuntu0.20.04.1~esm2"}]}],"versions":["2.1.0+dfsg-2.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"lua-cjson","binary_version":"2.1.0+dfsg-2.1ubuntu0.20.04.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"redis","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/redis?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5:5.0.7-2ubuntu0.1+esm2"}]}],"versions":["5:5.0.5-2build1","5:5.0.6-1","5:5.0.7-1","5:5.0.7-2","5:5.0.7-2ubuntu0.1~esm1","5:5.0.7-2ubuntu0.1","5:5.0.7-2ubuntu0.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"5:5.0.7-2ubuntu0.1+esm2","binary_name":"redis"},{"binary_version":"5:5.0.7-2ubuntu0.1+esm2","binary_name":"redis-sentinel"},{"binary_name":"redis-server","binary_version":"5:5.0.7-2ubuntu0.1+esm2"},{"binary_name":"redis-tools","binary_version":"5:5.0.7-2ubuntu0.1+esm2"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cjson","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/lua-cjson?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0+dfsg-2.1ubuntu0.22.04.1~esm2"}]}],"versions":["2.1.0+dfsg-2.1"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-cjson","binary_version":"2.1.0+dfsg-2.1ubuntu0.22.04.1~esm2"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"redis","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/redis?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5:6.0.16-1ubuntu1+esm1"}]}],"versions":["5:6.0.15-1","5:6.0.16-1","5:6.0.16-1build1","5:6.0.16-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"5:6.0.16-1ubuntu1+esm1","binary_name":"redis"},{"binary_version":"5:6.0.16-1ubuntu1+esm1","binary_name":"redis-sentinel"},{"binary_name":"redis-server","binary_version":"5:6.0.16-1ubuntu1+esm1"},{"binary_name":"redis-tools","binary_version":"5:6.0.16-1ubuntu1+esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cjson","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/lua-cjson?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+dfsg-2.2"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-cjson","binary_version":"2.1.0+dfsg-2.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cjson","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/lua-cjson?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+dfsg-2.2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.0+dfsg-2.2","binary_name":"lua-cjson"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cmsgpack","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/lua-cmsgpack?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.0~git20230328.57b1f90-2"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-cmsgpack","binary_version":"0.4.0~git20230328.57b1f90-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cjson","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/lua-cjson?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+dfsg-2.2","2.1.0+dfsg-4"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-cjson","binary_version":"2.1.0+dfsg-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}},{"package":{"name":"lua-cmsgpack","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/lua-cmsgpack?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.0~git20230328.57b1f90-2","0.4.0~git20230328.57b1f90-3"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-cmsgpack","binary_version":"0.4.0~git20230328.57b1f90-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24834.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}