org.jline:jline-reader@3.13.3

  • latest version

    4.4.6

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    3 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.jline:jline-reader package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Regular Expression Denial of Service (ReDoS)

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in reader/src/main/java/org/jline/reader/impl/history/DefaultHistory.java through matchPatterns() in the HISTORY_IGNORE history filter. An attacker can hang the reader thread and drive CPU usage high by supplying a crafted HISTORY_IGNORE value such as (a+)+b and then entering a non-matching command line that is checked against history. The vulnerable code converts the configuration string into a Java regex with only partial escaping, so regex metacharacters are interpreted by the matcher instead of being treated literally. Each time a command is added to history, the backtracking engine can spend exponential time evaluating the pattern, freezing interactive shells and any application embedding the JLine reader.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade org.jline:jline-reader to version 3.30.15, 4.3.1 or higher.

    [3.0.0,3.30.15)[4.0.0,4.3.1)