Skip to content
Heist/ feed
Back to feed
UnratedFix available

Stack overflow during recursive expression parsing

Type: advisorySources: OSV

When parsing untrusted rulex expressions, the stack may overflow, possibly enabling a Denial of Service attack. This happens when parsing an expression with several hundred levels of nesting, causing the process to abort immediately. The flaw was corrected in commits `60aa2dc03a` by adding a check to recursion depth.

Products
rulex
Affected versions
Not specified
Fixed versions
0.4.3
CVEs
CVE-2022-31099
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 08:42 UTC · Revision 1

Source evidence

Stack overflow during recursive expression parsing

core-osv · Original source

Published 21 May 2022, 12:00 UTC

When parsing untrusted rulex expressions, the stack may overflow, possibly enabling a Denial of Service attack. This happens when parsing an expression with several hundred levels of nesting, causing the process to abort immediately. The flaw was corrected in commits `60aa2dc03a` by adding a check to recursion depth.

osv:RUSTSEC-2022-0030

rulex

Fixed versions: 0.4.3

Complete source record
{
  "id": "1ada2594ea3d74b92759a95b3389c95172214e59cc716e0cfc5d858867697f99",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2022-0030",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Stack overflow during recursive expression parsing",
    "summary": "When parsing untrusted rulex expressions, the stack may overflow, possibly enabling a Denial of Service attack. This happens when parsing an expression with several hundred levels of nesting, causing the process to abort immediately. The flaw was corrected in commits `60aa2dc03a` by adding a check to recursion depth.",
    "evidence": "osv:RUSTSEC-2022-0030",
    "products": [
      {
        "name": {
          "value": "rulex",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.4.3",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "RUSTSEC-2022-0030",
      "aliases": [
        "CVE-2022-31099",
        "GHSA-v78m-2q7v-fjqp",
        "RUSTSEC-2022-0030"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "0.4.3"
                }
              ]
            }
          ],
          "package": {
            "name": "rulex",
            "purl": "pkg:cargo/rulex",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": null,
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0030.json",
            "categories": [
              "denial-of-service"
            ],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": []
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-12T18:00:05.119333870Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/rulex",
        "https://rustsec.org/advisories/RUSTSEC-2022-0030.html",
        "https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-31099",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 306352,
  "published_at": "2022-05-21T12:00:00+00:00"
}