{"items":[{"id":"NVI-00013074","kind":"vulnerability","title":"JLine: ReDoS via `HISTORY_IGNORE` Configuration Variable","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-5q95-hrpc-m3w3","CVE-2026-77420"],"plain_summary":"GitHub lists this reviewed advisory for org.jline:jline-reader, org.jline:jline-reader. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-5443f7dcd1a9c8bcd45068b0cb2170f0"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-09-23T18:12:06.000Z","value":"5.5 medium","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-5443f7dcd1a9c8bcd45068b0cb2170f0"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-5443f7dcd1a9c8bcd45068b0cb2170f0","url":"https://github.com/advisories/GHSA-5q95-hrpc-m3w3","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-5q95-hrpc-m3w3","publisher":"GitHub Advisory Database","observed_at":"2026-11-01T07:25:10.521Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-5443f7dcd1a9c8bcd45068b0cb2170f0"],"technology":"org.jline:jline-reader","known_exclusions":[],"conditions_summary":"### Summary\n\nThe JLine3 `HISTORY_IGNORE` variable is converted into a Java regular expression with\nonly partial escaping. As a result, regex metacharacters other than `*` and `:` are\npassed through to the regex engine. A crafted value such as `(a+)+b` can cause\ncatastrophic backtracking each time a command line is added to history, hanging the\nreader thread at high CPU.\n\n### Details\n\nIn `reader/src/main/java/org/jline/reader/impl/history/DefaultHistory.java`,\n`matchPatterns()` converts `HISTORY_IGNORE` into a regex:\n\n```java\nfor (int i = 0; i < patterns.length(); i++) {\n    char ch = patterns.charAt(i);\n    if (ch == '\\\\') {\n        ch = patterns.charAt(++i);\n        sb.append(ch);\n    } else if (ch == ':') {\n        sb.append('|');\n    } else if (ch == '*') {\n        sb.append('.').append('*');\n    } else {\n        sb.append(ch);\n    }\n}\nreturn line.matches(sb.toString());\n```\n\nThis logic translates wildcard syntax but does not escape regex metacharacters such as\n`(`, `)`, `+`, `?`, `{`, `}`, `[`, and `]`. Those characters therefore reach the Java\nregex engine unchanged.\n\nAffected source location:\n- `reader/src/main/java/org/jline/reader/impl/history/DefaultHistory.java`\n- `matchP","public_affected_ranges":[">= 4.0.0, < 4.3.1"]},{"certainty":"source_listed","source_ids":["sr-5443f7dcd1a9c8bcd45068b0cb2170f0"],"technology":"org.jline:jline-reader","known_exclusions":[],"conditions_summary":"### Summary\n\nThe JLine3 `HISTORY_IGNORE` variable is converted into a Java regular expression with\nonly partial escaping. As a result, regex metacharacters other than `*` and `:` are\npassed through to the regex engine. A crafted value such as `(a+)+b` can cause\ncatastrophic backtracking each time a command line is added to history, hanging the\nreader thread at high CPU.\n\n### Details\n\nIn `reader/src/main/java/org/jline/reader/impl/history/DefaultHistory.java`,\n`matchPatterns()` converts `HISTORY_IGNORE` into a regex:\n\n```java\nfor (int i = 0; i < patterns.length(); i++) {\n    char ch = patterns.charAt(i);\n    if (ch == '\\\\') {\n        ch = patterns.charAt(++i);\n        sb.append(ch);\n    } else if (ch == ':') {\n        sb.append('|');\n    } else if (ch == '*') {\n        sb.append('.').append('*');\n    } else {\n        sb.append(ch);\n    }\n}\nreturn line.matches(sb.toString());\n```\n\nThis logic translates wildcard syntax but does not escape regex metacharacters such as\n`(`, `)`, `+`, `?`, `{`, `}`, `[`, and `]`. Those characters therefore reach the Java\nregex engine unchanged.\n\nAffected source location:\n- `reader/src/main/java/org/jline/reader/impl/history/DefaultHistory.java`\n- `matchP","public_affected_ranges":[">= 3.0.0, < 3.30.15"]}],"null_published_at":"2026-11-01T07:29:12.915Z","source_updated_at":"2026-09-23T18:12:06.000Z","source_disclosed_at":"2026-09-23T18:12:05.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-01T07:25:10.521Z"}],"next_cursor":null,"snapshot_revision":"42594"}