CVE Vulnerabilities

CVE-2026-11822

Out-of-bounds Read

Published: Jun 09, 2026 | Modified: Oct 30, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.8 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

SQLite before 3.53.2 contains an out-of-bounds read vulnerability in the FTS5 full-text search extension that allows attackers to crash the process by supplying a crafted database with a malformed FTS5 leaf page. Attackers can set an oversized term length in the leaf page so that fts5LeafSeek() reads past the end of the page buffer while comparing terms during an FTS5 MATCH query, in applications compiled with SQLITE_ENABLE_FTS5.

Weakness

The product reads data past the end, or before the beginning, of the intended buffer.

Affected Software

NameVendorStart VersionEnd Version
SqliteSqlite*3.53.2 (excluding)
Red Hat Enterprise Linux 10RedHatsqlite-0:3.46.1-6.el10_2*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatsqlite-0:3.46.1-5.el10_0.1*
Red Hat Enterprise Linux 8RedHatnodejs:24-8100020260807112957.6d880403*
Red Hat Enterprise Linux 8RedHatnodejs:22-8100020260807115047.6d880403*
Red Hat Enterprise Linux 8RedHatsqlite-0:3.26.0-21.el8_10*
Red Hat Enterprise Linux 8RedHatmingw-sqlite-0:3.26.0.0-3.el8_10*
Red Hat Enterprise Linux 8RedHatsqlite-0:3.26.0-21.el8_10*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatsqlite-0:3.26.0-13.el8_4.2*
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRedHatsqlite-0:3.26.0-13.el8_4.2*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatsqlite-0:3.26.0-16.el8_6.4*
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-OnRedHatsqlite-0:3.26.0-16.el8_6.4*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatsqlite-0:3.26.0-18.el8_8.3*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatsqlite-0:3.26.0-18.el8_8.3*
Red Hat Enterprise Linux 9RedHatnodejs:22-9080020260806135640.rhel9*
Red Hat Enterprise Linux 9RedHatnodejs:24-9080020260806135511.rhel9*
Red Hat Enterprise Linux 9RedHatsqlite-0:3.34.1-11.el9_8*
Red Hat Enterprise Linux 9RedHatsqlite-0:3.34.1-11.el9_8*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatsqlite-0:3.34.1-6.el9_2.3*
Red Hat Enterprise Linux 9.4 Update Services for SAP SolutionsRedHatsqlite-0:3.34.1-7.el9_4.2*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatsqlite-0:3.34.1-8.el9_6.1*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatnodejs:22-9060020260901085634.rhel9*
Red Hat OpenShift Container Platform 4.12RedHatopenshift/ose-rhel-coreos-8:412.86.202609082051-0*
Red Hat OpenShift Container Platform 4.13RedHatopenshift/ose-rhel-coreos-9:413.92.202609080414-0*
Red Hat OpenShift Container Platform 4.14RedHatopenshift/ose-rhel-coreos-9:414.92.202609282130-0*
Red Hat OpenShift Container Platform 4.15RedHatopenshift/ose-rhel-coreos-9:415.92.202610081130-0*
Red Hat OpenShift Container Platform 4.16RedHatopenshift/ose-rhel-coreos-9:416.94.202609140240-0*
Red Hat OpenShift Container Platform 4.17RedHatopenshift/ose-rhel-coreos-9:417.94.202609191027-0*
Red Hat OpenShift Container Platform 4.18RedHatopenshift/ose-rhel-coreos-9:418.94.202609031320-0*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/jetstack-cert-manager-acmesolver-rhel9:1791371080*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/jetstack-cert-manager-rhel9:1791371069*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/cert-manager-operator-rhel9:1791788287*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/cert-manager-istio-csr-rhel9:1791378395*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/cert-manager-operator-bundle:1791970484*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/jetstack-cert-manager-acmesolver-rhel9:1791459707*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/jetstack-cert-manager-rhel9:1791459711*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/cert-manager-istio-csr-rhel9:1791459759*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/cert-manager-operator-rhel9:1789029076*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/cert-manager-operator-bundle:1791966259*
Cert Manager support for Red Hat OpenShift release 1.19RedHatcert-manager/cert-manager-operator-rhel9:1788348522*
Cert Manager support for Red Hat OpenShift release 1.19RedHatcert-manager/jetstack-cert-manager-acmesolver-rhel9:1788348571*
Cert Manager support for Red Hat OpenShift release 1.19RedHatcert-manager/jetstack-cert-manager-rhel9:1788348571*
Cert Manager support for Red Hat OpenShift release 1.19RedHatcert-manager/cert-manager-istio-csr-rhel9:1788348594*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/jetstack-cert-manager-rhel9:1790223279*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/cert-manager-istio-csr-rhel9:1790223719*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/cert-manager-operator-rhel9:1790272426*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/jetstack-cert-manager-acmesolver-rhel9:1790589998*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/jetstack-cert-manager-rhel9:1790589912*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/cert-manager-istio-csr-rhel9:1790589914*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/cert-manager-operator-rhel9:1790589855*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/cert-manager-trust-manager-rhel9:1790598593*
Red Hat AI Inference Server 3.2RedHatrhaiis/vllm-cuda-rhel9:1787860580*
Red Hat AI Inference Server 3.2RedHatrhaiis/model-opt-cuda-rhel9:1787772157*
Red Hat AI Inference Server 3.2RedHatrhaiis/vllm-rocm-rhel9:1787884873*
Red Hat AI Inference Server 3.2RedHatrhaiis/model-opt-cuda-rhel9:1790621714*
Red Hat AI Inference Server 3.2RedHatrhaiis/vllm-cuda-rhel9:1790621718*
Red Hat AI Inference Server 3.2RedHatrhaiis/vllm-rocm-rhel9:1790621713*
Red Hat AI Inference Server 3.3RedHatrhaiis/model-opt-cuda-rhel9:1789508287*
Red Hat AI Inference Server 3.3RedHatrhaiis/vllm-spyre-rhel9:1789502493*
Red Hat AI Inference Server 3.3RedHatrhaiis/vllm-rocm-rhel9:1789504371*
Red Hat AI Inference Server 3.3RedHatrhaiis/vllm-cuda-rhel9:1789582776*
Red Hat AI Inference Server 3.5RedHatrhaii/vllm-rocm-rhel9:1791425869*
Red Hat AI Inference Server 3.5RedHatrhaii/vllm-gaudi-rhel9:1791427182*
Red Hat AI Inference Server 3.5RedHatrhaii/model-opt-cuda-rhel9:1791803821*
Red Hat AI Inference Server 3.5RedHatrhaii/vllm-cuda-rhel9:1791473631*
Red Hat AI Inference Server 3.5RedHatrhaii/vllm-spyre-rhel9:1791818357*
Red Hat AI Inference Server 3.5RedHatrhaii/vllm-cpu-rhel9:1791473614*
Red Hat Discovery 2RedHatdiscovery/discovery-server-rhel9:1788205779*
Red Hat Discovery 2RedHatdiscovery/discovery-ui-rhel9:1788206196*
Red Hat Enterprise Linux AI 3.3RedHatrhelai3/bootc-aws-cuda-rhel9:1790936334*
Red Hat Enterprise Linux AI 3.3RedHatrhelai3/bootc-azure-cuda-rhel9:1790936351*
Red Hat Enterprise Linux AI 3.3RedHatrhelai3/bootc-azure-rocm-rhel9:1790850900*
Red Hat Enterprise Linux AI 3.3RedHatrhelai3/bootc-cuda-rhel9:1790866732*
Red Hat Enterprise Linux AI 3.3RedHatrhelai3/bootc-gcp-cuda-rhel9:1790936334*
Red Hat Enterprise Linux AI 3.3RedHatrhelai3/bootc-rocm-rhel9:1790791893*
Red Hat Enterprise Linux AI 3.3RedHatrhelai3/disk-image-cuda-rhel9:1790954179*
Red Hat Enterprise Linux AI 3.5RedHatrhelai3/disk-image-cuda-rhel9:1793206758*
Red Hat Enterprise Linux AI 3.5RedHatrhelai3/bootc-aws-cuda-rhel9:1793194817*
Red Hat Enterprise Linux AI 3.5RedHatrhelai3/bootc-azure-cuda-rhel9:1793194815*
Red Hat Enterprise Linux AI 3.5RedHatrhelai3/bootc-azure-rocm-rhel9:1793194834*
Red Hat Enterprise Linux AI 3.5RedHatrhelai3/bootc-cuda-rhel9:1793135861*
Red Hat Enterprise Linux AI 3.5RedHatrhelai3/bootc-gcp-cuda-rhel9:1793194815*
Red Hat Enterprise Linux AI 3.5RedHatrhelai3/bootc-rocm-rhel9:1793135863*
Red Hat Hardened ImagesRedHatsqlite-main-3.53.4-0.1.hum1*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-codeflare-operator-rhel9:1791861503*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-dashboard-rhel9:1791853525*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-feast-operator-rhel9:1791861503*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-kuberay-operator-controller-rhel9:1791862178*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-kueue-controller-rhel9:1791854046*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-llama-stack-core-rhel9:1791873747*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-llama-stack-k8s-operator-rhel9:1791866552*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-llm-d-inference-scheduler-rhel9:1790865859*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-llm-d-routing-sidecar-rhel9:1790867316*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-mm-rest-proxy-rhel9:1790739287*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-mod-arch-model-registry-rhel9:1791853432*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-model-controller-rhel9:1791864466*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-modelmesh-rhel9:1790881700*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-modelmesh-runtime-adapter-rhel9:1791868128*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-modelmesh-serving-controller-rhel9:1791866455*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1791902759*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1791867208*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1791867137*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1791902535*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1791867196*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-training-operator-rhel9:1791869922*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-trustyai-service-operator-rhel9:1791870773*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-trustyai-service-rhel9:1790933094*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1791867222*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1791903144*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1791867191*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1791867189*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1791867238*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1791867244*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1791867230*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-rocm-rhel9:1790276886*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-tpu-rhel9:1790276884*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-cpu-rhel9:1790277045*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-spyre-rhel9:1790276889*
Red Hat OpenShift AI 3.0RedHatrhai/base-image-cuda-rhel9:1790276974*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-tpu-rhel9:1790703497*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-rocm-rhel9:1790703506*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-cpu-rhel9:1790703590*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-spyre-rhel9:1790703568*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-cuda-rhel9:1790703586*
Red Hat OpenShift AI 3.2RedHatrhai/base-image-rocm-rhel9:1790703494*
Red Hat OpenShift AI 3.3RedHatrhoai/odh-kuberay-operator-controller-rhel9:1790135074*
Red Hat OpenShift AI 3.3RedHatrhoai/odh-llama-stack-k8s-operator-rhel9:1790136446*
Red Hat OpenShift AI 3.3RedHatrhoai/odh-model-controller-rhel9:1790134001*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cpu-rhel9:1790703615*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-tpu-rhel9:1790703516*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-rocm-6.4-rhel9:1790703524*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cuda-13.0-rhel9:1790703601*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-rocm-7.0-rhel9:1790703516*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cuda-12.9-rhel9:1790703608*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-spyre-rhel9:1790703579*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-neuron-rhel9:1790703516*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cuda-13.0-rhel9:1791231820*
Red Hat OpenShift AI 3.3RedHatrhai/base-image-cuda-12.9-rhel9:1791232257*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-neuron-rhel9:1790703542*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-tpu-rhel9:1790703539*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-gaudi-rhel9:1790703553*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-cpu-rhel9:1790703631*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-spyre-rhel9:1790703597*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-cuda-13.0-rhel9:1790703641*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-cuda-12.9-rhel9:1790703630*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-rocm-7.1-rhel9:1790703541*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-rocm-6.4-rhel9:1790703545*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-automl-rhel9:1791535789*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-autorag-rhel9:1791557539*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-cli-rhel9:1791509689*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-dashboard-rhel9:1791861020*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-eval-hub-rhel9:1791852583*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-feast-operator-rhel9:1791862118*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-fms-guardrails-orchestrator-rhel9:1791862392*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-kserve-autogluon-server-rhel9:1791300023*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-kserve-llmisvc-controller-rhel9:1791468484*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-kube-auth-proxy-rhel9:1791862541*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-kuberay-operator-controller-rhel9:1791864835*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-llama-stack-k8s-operator-rhel9:1791868129*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-maas-api-rhel9:1791788707*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-maas-controller-rhel9:1791790095*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-mlserver-rhel9:1791446063*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-mod-arch-automl-rhel9:1791861032*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-mod-arch-autorag-rhel9:1791860994*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-mod-arch-eval-hub-rhel9:1791861214*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-mod-arch-maas-rhel9:1791860708*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-mod-arch-model-registry-rhel9:1791860918*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-model-controller-rhel9:1790958159*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-model-performance-data-rhel9:1790958081*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-model-serving-api-rhel9:1790958168*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-must-gather-rhel9:1791351741*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-openvino-model-server-rhel9:1790958108*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-rhaii-cluster-validator-rhel9:1791515478*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-rhel9-operator:1792040238*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-spark-operator-rhel9:1790958993*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-th06-cpu-torch210-py312-rhel9:1791874335*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-th06-cuda130-torch210-py312-rhel9:1791961113*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-th06-rocm64-torch291-py312-rhel9:1791872119*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-trainer-rhel9:1791869783*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-training-operator-rhel9:1791870503*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-trustyai-garak-lls-provider-dsp-rhel9:1791785804*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-trustyai-nemo-guardrails-server-rhel9:1791556128*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-trustyai-service-operator-rhel9:1791292352*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-trustyai-service-rhel9:1791792525*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1791788267*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1791872084*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1791870673*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1791953196*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1791869801*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1791832538*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workload-variant-autoscaler-controller-rhel9:1791868131*
Red Hat OpenShift AI 3.4RedHatrhoai/rhai-cli-rhel9:1791509689*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-feature-server-rhel9:1792685074*
Red Hat Update Infrastructure 5RedHatrhui5/cds-kubernetes-rhel9:1788880445*
Red Hat Update Infrastructure 5RedHatrhui5/cds-rhel9:1788880464*
Red Hat Update Infrastructure 5RedHatrhui5/haproxy-rhel9:1788880456*
Red Hat Update Infrastructure 5RedHatrhui5/installer-rhel9:1788765051*
Red Hat Update Infrastructure 5RedHatrhui5/rhua-rhel9:1788880581*
SqliteUbuntuupstream*
Sqlite3Ubuntujammy*
Sqlite3Ubuntunoble*
Sqlite3Ubuntuquesting*
Sqlite3Ubunturesolute*
Sqlite3Ubuntuupstream*

Potential Mitigations

  • Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
  • When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”
  • Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
  • To reduce the likelihood of introducing an out-of-bounds read, ensure that you validate and ensure correct calculations for any length argument, buffer size calculation, or offset. Be especially careful of relying on a sentinel (i.e. special character such as NUL) in untrusted inputs.

References