CVE-2025-52935

Source
https://cve.org/CVERecord?id=CVE-2025-52935
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-52935.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-52935
Published
2025-06-23T09:27:18.355Z
Modified
2026-08-08T09:04:51.646929Z
Severity
  • 9.4 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/S:N/AU:Y/R:U/V:C/RE:M/U:Red CVSS Calculator
Summary
Integer Overflow or Wraparound vulnerability in dragonflydb/dragonfly
Details

Integer Overflow or Wraparound vulnerability in dragonflydb dragonfly (src/redis/lua/struct modules). This vulnerability is associated with program files lua_struct.C.

This issue affects dragonfly: 1.30.1, 1.30.0, 1.28.18.

Database specific
{
    "cna_assigner": "GovTech CSG",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/52xxx/CVE-2025-52935.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "1.28.18"
                },
                {
                    "last_affected": "1.28.18"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ],
    "cwe_ids": [
        "CWE-190"
    ]
}
References

Affected packages

Git / github.com/dragonflydb/dragonfly

Affected ranges

Type
GIT
Repo
https://github.com/dragonflydb/dragonfly
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "1.30.1"
        },
        {
            "last_affected": "1.30.1"
        },
        {
            "introduced": "1.30.0"
        },
        {
            "last_affected": "1.30.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.30.0
1.30.1

Database specific

vanir_signatures
[
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 380.0,
            "function_hash": "212353940668053933632077966106377345980"
        },
        "id": "CVE-2025-52935-0a151cef",
        "signature_type": "Function",
        "source": "https://github.com/dragonflydb/dragonfly/commit/473e002c848eb312f23d84114eb4951a7c4af5a1",
        "target": {
            "function": "getnum",
            "file": "src/redis/lua/struct/lua_struct.c"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 543.0,
            "function_hash": "209148936099144138409285023791391343778"
        },
        "id": "CVE-2025-52935-188358e6",
        "signature_type": "Function",
        "source": "https://github.com/dragonflydb/dragonfly/commit/473e002c848eb312f23d84114eb4951a7c4af5a1",
        "target": {
            "function": "controloptions",
            "file": "src/redis/lua/struct/lua_struct.c"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "252260118326799049191156181394685749318",
                "140212443415647500912109205308826769500",
                "47010833300303086681847101454590249461",
                "2250722161879345816330442566485950611",
                "291778318289862582589671380180879160640",
                "334836077840905045155583947536240977132",
                "75257252756429438366239461806916592544",
                "328810329053557788914453396839483306372",
                "128854904967302558653028066436045146216",
                "18412046823770042382161477427479286047",
                "61915029324611414734672095656655490873",
                "194538167452478719857363951948039156123",
                "219285841976367303374237696455245299327",
                "130487431531773260282343331813662805546",
                "62896359733481919104079431318740588747",
                "79844671906440840823825256474367351454",
                "82136349130077275828760951476966216953",
                "322234568658267143906843575519826420808",
                "139114028757505796482812688056023538966",
                "289225860499092828678937269241542432163",
                "77797580407604165072230177310498680959"
            ]
        },
        "id": "CVE-2025-52935-673c3c3d",
        "signature_type": "Line",
        "source": "https://github.com/dragonflydb/dragonfly/commit/473e002c848eb312f23d84114eb4951a7c4af5a1",
        "target": {
            "file": "src/redis/lua/struct/lua_struct.c"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 663.0,
            "function_hash": "145616438999787387902890994110005036109"
        },
        "id": "CVE-2025-52935-87157e30",
        "signature_type": "Function",
        "source": "https://github.com/dragonflydb/dragonfly/commit/473e002c848eb312f23d84114eb4951a7c4af5a1",
        "target": {
            "function": "optsize",
            "file": "src/redis/lua/struct/lua_struct.c"
        }
    }
]
vanir_signatures_modified
"2026-08-08T09:04:51Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-52935.json"