GHSA-5x5q-8cgm-2hjq: Karate core Karate Has Vulnerable Dependency On Vulnerability

HIGH
CVSS 7.5
CWE-674
Published
Advisory Summary

GHSA-5x5q-8cgm-2hjq is a HIGH (CVSS 7.5) karate has vulnerable dependency on vulnerability (CWE-674: Uncontrolled Recursion) affecting Karate core libraries in the Maven ecosystem. The issue involves karate has vulnerable dependency on json-smart package (cve-2023-1370). Remediation is available by upgrading affected packages to version 1.4.0.

GHSA-5x5q-8cgm-2hjq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5x5q-8cgm-2hjq
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Karate core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix GHSA-5x5q-8cgm-2hjq

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

com.intuit.karate:karate-core fixed: 1.4.0
<dependency>
    <groupId>com.intuit.karate</groupId>
    <artifactId>karate-core</artifactId>
    <version>1.4.0</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=com.intuit.karate

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-5x5q-8cgm-2hjq, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.intuit.karate

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

Note: The mvn dependency:tree -Dincludes=com.intuit.karate 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 CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Karate core, 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

### Summary The CVE ![image](https://user-images.githubusercontent.com/2663049/229081854-1155c041-56fa-48ca-a7ff-f2f085b845fd.png) ### How to fix it Very simple, just upgrade json-path package to 2.8.0 (from 2.7.0) inside karate-core pom.xml ;)

GHSA-5x5q-8cgm-2hjq Affected Karate core Versions

1 component(s)
Fixed Versions:
1.4.0
Product / Package Ecosystem Affected Versions Fixed Version
com.intuit.karate:karate-core
Maven
≥ 1.3.1
< 1.4.0
All 1 versions
1.3.1
1.4.0

References

Frequently Asked Questions

What is GHSA-5x5q-8cgm-2hjq?
GHSA-5x5q-8cgm-2hjq is a security vulnerability in Karate core involving Karate has vulnerable dependency on json-smart package (CVE-2023-1370) under CWE-674: Uncontrolled Recursion.
Which Karate core versions are affected?
Affected versions include releases prior to 1.4.0 across affected packages: com.intuit.karate:karate-core.
What version fixes GHSA-5x5q-8cgm-2hjq?
Upgrading to 1.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is karate-core affected?
Yes, com.intuit.karate:karate-core is affected in releases prior to 1.4.0. Upgrade your dependency to 1.4.0 or later.
What is the CVSS score of GHSA-5x5q-8cgm-2hjq?
GHSA-5x5q-8cgm-2hjq has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-5x5q-8cgm-2hjq?
GHSA-5x5q-8cgm-2hjq is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check Maven dependencies for GHSA-5x5q-8cgm-2hjq?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.intuit.karate'. 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-5x5q-8cgm-2hjq",
  "modified" : "2025-01-07T15:11:49Z",
  "published" : "2023-03-31T22:44:09Z",
  "aliases" : [ ],
  "summary" : "Karate has vulnerable dependency on json-smart package (CVE-2023-1370)",
  "details" : "### Summary\nThe CVE \n![image](https://user-images.githubusercontent.com/2663049/229081854-1155c041-56fa-48ca-a7ff-f2f085b845fd.png)\n\n\n### How to fix it\nVery simple, just upgrade json-path package to 2.8.0 (from 2.7.0) inside karate-core pom.xml ;)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.intuit.karate:karate-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.1"
      }, {
        "fixed" : "1.4.0"
      } ]
    } ],
    "versions" : [ "1.3.1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/karatelabs/karate/security/advisories/GHSA-5x5q-8cgm-2hjq"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/oswaldobapvicjr/jsonmerge/security/advisories/GHSA-493p-pfq6-5258"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-1370"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/karatelabs/karate"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-31T22:44:09Z",
    "nvd_published_at" : null
  }
}