CVE-2022-28805

Source
https://cve.org/CVERecord?id=CVE-2022-28805
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-28805.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-28805
Aliases
Downstream
Related
Published
2022-04-08T06:15:07.243Z
Modified
2026-02-23T08:25:48.917858Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/lua/lua

Affected ranges

Type
GIT
Repo
https://github.com/lua/lua
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed

Affected versions

v5.*
v5.4.0
v5.4.1
v5.4.2
v5.4.3
v5.4.4

Database specific

vanir_signatures
[
    {
        "signature_type": "Function",
        "id": "CVE-2022-28805-6dde851f",
        "target": {
            "file": "lparser.c",
            "function": "singlevar"
        },
        "deprecated": false,
        "digest": {
            "function_hash": "53201180014080356134198209586064207783",
            "length": 347.0
        },
        "signature_version": "v1",
        "source": "https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa"
    },
    {
        "signature_type": "Line",
        "id": "CVE-2022-28805-a5c78703",
        "target": {
            "file": "lparser.c"
        },
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "32201794497045802336489965260675966661",
                "222355253276990523824162340041015369710",
                "28722556712081149350779902624787499513",
                "154526588328123496999063531195759804808"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "source": "https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa"
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-28805.json"