CVE-2022-39259: Jadx plugins api Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-3r7j-8mqh-6qhx
CVSS 5.5
Published
Advisory Summary

CVE-2022-39259 is a MODERATE (CVSS 5.5) denial of service vulnerability (General Security Weakness) affecting Jadx plugins api libraries in the Maven ecosystem. The issue involves jadx-gui vulnerable to swing html denial of service (dos) attack. Remediation is available by upgrading affected packages to version 1.4.5.

CVE-2022-39259 at a Glance

CVE Identifier CVE-2022-39259
GHSA Identifier GHSA-3r7j-8mqh-6qhx
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification General Security Weakness
Affected Product Jadx plugins api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-39259

To remediate this vulnerability, upgrade all affected Jadx plugins api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.github.skylot:jadx-plugins-api fixed: 1.4.5
<dependency>
    <groupId>io.github.skylot</groupId>
    <artifactId>jadx-plugins-api</artifactId>
    <version>1.4.5</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.github.skylot

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2022-39259, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.github.skylot

Analyze the terminal output to locate any version of Jadx plugins api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.5), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.github.skylot command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Jadx plugins api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Using jadx-gui to open a special zip file with entry containing HTML sequence like `<html><frame>` will cause interface to get stuck and throw exceptions like: ``` java.lang.RuntimeException: Can't build aframeset, BranchElement(frameset) 1,3 :no ROWS or COLS defined. at java.desktop/javax.swing.text.html.HTMLEditorKit$HTMLFactory.create(HTMLEditorKit.java:1387) at java.desktop/javax.swing.plaf.basic.BasicHTML$BasicHTMLViewFactory.create(BasicHTML.java:379) at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:112) ``` ### References https://www.oracle.com/java/technologies/javase/seccodeguide.html Guideline 3-7 / INJECT-7: Disable HTML display in Swing components: Many Swing pluggable look-and-feels interpret text in certain components starting with <html> as HTML. If the text is from an untrusted source, an adversary may craft the HTML such that other components appear to be present or to perform inclusion attacks. To disable the HTML render feature, set the "html.disable" client property of each component to Boolean.TRUE (no other Boolean true instance will do). ```java label.putClientProperty("html.disable", true); ```

CVE-2022-39259 Affected Jadx plugins api Versions

1 component(s)
Fixed Versions:
1.4.5
Product / Package Ecosystem Affected Versions Fixed Version
io.github.skylot:jadx-plugins-api
Maven
< 1.4.5
1.4.5

References

Frequently Asked Questions

What is CVE-2022-39259?
CVE-2022-39259 is a security vulnerability in Jadx plugins api involving Jadx-gui vulnerable to swing HTML Denial of Service (DoS) attack under General Security Weakness.
Which Jadx plugins api versions are affected?
Affected versions include releases prior to 1.4.5 across affected packages: io.github.skylot:jadx-plugins-api.
What version fixes CVE-2022-39259?
Upgrading to 1.4.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jadx-plugins-api affected?
Yes, io.github.skylot:jadx-plugins-api is affected in releases prior to 1.4.5. Upgrade your dependency to 1.4.5 or later.
What is the CVSS score of CVE-2022-39259?
CVE-2022-39259 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-39259?
CVE-2022-39259 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2022-39259?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.github.skylot'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3r7j-8mqh-6qhx",
  "modified" : "2022-10-25T20:37:53Z",
  "published" : "2022-10-20T18:20:28Z",
  "aliases" : [ "CVE-2022-39259" ],
  "summary" : "Jadx-gui vulnerable to swing HTML Denial of Service (DoS) attack",
  "details" : "### Impact\nUsing jadx-gui to open a special zip file with entry containing HTML sequence like `<html><frame>` will cause interface to get stuck and throw exceptions like:\n```\njava.lang.RuntimeException: Can't build aframeset, BranchElement(frameset) 1,3\n:no ROWS or COLS defined.\n\tat java.desktop/javax.swing.text.html.HTMLEditorKit$HTMLFactory.create(HTMLEditorKit.java:1387)\n\tat java.desktop/javax.swing.plaf.basic.BasicHTML$BasicHTMLViewFactory.create(BasicHTML.java:379)\n\tat java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:112)\n```\n\n### References\nhttps://www.oracle.com/java/technologies/javase/seccodeguide.html\n\nGuideline 3-7 / INJECT-7: Disable HTML display in Swing components:\n\nMany Swing pluggable look-and-feels interpret text in certain components starting with <html> as HTML. If the text is from an untrusted source, an adversary may craft the HTML such that other components appear to be present or to perform inclusion attacks.\n\nTo disable the HTML render feature, set the \"html.disable\" client property of each component to Boolean.TRUE (no other Boolean true instance will do).\n```java\nlabel.putClientProperty(\"html.disable\", true);\n```\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.github.skylot:jadx-plugins-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.4.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/skylot/jadx/security/advisories/GHSA-3r7j-8mqh-6qhx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39259"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/skylot/jadx"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/skylot/jadx/releases/tag/v1.4.5"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/java/technologies/javase/seccodeguide.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-20T18:20:28Z",
    "nvd_published_at" : "2022-10-21T23:15:00Z"
  }
}