Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-14147

An integer overflow in the getnum function in lua_struct.c in Redis before 6.0.3 allows context-dependent attackers with permission to run Lua code in a Redis session to cause a denial of service (memory corruption and application crash) or possibly bypass intended sandbox restrictions via a large number, which triggers a stack-based buffer overflow. NOTE: this issue exists because of a CVE-2015-8080 regression.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-14147
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:26 UTC · Revision 1

Source evidence

CVE-2020-14147

core-osv · Original source

Published 15 Jun 2020, 18:15 UTC

An integer overflow in the getnum function in lua_struct.c in Redis before 6.0.3 allows context-dependent attackers with permission to run Lua code in a Redis session to cause a denial of service (memory corruption and application crash) or possibly bypass intended sandbox restrictions via a large number, which triggers a stack-based buffer overflow. NOTE: this issue exists because of a CVE-2015-8080 regression.

osv:CVE-2020-14147
Complete source record
{
  "id": "3b8897c5ad0c1d641758068916007e58f9e7f142925df4cca473f427b5c776e0",
  "url": "https://osv.dev/vulnerability/CVE-2020-14147",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-14147",
    "summary": "An integer overflow in the getnum function in lua_struct.c in Redis before 6.0.3 allows context-dependent attackers with permission to run Lua code in a Redis session to cause a denial of service (memory corruption and application crash) or possibly bypass intended sandbox restrictions via a large number, which triggers a stack-based buffer overflow. NOTE: this issue exists because of a CVE-2015-8080 regression.",
    "evidence": "osv:CVE-2020-14147",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-14147",
      "aliases": [
        "CVE-2020-14147"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/antirez/redis",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ef764dde1cca2f25d00686673d1bc89448819571"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "ef764dde1cca2f25d00686673d1bc89448819571"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-14147.json",
            "vanir_signatures": [
              {
                "id": "CVE-2020-14147-1c9f15ff",
                "digest": {
                  "length": 535,
                  "function_hash": "285556551804856358181809971858790846830"
                },
                "source": "https://github.com/antirez/redis/commit/ef764dde1cca2f25d00686673d1bc89448819571",
                "target": {
                  "file": "deps/lua/src/lua_struct.c",
                  "function": "controloptions"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-14147-8ad6483a",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "134335090510338628569141842895565787666",
                    "129767963907433821863868325737636018053",
                    "300080779537829833533704011346679055977",
                    "150366785480519783601597766313455146941",
                    "291778318289862582589671380180879160640",
                    "334836077840905045155583947536240977132",
                    "204789960506117649192793862499828062137",
                    "206010478460804687345513953054922291922",
                    "273452596673789713237435221305689614452",
                    "224353343358345155052571137818636792223",
                    "149016652711686681273500497938298290981",
                    "88480705846654040951299849469807546662",
                    "276361046096231743424703405800731534378",
                    "307287750647995264489892449716195012064",
                    "38246228680553567486599359596671787366",
                    "263027252925130599613215470536067358578",
                    "2874506608442905135345185747778786999",
                    "47699769131658910848691075822501354908",
                    "249210679146172818636927068194179760061"
                  ]
                },
                "source": "https://github.com/antirez/redis/commit/ef764dde1cca2f25d00686673d1bc89448819571",
                "target": {
                  "file": "deps/lua/src/lua_struct.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-14147-a8de9166",
                "digest": {
                  "length": 647,
                  "function_hash": "4084196643356696974733906552222450367"
                },
                "source": "https://github.com/antirez/redis/commit/ef764dde1cca2f25d00686673d1bc89448819571",
                "target": {
                  "file": "deps/lua/src/lua_struct.c",
                  "function": "optsize"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-14147-c76f01ae",
                "digest": {
                  "length": 238,
                  "function_hash": "135527645391249101043499856436152069482"
                },
                "source": "https://github.com/antirez/redis/commit/ef764dde1cca2f25d00686673d1bc89448819571",
                "target": {
                  "file": "deps/lua/src/lua_struct.c",
                  "function": "getnum"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:22:38Z"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/redis/redis",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ce878b6ed5df1a7b3e87a8af2d1262de4c5bb828"
                },
                {
                  "introduced": "17dfd7cabbf7954f92b7a1243d4bb27fee5d4500"
                },
                {
                  "fixed": "7803b1148dafe65e2c7927eac7ce9e9ef729efc1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:redislabs:redis:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.0.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:redislabs:redis:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.0.0"
                      },
                      {
                        "fixed": "6.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "6.0.2",
            "6.0.1",
            "6.0.0",
            "5.0.8",
            "5.0.7",
            "5.0.6",
            "5.0.5",
            "5.0.4",
            "5.0.3",
            "5.0.2",
            "5.0.1",
            "5.0.0",
            "5.0-rc6",
            "5.0-rc5",
            "5.0-rc4",
            "5.0-rc3",
            "5.0-rc2",
            "5.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/cve-osv-conversion/osv-output/CVE-2020-14147.json"
          }
        }
      ],
      "modified": "2026-10-24T14:22:38.237698781Z",
      "provider": "osv",
      "references": [
        "https://security.gentoo.org/glsa/202008-17",
        "https://www.debian.org/security/2020/dsa-4731",
        "https://www.oracle.com/security-alerts/cpujan2021.html",
        "https://github.com/antirez/redis/commit/ef764dde1cca2f25d00686673d1bc89448819571",
        "https://github.com/antirez/redis/pull/6875"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_operations_monitor:3.4:*:*:*:*:*:*:*",
              "cpe:2.3:a:oracle:communications_operations_monitor:4.1:*:*:*:*:*:*:*",
              "cpe:2.3:a:oracle:communications_operations_monitor:4.2:*:*:*:*:*:*:*",
              "cpe:2.3:a:oracle:communications_operations_monitor:4.3:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_operations_monitor",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.4"
                  },
                  {
                    "last_affected": "3.4"
                  },
                  {
                    "introduced": "4.1"
                  },
                  {
                    "last_affected": "4.1"
                  },
                  {
                    "introduced": "4.2"
                  },
                  {
                    "last_affected": "4.2"
                  },
                  {
                    "introduced": "4.3"
                  },
                  {
                    "last_affected": "4.3"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:suse:linux_enterprise:12.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "suse:linux_enterprise",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "12.0"
                  },
                  {
                    "last_affected": "12.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-14147",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443674,
  "published_at": "2020-06-15T18:15:14.99+00:00"
}