{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2022-35977",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Redis is an in-memory database that persists on disk. Authenticated users issuing specially crafted `SETRANGE` and `SORT(_RO)` commands can trigger an integer overflow, resulting with Redis attempting to allocate impossible amounts of memory and abort with an out-of-memory (OOM) panic. The problem is fixed in Redis versions 7.0.8, 6.2.9 and 6.0.17. Users are advised to upgrade. There are no known workarounds for this vulnerability."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-190: Integer Overflow or Wraparound",
                        "cweId": "CWE-190"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "redis",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "redis",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": ">= 7.0, < 7.0.8",
                                            "version_affected": "="
                                        },
                                        {
                                            "version_value": ">= 6.2, < 6.2.9",
                                            "version_affected": "="
                                        },
                                        {
                                            "version_value": "< 6.0.17",
                                            "version_affected": "="
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/redis/redis/security/advisories/GHSA-mrcw-fhw9-fj8j",
                "refsource": "MISC",
                "name": "https://github.com/redis/redis/security/advisories/GHSA-mrcw-fhw9-fj8j"
            },
            {
                "url": "https://github.com/redis/redis/commit/1ec82e6e97e1db06a72ca505f9fbf6b981f31ef7",
                "refsource": "MISC",
                "name": "https://github.com/redis/redis/commit/1ec82e6e97e1db06a72ca505f9fbf6b981f31ef7"
            },
            {
                "url": "https://github.com/redis/redis/releases/tag/6.0.17",
                "refsource": "MISC",
                "name": "https://github.com/redis/redis/releases/tag/6.0.17"
            },
            {
                "url": "https://github.com/redis/redis/releases/tag/6.2.9",
                "refsource": "MISC",
                "name": "https://github.com/redis/redis/releases/tag/6.2.9"
            },
            {
                "url": "https://github.com/redis/redis/releases/tag/7.0.8",
                "refsource": "MISC",
                "name": "https://github.com/redis/redis/releases/tag/7.0.8"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-mrcw-fhw9-fj8j",
        "discovery": "UNKNOWN"
    },
    "impact": {
        "cvss": [
            {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 5.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
            }
        ]
    }
}