CVE-2018-12326

Source
https://cve.org/CVERecord?id=CVE-2018-12326
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12326.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-12326
Downstream
Published
2018-06-17T14:29:00.260Z
Modified
2026-02-15T07:29:16.817276Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allows an attacker to achieve code execution and escalate to higher privileges via a crafted command line. NOTE: It is unclear whether there are any common situations in which redis-cli is used with, for example, a -h (aka hostname) argument from an untrusted source.

References

Affected packages

Git / github.com/antirez/redis

Affected ranges

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12326.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 537.0,
            "function_hash": "146144452659066842643855273798132026598"
        },
        "signature_type": "Function",
        "id": "CVE-2018-12326-0f5a0e11",
        "source": "https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50",
        "target": {
            "function": "cliRefreshPrompt",
            "file": "src/redis-cli.c"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "146264985553595089145888339228984694289",
                "113754568195038235696637820371386473616",
                "224911718037559361398808131730777104524",
                "134658735481029258007295347194332157557",
                "21567913034220869488508823767117699260",
                "296618262718945337247626838152582925210",
                "82872893145819204693760210741615528741",
                "178152789952146131277788812814427986525",
                "35565501370380585105578981504713198831",
                "185859955516836619073481433019209676413",
                "141760063213812449782793380496342905096",
                "249660733661301555995076314996295137465",
                "215039319072738157660098692135707269863",
                "41518852328670001634063818553895915199",
                "124095596589395108240262028786891795258"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "id": "CVE-2018-12326-9732fa61",
        "source": "https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50",
        "target": {
            "file": "src/redis-cli.c"
        }
    }
]