{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-118769",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-10-28T19:20:05.017Z",
        "datePublished": "2026-10-29T17:22:07.316Z",
        "dateUpdated": "2026-10-29T17:22:07.316Z"
    },
    "containers": {
        "cna": {
            "title": "Botan: Integer overflow when reporting block size in FFI can cause memory corruption",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-125",
                            "lang": "en",
                            "description": "CWE-125: Out-of-bounds Read",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-681",
                            "lang": "en",
                            "description": "CWE-681: Incorrect Conversion between Numeric Types",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-787",
                            "lang": "en",
                            "description": "CWE-787: Out-of-bounds Write",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 9.2,
                        "baseSeverity": "CRITICAL",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
                        "version": "4.0"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/randombit/botan/security/advisories/GHSA-c68p-822g-jfvr",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/randombit/botan/security/advisories/GHSA-c68p-822g-jfvr"
                },
                {
                    "name": "https://github.com/randombit/botan/pull/5805",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/randombit/botan/pull/5805"
                },
                {
                    "name": "https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0af3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0af3"
                }
            ],
            "affected": [
                {
                    "vendor": "randombit",
                    "product": "botan",
                    "versions": [
                        {
                            "version": ">= 2.1.0, < 3.13.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-10-29T17:22:07.316Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Botan is a C++ cryptography library. From 2.1.0 until 3.13.0, the Botan C API function botan_block_cipher_block_size converted a size_t block size to int without a bounds check. In an application that accepts external algorithm parameter strings and uses the FFI raw ECB mode, an attacker can select the variable-block-size Lion cipher so that the reported size is truncated, the caller allocates insufficient memory, and later block processing causes memory corruption. The C++ API and normally used C API modes such as CBC and CTR are unaffected. This issue is fixed in version 3.13.0."
                }
            ],
            "source": {
                "advisory": "GHSA-c68p-822g-jfvr",
                "discovery": "UNKNOWN"
            }
        }
    }
}