Skip to content
Heist/ feed
Back to feed
CriticalFix available

lua5.4 — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2022-28805

singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.

Products
lua5.4
Affected versions
Not specified
Fixed versions
5.4.3-r1, 5.4.4-r4
CVEs
CVE-2022-28805
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:11 UTC · Revision 1

Source evidence

ALPINE-CVE-2022-28805

core-osv · Original source

Published 8 Apr 2022, 06:15 UTC

singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.

osv:ALPINE-CVE-2022-28805

lua5.4

Fixed versions: 5.4.3-r1

lua5.4

Fixed versions: 5.4.3-r1

lua5.4

Fixed versions: 5.4.4-r4

lua5.4

Fixed versions: 5.4.4-r4

lua5.4

Fixed versions: 5.4.4-r4

lua5.4

Fixed versions: 5.4.4-r4

lua5.4

Fixed versions: 5.4.4-r4

lua5.4

Fixed versions: 5.4.4-r4

lua5.4

Fixed versions: 5.4.4-r4

lua5.4

Fixed versions: 5.4.4-r4

lua5.4

Fixed versions: 5.4.4-r4

Complete source record
{
  "id": "eab29408161a13d4d696b0e396e1aac2fb3ad2c460b3eaa7faf567dec3ab9568",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2022-28805",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2022-28805",
    "summary": "singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.",
    "evidence": "osv:ALPINE-CVE-2022-28805",
    "products": [
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.3-r1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.3-r1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/9/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lua5.4",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.4-r4",
            "evidence": "/affected/10/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "ALPINE-CVE-2022-28805",
      "aliases": [
        "ALPINE-CVE-2022-28805"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.3-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.3-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.20"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.4-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "lua5.4",
            "purl": "pkg:apk/alpine/lua5.4?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-28805.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-15T07:17:54.201646304Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-28805"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2022-28805"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-28805",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 321822,
  "published_at": "2022-04-08T06:15:07.243+00:00"
}