Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71107

TOKEN-MACRO Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • token-macro-plugin
    • Jenkins 2.387.2 on Linux with Java11

      The Token Macro plugin contains a JSON-SMART module (version < 2.4.9) which has a security issue. 
      CVSS Score 7.5 (v3)
      [Json-smart](https://netplex.github.io/json-smart/) is a performance focused, JSON processor lib.When reaching a '[' or '{' character in the JSON input, the code parses an array or an object respectively.It was discovered that the code does not have any limit to the nesting of such arrays or objects. Since the parsing of nested arrays and objects is done recursively, nesting too many of them can cause a stack exhaustion (stack overflow) and crash the software.

            slide_o_mix Alex Earl
            ron_kats Ron Kats
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: