{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-42387",
        "assignerOrgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d",
        "assignerShortName": "JFROG",
        "dateUpdated": "2024-08-04T03:30:38.465Z",
        "dateReserved": "2021-10-14T00:00:00",
        "datePublished": "2022-03-14T00:00:00"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d",
                "shortName": "JFROG",
                "dateUpdated": "2022-11-04T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query. As part of the LZ4::decompressImpl() loop, a 16-bit unsigned user-supplied value ('offset') is read from the compressed data. The offset is later used in the length of a copy operation, without checking the upper bounds of the source of the copy operation."
                }
            ],
            "affected": [
                {
                    "vendor": "yandex",
                    "product": "clickhouse",
                    "versions": [
                        {
                            "version": "unspecified",
                            "status": "affected",
                            "lessThan": "21.10.2.15-stable",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms"
                },
                {
                    "name": "[debian-lts-announce] 20221104 [SECURITY] [DLA 3176-1] clickhouse security update",
                    "tags": [
                        "mailing-list"
                    ],
                    "url": "https://lists.debian.org/debian-lts-announce/2022/11/msg00002.html"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-125",
                            "cweId": "CWE-125"
                        }
                    ]
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-04T03:30:38.465Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "name": "[debian-lts-announce] 20221104 [SECURITY] [DLA 3176-1] clickhouse security update",
                        "tags": [
                            "mailing-list",
                            "x_transferred"
                        ],
                        "url": "https://lists.debian.org/debian-lts-announce/2022/11/msg00002.html"
                    }
                ]
            }
        ]
    }
}