CVE-2026-22262

Suricata datasets: stack overflow when saving a set

Published Jan 27, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Suricata is a network IDS, IPS and NSM engine. While saving a dataset a stack buffer is used to prepare the data. Prior to versions 8.0.3 and 7.0.14, if the data in the dataset is too large, this can result in a stack overflow. Versions 8.0.3 and 7.0.14 contain a patch. As a workaround, do not use rules with datasets `save` nor `state` options.

Analysis

AI-generated

Technical impact

When Suricata processes a dataset, it uses a stack buffer to assemble the data. In versions older than 8.0.3 and 7.0.14, a dataset that exceeds the buffer capacity triggers a stack overflow. The overflow can corrupt memory used by Suricata, leading to unpredictable program behavior or crashes. The flaw is classified as CWE‑121 (Stack Based Buffer Overflow) and CWE‑787 (Out of Bounds Write).

Affected Systems

The vulnerability affects OISF Suricata versions 7.0.0 through 7.0.13 and 8.0.0 through 8.0.2. Versions 7.0.14 and 8.0.3 include the fix; other releases are not known to be affected.

Risk and Exploitability

The CVSS score of 5.9 reflects moderate severity, while the EPSS score of less than 1 % indicates a very low likelihood of exploitation at present. Suricata is not listed in CISA KEV, so no widespread exploitation is documented. The most likely attack vector requires local access to configure or supply rule datasets, but could also be remote if the dataset is influenced by external inputs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Suricata to version 8.0.3 or later, or to 7.0.14 or later if staying on the 7.x branch, to apply the official fix.
  • Avoid using the dataset options that trigger a save or state action until the patch is applied; this is the documented workaround.
  • If upgrading immediately is not feasible, reduce dataset size or remove large entries so that the data remains below the stack buffer capacity, thereby preventing overflow.

Generated by OpenCVE AI on April 18, 2026 at 18:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-787
CPEs cpe:2.3:a:oisf:suricata:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Oisf
Oisf suricata
Vendors & Products Oisf
Oisf suricata
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Suricata is a network IDS, IPS and NSM engine. While saving a dataset a stack buffer is used to prepare the data. Prior to versions 8.0.3 and 7.0.14, if the data in the dataset is too large, this can result in a stack overflow. Versions 8.0.3 and 7.0.14 contain a patch. As a workaround, do not use rules with datasets `save` nor `state` options.
Title Suricata datasets: stack overflow when saving a set
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 27, 2026, 7:30 PM
Reserved
Jan 7, 2026, 5:19 AM
Status
Analyzed
Published
Jan 27, 2026, 7:16 PM
Modified
Jun 17, 2026, 10:19 AM
Severity
Moderate
Public date
Jan 27, 2026, 6:18 PM