{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "3.0.0"
              },
              {
                "fixed": "3.30.15"
              },
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "4.3.1"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "cc36cb24e2d5aedc5c25476448e6841dde01d50f"
            },
            {
              "introduced": "e2422d778d98d935edd3d250a0d32b75a802c142"
            },
            {
              "fixed": "b880666cb543c2dc31054ff2203ce5f84190867b"
            },
            {
              "fixed": "6b83c24b6c3900f1c85d113dbeff23280e024f04"
            },
            {
              "fixed": "1d5fc3099e77938b971e197211cad2d4fbb17541"
            },
            {
              "fixed": "341ee69ccc57b7733c1b40d6993219b64b3206ae"
            }
          ],
          "repo": "https://github.com/jline/jline3",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5q95-hrpc-m3w3"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1333"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77420.json"
  },
  "details": "JLine is a Java library for handling console input. From 3.0.0 until 3.30.15 and 4.3.1, DefaultHistory.matchPatterns(String patterns, String line) in reader/src/main/java/org/jline/reader/impl/history/DefaultHistory.java converts the HISTORY_IGNORE configuration value into a Java regular expression while escaping only part of its syntax, allowing other regex metacharacters to reach the backtracking engine. An attacker who can control application or user configuration can supply a nested-quantifier expression that is reevaluated whenever a command is added to history, consuming excessive CPU and indefinitely blocking the reader thread. This issue is fixed in versions 3.30.15 and 4.3.1.",
  "id": "CVE-2026-77420",
  "modified": "2026-10-02T03:31:10.460383235Z",
  "published": "2026-09-23T18:11:25.998Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/jline/jline3/releases/tag/4.3.1"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jline/jline3/releases/tag/jline-3.30.15"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77420.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/jline/jline3/security/advisories/GHSA-5q95-hrpc-m3w3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77420"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jline/jline3/commit/1d5fc3099e77938b971e197211cad2d4fbb17541"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jline/jline3/commit/341ee69ccc57b7733c1b40d6993219b64b3206ae"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jline/jline3/pull/2012"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jline/jline3/pull/2018"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "JLine: ReDoS via `HISTORY_IGNORE` Configuration Variable"
}