CVE-2026-54888 (GCVE-0-2026-54888)

Vulnerability from cvelistv5 – Published: 2026-06-29 19:10 – Updated: 2026-06-30 04:37
VLAI
Title
Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex
Summary
Uncontrolled Recursion vulnerability in leandrocp mdex allows denial of service via deeply nested Markdown input. mdex converts between an Elixir %MDEx.Document{} struct and Comrak's internal AST using two mutually recursive Rust functions, ex_document_to_comrak_ast and comrak_ast_to_ex_document, in the NIF source file document.rs. Neither function enforces a maximum nesting depth, so the recursion depth is bounded only by the structure of the input. An attacker who can get a Markdown document rendered (for example through MDEx.parse_document!/1 or MDEx.to_html/1) can supply a document with thousands of nested block quotes, which drives unbounded recursion across the NIF boundary and exhausts the native C stack. Because the resulting stack overflow is an uncatchable SIGSEGV raised inside a NIF, it cannot be contained by the Erlang runtime. It terminates the operating system process running the BEAM, killing every Elixir and Erlang process on the node, not just the caller that triggered the render. No authentication or special privileges are required. The vulnerable conversion code was extracted from mdex into the separate mdex_native package starting in mdex 0.12.3. This issue affects mdex from 0.3.0 before 0.12.3 and mdex_native from 0.1.0 before 0.2.3.
SSVC
Exploitation: poc Automatable: no Technical Impact: partial
CISA Coordinator (v2.0.3)
CWE
Assigner
EEF
Impacted products
Vendor Product Version
leandrocp mdex Affected: 0.3.0 , < 0.12.3 (semver)
    cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
Create a notification for this product.
leandrocp mdex Affected: d0bc7d55177727c61d188ef465178ab3b81f4f2c , < 6ed94d905f97af188323f042698ae841c02293b4 (git)
    cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
Create a notification for this product.
leandrocp mdex_native Affected: 0.1.0 , < 0.2.3 (semver)
    cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*
Create a notification for this product.
leandrocp mdex_native Affected: 956528c5e31746253347029e810a969ab916fd27 , < 947696c47bc22bea5dffc0f78c946fa6b70ce183 (git)
    cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*
Create a notification for this product.
Credits
Peter Ullrich Leandro Pereira Jonatan Männchen / EEF
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-54888",
                "options": [
                  {
                    "Exploitation": "poc"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-06-29T20:47:22.348133Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-06-29T20:47:50.953Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "references": [
          {
            "tags": [
              "exploit"
            ],
            "url": "https://github.com/leandrocp/mdex_native/security/advisories/GHSA-3w4f-53g2-f66p"
          }
        ],
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://repo.hex.pm",
          "cpes": [
            "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "comrak_nif",
            "\u0027Elixir.MDEx\u0027",
            "\u0027Elixir.MDEx.Native\u0027"
          ],
          "packageName": "mdex",
          "packageURL": "pkg:hex/mdex",
          "product": "mdex",
          "programFiles": [
            "native/comrak_nif/src/types/document.rs",
            "lib/mdex.ex",
            "lib/mdex/native.ex"
          ],
          "programRoutines": [
            {
              "name": "comrak_nif::types::document::ex_document_to_comrak_ast"
            },
            {
              "name": "comrak_nif::types::document::comrak_ast_to_ex_document"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:parse_document!/1"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:to_html/1"
            },
            {
              "name": "\u0027Elixir.MDEx.Native\u0027:document_to_html_with_options/2"
            }
          ],
          "repo": "https://github.com/leandrocp/mdex",
          "vendor": "leandrocp",
          "versions": [
            {
              "lessThan": "0.12.3",
              "status": "affected",
              "version": "0.3.0",
              "versionType": "semver"
            }
          ]
        },
        {
          "collectionURL": "https://github.com",
          "cpes": [
            "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "comrak_nif",
            "\u0027Elixir.MDEx\u0027",
            "\u0027Elixir.MDEx.Native\u0027"
          ],
          "packageName": "leandrocp/mdex",
          "packageURL": "pkg:github/leandrocp/mdex",
          "product": "mdex",
          "programFiles": [
            "native/comrak_nif/src/types/document.rs",
            "lib/mdex.ex",
            "lib/mdex/native.ex"
          ],
          "programRoutines": [
            {
              "name": "comrak_nif::types::document::ex_document_to_comrak_ast"
            },
            {
              "name": "comrak_nif::types::document::comrak_ast_to_ex_document"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:parse_document!/1"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:to_html/1"
            },
            {
              "name": "\u0027Elixir.MDEx.Native\u0027:document_to_html_with_options/2"
            }
          ],
          "repo": "https://github.com/leandrocp/mdex",
          "vendor": "leandrocp",
          "versions": [
            {
              "lessThan": "6ed94d905f97af188323f042698ae841c02293b4",
              "status": "affected",
              "version": "d0bc7d55177727c61d188ef465178ab3b81f4f2c",
              "versionType": "git"
            }
          ]
        },
        {
          "collectionURL": "https://repo.hex.pm",
          "cpes": [
            "cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "mdex_native_nif",
            "\u0027Elixir.MDExNative.Native\u0027"
          ],
          "packageName": "mdex_native",
          "packageURL": "pkg:hex/mdex_native",
          "product": "mdex_native",
          "programFiles": [
            "native/mdex_native_nif/src/types/document.rs",
            "lib/mdex_native/native.ex"
          ],
          "programRoutines": [
            {
              "name": "mdex_native_nif::types::document::ex_document_to_comrak_ast"
            },
            {
              "name": "mdex_native_nif::types::document::comrak_ast_to_ex_document"
            },
            {
              "name": "\u0027Elixir.MDExNative.Native\u0027:parse_document/2"
            },
            {
              "name": "\u0027Elixir.MDExNative.Native\u0027:document_to_html_with_options/2"
            }
          ],
          "repo": "https://github.com/leandrocp/mdex_native",
          "vendor": "leandrocp",
          "versions": [
            {
              "lessThan": "0.2.3",
              "status": "affected",
              "version": "0.1.0",
              "versionType": "semver"
            }
          ]
        },
        {
          "collectionURL": "https://github.com",
          "cpes": [
            "cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "mdex_native_nif",
            "\u0027Elixir.MDExNative.Native\u0027"
          ],
          "packageName": "leandrocp/mdex_native",
          "packageURL": "pkg:github/leandrocp/mdex_native",
          "product": "mdex_native",
          "programFiles": [
            "native/mdex_native_nif/src/types/document.rs",
            "lib/mdex_native/native.ex"
          ],
          "programRoutines": [
            {
              "name": "mdex_native_nif::types::document::ex_document_to_comrak_ast"
            },
            {
              "name": "mdex_native_nif::types::document::comrak_ast_to_ex_document"
            },
            {
              "name": "\u0027Elixir.MDExNative.Native\u0027:parse_document/2"
            },
            {
              "name": "\u0027Elixir.MDExNative.Native\u0027:document_to_html_with_options/2"
            }
          ],
          "repo": "https://github.com/leandrocp/mdex_native",
          "vendor": "leandrocp",
          "versions": [
            {
              "lessThan": "947696c47bc22bea5dffc0f78c946fa6b70ce183",
              "status": "affected",
              "version": "956528c5e31746253347029e810a969ab916fd27",
              "versionType": "git"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "0.12.3",
                  "versionStartIncluding": "0.3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "0.2.3",
                  "versionStartIncluding": "0.1.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Peter Ullrich"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Leandro Pereira"
        },
        {
          "lang": "en",
          "type": "analyst",
          "value": "Jonatan M\u00e4nnchen / EEF"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eUncontrolled Recursion vulnerability in leandrocp mdex allows denial of service via deeply nested Markdown input.\u003c/p\u003e\u003cp\u003emdex converts between an Elixir \u003ctt\u003e%MDEx.Document{}\u003c/tt\u003e struct and Comrak\u0027s internal AST using two mutually recursive Rust functions, \u003ctt\u003eex_document_to_comrak_ast\u003c/tt\u003e and \u003ctt\u003ecomrak_ast_to_ex_document\u003c/tt\u003e, in the NIF source file \u003ctt\u003edocument.rs\u003c/tt\u003e. Neither function enforces a maximum nesting depth, so the recursion depth is bounded only by the structure of the input. An attacker who can get a Markdown document rendered (for example through \u003ctt\u003eMDEx.parse_document!/1\u003c/tt\u003e or \u003ctt\u003eMDEx.to_html/1\u003c/tt\u003e) can supply a document with thousands of nested block quotes, which drives unbounded recursion across the NIF boundary and exhausts the native C stack.\u003c/p\u003e\u003cp\u003eBecause the resulting stack overflow is an uncatchable SIGSEGV raised inside a NIF, it cannot be contained by the Erlang runtime. It terminates the operating system process running the BEAM, killing every Elixir and Erlang process on the node, not just the caller that triggered the render. No authentication or special privileges are required.\u003c/p\u003e\u003cp\u003eThe vulnerable conversion code was extracted from mdex into the separate mdex_native package starting in mdex 0.12.3. This issue affects mdex from 0.3.0 before 0.12.3 and mdex_native from 0.1.0 before 0.2.3.\u003c/p\u003e"
            }
          ],
          "value": "Uncontrolled Recursion vulnerability in leandrocp mdex allows denial of service via deeply nested Markdown input.\n\nmdex converts between an Elixir %MDEx.Document{} struct and Comrak\u0027s internal AST using two mutually recursive Rust functions, ex_document_to_comrak_ast and comrak_ast_to_ex_document, in the NIF source file document.rs. Neither function enforces a maximum nesting depth, so the recursion depth is bounded only by the structure of the input. An attacker who can get a Markdown document rendered (for example through MDEx.parse_document!/1 or MDEx.to_html/1) can supply a document with thousands of nested block quotes, which drives unbounded recursion across the NIF boundary and exhausts the native C stack.\n\nBecause the resulting stack overflow is an uncatchable SIGSEGV raised inside a NIF, it cannot be contained by the Erlang runtime. It terminates the operating system process running the BEAM, killing every Elixir and Erlang process on the node, not just the caller that triggered the render. No authentication or special privileges are required.\n\nThe vulnerable conversion code was extracted from mdex into the separate mdex_native package starting in mdex 0.12.3. This issue affects mdex from 0.3.0 before 0.12.3 and mdex_native from 0.1.0 before 0.2.3."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-130",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-130 Excessive Allocation"
            }
          ]
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "attackVector": "LOCAL",
            "baseScore": 6.9,
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
            "version": "4.0"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-674",
              "description": "CWE-674 Uncontrolled Recursion",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-30T04:37:59.369Z",
        "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "shortName": "EEF"
      },
      "references": [
        {
          "tags": [
            "vendor-advisory",
            "related"
          ],
          "url": "https://github.com/leandrocp/mdex_native/security/advisories/GHSA-3w4f-53g2-f66p"
        },
        {
          "tags": [
            "related"
          ],
          "url": "https://cna.erlef.org/cves/CVE-2026-54888.html"
        },
        {
          "tags": [
            "related"
          ],
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-54888"
        },
        {
          "tags": [
            "patch"
          ],
          "url": "https://github.com/leandrocp/mdex_native/commit/947696c47bc22bea5dffc0f78c946fa6b70ce183"
        }
      ],
      "source": {
        "discovery": "EXTERNAL"
      },
      "title": "Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex",
      "x_generator": {
        "engine": "cvelib 1.8.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
    "assignerShortName": "EEF",
    "cveId": "CVE-2026-54888",
    "datePublished": "2026-06-29T19:10:38.151Z",
    "dateReserved": "2026-06-16T10:47:13.915Z",
    "dateUpdated": "2026-06-30T04:37:59.369Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-54888",
      "date": "2026-06-30",
      "epss": "0.00168",
      "percentile": "0.06388"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-54888\",\"sourceIdentifier\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\",\"published\":\"2026-06-29T20:17:39.230\",\"lastModified\":\"2026-06-30T14:14:35.520\",\"vulnStatus\":\"Deferred\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"Uncontrolled Recursion vulnerability in leandrocp mdex allows denial of service via deeply nested Markdown input.\\n\\nmdex converts between an Elixir %MDEx.Document{} struct and Comrak\u0027s internal AST using two mutually recursive Rust functions, ex_document_to_comrak_ast and comrak_ast_to_ex_document, in the NIF source file document.rs. Neither function enforces a maximum nesting depth, so the recursion depth is bounded only by the structure of the input. An attacker who can get a Markdown document rendered (for example through MDEx.parse_document!/1 or MDEx.to_html/1) can supply a document with thousands of nested block quotes, which drives unbounded recursion across the NIF boundary and exhausts the native C stack.\\n\\nBecause the resulting stack overflow is an uncatchable SIGSEGV raised inside a NIF, it cannot be contained by the Erlang runtime. It terminates the operating system process running the BEAM, killing every Elixir and Erlang process on the node, not just the caller that triggered the render. No authentication or special privileges are required.\\n\\nThe vulnerable conversion code was extracted from mdex into the separate mdex_native package starting in mdex 0.12.3. This issue affects mdex from 0.3.0 before 0.12.3 and mdex_native from 0.1.0 before 0.2.3.\"}],\"affected\":[{\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\",\"affectedData\":[{\"vendor\":\"leandrocp\",\"product\":\"mdex\",\"defaultStatus\":\"unaffected\",\"collectionURL\":\"https://repo.hex.pm\",\"packageName\":\"mdex\",\"cpes\":[\"cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*\"],\"modules\":[\"comrak_nif\",\"\u0027Elixir.MDEx\u0027\",\"\u0027Elixir.MDEx.Native\u0027\"],\"programFiles\":[\"native/comrak_nif/src/types/document.rs\",\"lib/mdex.ex\",\"lib/mdex/native.ex\"],\"programRoutines\":[{\"name\":\"comrak_nif::types::document::ex_document_to_comrak_ast\"},{\"name\":\"comrak_nif::types::document::comrak_ast_to_ex_document\"},{\"name\":\"\u0027Elixir.MDEx\u0027:parse_document!/1\"},{\"name\":\"\u0027Elixir.MDEx\u0027:to_html/1\"},{\"name\":\"\u0027Elixir.MDEx.Native\u0027:document_to_html_with_options/2\"}],\"repo\":\"https://github.com/leandrocp/mdex\",\"packageURL\":\"pkg:hex/mdex\",\"versions\":[{\"version\":\"0.3.0\",\"lessThan\":\"0.12.3\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"leandrocp\",\"product\":\"mdex\",\"defaultStatus\":\"unaffected\",\"collectionURL\":\"https://github.com\",\"packageName\":\"leandrocp/mdex\",\"cpes\":[\"cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*\"],\"modules\":[\"comrak_nif\",\"\u0027Elixir.MDEx\u0027\",\"\u0027Elixir.MDEx.Native\u0027\"],\"programFiles\":[\"native/comrak_nif/src/types/document.rs\",\"lib/mdex.ex\",\"lib/mdex/native.ex\"],\"programRoutines\":[{\"name\":\"comrak_nif::types::document::ex_document_to_comrak_ast\"},{\"name\":\"comrak_nif::types::document::comrak_ast_to_ex_document\"},{\"name\":\"\u0027Elixir.MDEx\u0027:parse_document!/1\"},{\"name\":\"\u0027Elixir.MDEx\u0027:to_html/1\"},{\"name\":\"\u0027Elixir.MDEx.Native\u0027:document_to_html_with_options/2\"}],\"repo\":\"https://github.com/leandrocp/mdex\",\"packageURL\":\"pkg:github/leandrocp/mdex\",\"versions\":[{\"version\":\"d0bc7d55177727c61d188ef465178ab3b81f4f2c\",\"lessThan\":\"6ed94d905f97af188323f042698ae841c02293b4\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"leandrocp\",\"product\":\"mdex_native\",\"defaultStatus\":\"unaffected\",\"collectionURL\":\"https://repo.hex.pm\",\"packageName\":\"mdex_native\",\"cpes\":[\"cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*\"],\"modules\":[\"mdex_native_nif\",\"\u0027Elixir.MDExNative.Native\u0027\"],\"programFiles\":[\"native/mdex_native_nif/src/types/document.rs\",\"lib/mdex_native/native.ex\"],\"programRoutines\":[{\"name\":\"mdex_native_nif::types::document::ex_document_to_comrak_ast\"},{\"name\":\"mdex_native_nif::types::document::comrak_ast_to_ex_document\"},{\"name\":\"\u0027Elixir.MDExNative.Native\u0027:parse_document/2\"},{\"name\":\"\u0027Elixir.MDExNative.Native\u0027:document_to_html_with_options/2\"}],\"repo\":\"https://github.com/leandrocp/mdex_native\",\"packageURL\":\"pkg:hex/mdex_native\",\"versions\":[{\"version\":\"0.1.0\",\"lessThan\":\"0.2.3\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"leandrocp\",\"product\":\"mdex_native\",\"defaultStatus\":\"unaffected\",\"collectionURL\":\"https://github.com\",\"packageName\":\"leandrocp/mdex_native\",\"cpes\":[\"cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*\"],\"modules\":[\"mdex_native_nif\",\"\u0027Elixir.MDExNative.Native\u0027\"],\"programFiles\":[\"native/mdex_native_nif/src/types/document.rs\",\"lib/mdex_native/native.ex\"],\"programRoutines\":[{\"name\":\"mdex_native_nif::types::document::ex_document_to_comrak_ast\"},{\"name\":\"mdex_native_nif::types::document::comrak_ast_to_ex_document\"},{\"name\":\"\u0027Elixir.MDExNative.Native\u0027:parse_document/2\"},{\"name\":\"\u0027Elixir.MDExNative.Native\u0027:document_to_html_with_options/2\"}],\"repo\":\"https://github.com/leandrocp/mdex_native\",\"packageURL\":\"pkg:github/leandrocp/mdex_native\",\"versions\":[{\"version\":\"956528c5e31746253347029e810a969ab916fd27\",\"lessThan\":\"947696c47bc22bea5dffc0f78c946fa6b70ce183\",\"versionType\":\"git\",\"status\":\"affected\"}]}]}],\"metrics\":{\"cvssMetricV40\":[{\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"4.0\",\"vectorString\":\"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X\",\"baseScore\":6.9,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"attackRequirements\":\"NONE\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"vulnConfidentialityImpact\":\"NONE\",\"vulnIntegrityImpact\":\"NONE\",\"vulnAvailabilityImpact\":\"HIGH\",\"subConfidentialityImpact\":\"NONE\",\"subIntegrityImpact\":\"NONE\",\"subAvailabilityImpact\":\"NONE\",\"exploitMaturity\":\"NOT_DEFINED\",\"confidentialityRequirement\":\"NOT_DEFINED\",\"integrityRequirement\":\"NOT_DEFINED\",\"availabilityRequirement\":\"NOT_DEFINED\",\"modifiedAttackVector\":\"NOT_DEFINED\",\"modifiedAttackComplexity\":\"NOT_DEFINED\",\"modifiedAttackRequirements\":\"NOT_DEFINED\",\"modifiedPrivilegesRequired\":\"NOT_DEFINED\",\"modifiedUserInteraction\":\"NOT_DEFINED\",\"modifiedVulnConfidentialityImpact\":\"NOT_DEFINED\",\"modifiedVulnIntegrityImpact\":\"NOT_DEFINED\",\"modifiedVulnAvailabilityImpact\":\"NOT_DEFINED\",\"modifiedSubConfidentialityImpact\":\"NOT_DEFINED\",\"modifiedSubIntegrityImpact\":\"NOT_DEFINED\",\"modifiedSubAvailabilityImpact\":\"NOT_DEFINED\",\"Safety\":\"NOT_DEFINED\",\"Automatable\":\"NOT_DEFINED\",\"Recovery\":\"NOT_DEFINED\",\"valueDensity\":\"NOT_DEFINED\",\"vulnerabilityResponseEffort\":\"NOT_DEFINED\",\"providerUrgency\":\"NOT_DEFINED\"}}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2026-06-29T20:47:22.348133Z\",\"id\":\"CVE-2026-54888\",\"options\":[{\"exploitation\":\"poc\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-674\"}]}],\"references\":[{\"url\":\"https://cna.erlef.org/cves/CVE-2026-54888.html\",\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\"},{\"url\":\"https://github.com/leandrocp/mdex_native/commit/947696c47bc22bea5dffc0f78c946fa6b70ce183\",\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\"},{\"url\":\"https://github.com/leandrocp/mdex_native/security/advisories/GHSA-3w4f-53g2-f66p\",\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\"},{\"url\":\"https://osv.dev/vulnerability/EEF-CVE-2026-54888\",\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\"},{\"url\":\"https://github.com/leandrocp/mdex_native/security/advisories/GHSA-3w4f-53g2-f66p\",\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\"}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-54888\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-06-29T20:47:22.348133Z\"}}}], \"references\": [{\"url\": \"https://github.com/leandrocp/mdex_native/security/advisories/GHSA-3w4f-53g2-f66p\", \"tags\": [\"exploit\"]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-06-29T20:47:45.481Z\"}}], \"cna\": {\"title\": \"Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex\", \"source\": {\"discovery\": \"EXTERNAL\"}, \"credits\": [{\"lang\": \"en\", \"type\": \"finder\", \"value\": \"Peter Ullrich\"}, {\"lang\": \"en\", \"type\": \"remediation developer\", \"value\": \"Leandro Pereira\"}, {\"lang\": \"en\", \"type\": \"analyst\", \"value\": \"Jonatan M\\u00e4nnchen / EEF\"}], \"impacts\": [{\"capecId\": \"CAPEC-130\", \"descriptions\": [{\"lang\": \"en\", \"value\": \"CAPEC-130 Excessive Allocation\"}]}], \"metrics\": [{\"format\": \"CVSS\", \"cvssV4_0\": {\"version\": \"4.0\", \"baseScore\": 6.9, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"GENERAL\"}]}], \"affected\": [{\"cpes\": [\"cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*\"], \"repo\": \"https://github.com/leandrocp/mdex\", \"vendor\": \"leandrocp\", \"modules\": [\"comrak_nif\", \"\u0027Elixir.MDEx\u0027\", \"\u0027Elixir.MDEx.Native\u0027\"], \"product\": \"mdex\", \"versions\": [{\"status\": \"affected\", \"version\": \"0.3.0\", \"lessThan\": \"0.12.3\", \"versionType\": \"semver\"}], \"packageURL\": \"pkg:hex/mdex\", \"packageName\": \"mdex\", \"programFiles\": [\"native/comrak_nif/src/types/document.rs\", \"lib/mdex.ex\", \"lib/mdex/native.ex\"], \"collectionURL\": \"https://repo.hex.pm\", \"defaultStatus\": \"unaffected\", \"programRoutines\": [{\"name\": \"comrak_nif::types::document::ex_document_to_comrak_ast\"}, {\"name\": \"comrak_nif::types::document::comrak_ast_to_ex_document\"}, {\"name\": \"\u0027Elixir.MDEx\u0027:parse_document!/1\"}, {\"name\": \"\u0027Elixir.MDEx\u0027:to_html/1\"}, {\"name\": \"\u0027Elixir.MDEx.Native\u0027:document_to_html_with_options/2\"}]}, {\"cpes\": [\"cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*\"], \"repo\": \"https://github.com/leandrocp/mdex\", \"vendor\": \"leandrocp\", \"modules\": [\"comrak_nif\", \"\u0027Elixir.MDEx\u0027\", \"\u0027Elixir.MDEx.Native\u0027\"], \"product\": \"mdex\", \"versions\": [{\"status\": \"affected\", \"version\": \"d0bc7d55177727c61d188ef465178ab3b81f4f2c\", \"lessThan\": \"6ed94d905f97af188323f042698ae841c02293b4\", \"versionType\": \"git\"}], \"packageURL\": \"pkg:github/leandrocp/mdex\", \"packageName\": \"leandrocp/mdex\", \"programFiles\": [\"native/comrak_nif/src/types/document.rs\", \"lib/mdex.ex\", \"lib/mdex/native.ex\"], \"collectionURL\": \"https://github.com\", \"defaultStatus\": \"unaffected\", \"programRoutines\": [{\"name\": \"comrak_nif::types::document::ex_document_to_comrak_ast\"}, {\"name\": \"comrak_nif::types::document::comrak_ast_to_ex_document\"}, {\"name\": \"\u0027Elixir.MDEx\u0027:parse_document!/1\"}, {\"name\": \"\u0027Elixir.MDEx\u0027:to_html/1\"}, {\"name\": \"\u0027Elixir.MDEx.Native\u0027:document_to_html_with_options/2\"}]}, {\"cpes\": [\"cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*\"], \"repo\": \"https://github.com/leandrocp/mdex_native\", \"vendor\": \"leandrocp\", \"modules\": [\"mdex_native_nif\", \"\u0027Elixir.MDExNative.Native\u0027\"], \"product\": \"mdex_native\", \"versions\": [{\"status\": \"affected\", \"version\": \"0.1.0\", \"lessThan\": \"0.2.3\", \"versionType\": \"semver\"}], \"packageURL\": \"pkg:hex/mdex_native\", \"packageName\": \"mdex_native\", \"programFiles\": [\"native/mdex_native_nif/src/types/document.rs\", \"lib/mdex_native/native.ex\"], \"collectionURL\": \"https://repo.hex.pm\", \"defaultStatus\": \"unaffected\", \"programRoutines\": [{\"name\": \"mdex_native_nif::types::document::ex_document_to_comrak_ast\"}, {\"name\": \"mdex_native_nif::types::document::comrak_ast_to_ex_document\"}, {\"name\": \"\u0027Elixir.MDExNative.Native\u0027:parse_document/2\"}, {\"name\": \"\u0027Elixir.MDExNative.Native\u0027:document_to_html_with_options/2\"}]}, {\"cpes\": [\"cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*\"], \"repo\": \"https://github.com/leandrocp/mdex_native\", \"vendor\": \"leandrocp\", \"modules\": [\"mdex_native_nif\", \"\u0027Elixir.MDExNative.Native\u0027\"], \"product\": \"mdex_native\", \"versions\": [{\"status\": \"affected\", \"version\": \"956528c5e31746253347029e810a969ab916fd27\", \"lessThan\": \"947696c47bc22bea5dffc0f78c946fa6b70ce183\", \"versionType\": \"git\"}], \"packageURL\": \"pkg:github/leandrocp/mdex_native\", \"packageName\": \"leandrocp/mdex_native\", \"programFiles\": [\"native/mdex_native_nif/src/types/document.rs\", \"lib/mdex_native/native.ex\"], \"collectionURL\": \"https://github.com\", \"defaultStatus\": \"unaffected\", \"programRoutines\": [{\"name\": \"mdex_native_nif::types::document::ex_document_to_comrak_ast\"}, {\"name\": \"mdex_native_nif::types::document::comrak_ast_to_ex_document\"}, {\"name\": \"\u0027Elixir.MDExNative.Native\u0027:parse_document/2\"}, {\"name\": \"\u0027Elixir.MDExNative.Native\u0027:document_to_html_with_options/2\"}]}], \"references\": [{\"url\": \"https://github.com/leandrocp/mdex_native/security/advisories/GHSA-3w4f-53g2-f66p\", \"tags\": [\"vendor-advisory\", \"related\"]}, {\"url\": \"https://cna.erlef.org/cves/CVE-2026-54888.html\", \"tags\": [\"related\"]}, {\"url\": \"https://osv.dev/vulnerability/EEF-CVE-2026-54888\", \"tags\": [\"related\"]}, {\"url\": \"https://github.com/leandrocp/mdex_native/commit/947696c47bc22bea5dffc0f78c946fa6b70ce183\", \"tags\": [\"patch\"]}], \"x_generator\": {\"engine\": \"cvelib 1.8.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"Uncontrolled Recursion vulnerability in leandrocp mdex allows denial of service via deeply nested Markdown input.\\n\\nmdex converts between an Elixir %MDEx.Document{} struct and Comrak\u0027s internal AST using two mutually recursive Rust functions, ex_document_to_comrak_ast and comrak_ast_to_ex_document, in the NIF source file document.rs. Neither function enforces a maximum nesting depth, so the recursion depth is bounded only by the structure of the input. An attacker who can get a Markdown document rendered (for example through MDEx.parse_document!/1 or MDEx.to_html/1) can supply a document with thousands of nested block quotes, which drives unbounded recursion across the NIF boundary and exhausts the native C stack.\\n\\nBecause the resulting stack overflow is an uncatchable SIGSEGV raised inside a NIF, it cannot be contained by the Erlang runtime. It terminates the operating system process running the BEAM, killing every Elixir and Erlang process on the node, not just the caller that triggered the render. No authentication or special privileges are required.\\n\\nThe vulnerable conversion code was extracted from mdex into the separate mdex_native package starting in mdex 0.12.3. This issue affects mdex from 0.3.0 before 0.12.3 and mdex_native from 0.1.0 before 0.2.3.\", \"supportingMedia\": [{\"type\": \"text/html\", \"value\": \"\u003cp\u003eUncontrolled Recursion vulnerability in leandrocp mdex allows denial of service via deeply nested Markdown input.\u003c/p\u003e\u003cp\u003emdex converts between an Elixir \u003ctt\u003e%MDEx.Document{}\u003c/tt\u003e struct and Comrak\u0027s internal AST using two mutually recursive Rust functions, \u003ctt\u003eex_document_to_comrak_ast\u003c/tt\u003e and \u003ctt\u003ecomrak_ast_to_ex_document\u003c/tt\u003e, in the NIF source file \u003ctt\u003edocument.rs\u003c/tt\u003e. Neither function enforces a maximum nesting depth, so the recursion depth is bounded only by the structure of the input. An attacker who can get a Markdown document rendered (for example through \u003ctt\u003eMDEx.parse_document!/1\u003c/tt\u003e or \u003ctt\u003eMDEx.to_html/1\u003c/tt\u003e) can supply a document with thousands of nested block quotes, which drives unbounded recursion across the NIF boundary and exhausts the native C stack.\u003c/p\u003e\u003cp\u003eBecause the resulting stack overflow is an uncatchable SIGSEGV raised inside a NIF, it cannot be contained by the Erlang runtime. It terminates the operating system process running the BEAM, killing every Elixir and Erlang process on the node, not just the caller that triggered the render. No authentication or special privileges are required.\u003c/p\u003e\u003cp\u003eThe vulnerable conversion code was extracted from mdex into the separate mdex_native package starting in mdex 0.12.3. This issue affects mdex from 0.3.0 before 0.12.3 and mdex_native from 0.1.0 before 0.2.3.\u003c/p\u003e\", \"base64\": false}]}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-674\", \"description\": \"CWE-674 Uncontrolled Recursion\"}]}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"0.12.3\", \"versionStartIncluding\": \"0.3.0\"}, {\"criteria\": \"cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"0.2.3\", \"versionStartIncluding\": \"0.1.0\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\", \"shortName\": \"EEF\", \"dateUpdated\": \"2026-06-30T04:37:59.369Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2026-54888\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-06-30T04:37:59.369Z\", \"dateReserved\": \"2026-06-16T10:47:13.915Z\", \"assignerOrgId\": \"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\", \"datePublished\": \"2026-06-29T19:10:38.151Z\", \"assignerShortName\": \"EEF\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…