CVE-2026-118769

Description

A flaw was found in Botan. An attacker can exploit an unchecked integer truncation in the C programming interface by supplying untrusted algorithm parameters that specify a variable-block-size cipher. This flaw causes the application to allocate an undersized memory buffer, resulting in heap memory corruption during data processing that may lead to arbitrary code execution or a denial of service (DoS).

Déclaration

A flaw was found in Botan's C API function botan_block_cipher_block_size(). When an application utilizing the C FFI raw ECB mode accepts untrusted external algorithm parameter strings, an attacker can specify the variable-block-size Lion cipher to trigger an unchecked integer truncation from size_t to int. This causes the application to allocate an undersized buffer, resulting in heap memory corruption during subsequent block processing.

Mesure d'atténuation

Sanitize and restrict external algorithm parameter inputs using an allowlist to reject the variable-length Lion cipher when invoking Botan's C FFI interface. Alternatively, configure the application to utilize the native C++ API or standard cipher modes such as CBC or CTR instead of raw ECB mode.

Détails du score du système commun d'évaluation des vulnérabilités (CVSS)

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

Les mesures et les scores CVSS suivants sont préliminaires et sujets à révision.

Répartition des scores CVSS v3

Red HatNVDcve.org
Score de base8.1N/AN/A
Vecteur d'attaqueNetworkN/AN/A
Complexité de l'attaqueHighN/AN/A
Privilèges requisNoneN/AN/A
Interaction avec l'utilisateurNoneN/AN/A
Champ d'applicationUnchangedN/AN/A
ConfidentialitéHighN/AN/A
Impact sur l'intégritéHighN/AN/A
Impact sur la disponibilitéHighN/AN/A

Vecteur

Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Comprendre la Défaillance (CWE)

Other,Integrity

Technical Impact: Unexpected State; Quality Degradation

The program could wind up using the wrong number and generate incorrect results. If the number is used to allocate resources or make a security decision, then this could introduce a vulnerability.

Questions fréquemment posées

Vous souhaitez recevoir des notifications d'errata ? Signez ici.