Vulnerabilities in pkg:maven/nl.basjes.parse.useragent/yauaa-hive

PACKAGE
Advisory Identifier: GHSA-c4pm-63cg-9j7h
Advisory Summary

CVE-2022-23496 is a HIGH (CVSS 8.6) yauaa vulnerable to arrayindexoutofboundsexception triggered vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting Yauaa libraries in the Maven ecosystem. The issue involves yauaa vulnerable to arrayindexoutofboundsexception triggered by a crafted sec-ch-ua-full-version-list. Remediation is available by upgrading affected packages to version 7.9.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/nl.basjes.parse.useragent/yauaa-hive

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/nl.basjes.parse.useragent/yauaa-hive. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-c4pm-63cg-9j7h CVE-2022-23496 HIGH Yauaa vulnerable to ArrayIndexOutOfBoundsException triggered by a crafted Sec-Ch-Ua-Full-Version-List

CVE-2022-23496 at a Glance

CVE Identifier CVE-2022-23496
GHSA Identifier GHSA-c4pm-63cg-9j7h
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product Yauaa
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.6

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:C/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 Changed (S:C)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-23496

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

nl.basjes.parse.useragent:yauaa fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-beam fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-beam</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-beam-sql fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-beam-sql</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-drill fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-drill</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-elasticsearch fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-elasticsearch</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-elasticsearch-8 fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-elasticsearch-8</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-flink fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-flink</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-flink-table fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-flink-table</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-hive fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-hive</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-logparser fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-logparser</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-snowflake fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-snowflake</artifactId>
    <version>7.9.0</version>
</dependency>
nl.basjes.parse.useragent:yauaa-trino fixed: 7.9.0
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-trino</artifactId>
    <version>7.9.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=nl.basjes.parse.useragent

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=nl.basjes.parse.useragent

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

Note: The mvn dependency:tree -Dincludes=nl.basjes.parse.useragent 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-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In Yauaa, 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 Applications using the Client Hints analysis feature introduced with 7.0.0 can crash because the Yauaa library throws an ArrayIndexOutOfBoundsException. Applications that do not use this feature are not affected. ### Patches Upgrade to 7.9.0 ### Workarounds Catch and discard any exceptions from Yauaa.

CVE-2022-23496 Affected Yauaa Versions

12 component(s)
Fixed Versions:
7.9.0
Product / Package Ecosystem Affected Versions Fixed Version
nl.basjes.parse.useragent:yauaa
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-beam
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-beam-sql
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-drill
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-elasticsearch
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-elasticsearch-8
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-flink
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-flink-table
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-hive
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-logparser
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-snowflake
Maven
≥ 7.0.0
< 7.9.0
7.9.0
nl.basjes.parse.useragent:yauaa-trino
Maven
≥ 7.0.0
< 7.9.0
7.9.0

References

Frequently Asked Questions

What is CVE-2022-23496?
CVE-2022-23496 is a security vulnerability in Yauaa involving Yauaa vulnerable to ArrayIndexOutOfBoundsException triggered by a crafted Sec-Ch-Ua-Full-Version-List under CWE-755: Improper Handling of Exceptional Conditions.
Which Yauaa versions are affected?
Affected versions include releases prior to 7.9.0 across affected packages: nl.basjes.parse.useragent:yauaa, nl.basjes.parse.useragent:yauaa-beam, nl.basjes.parse.useragent:yauaa-beam-sql, nl.basjes.parse.useragent:yauaa-drill, nl.basjes.parse.useragent:yauaa-elasticsearch, nl.basjes.parse.useragent:yauaa-elasticsearch-8, nl.basjes.parse.useragent:yauaa-flink, nl.basjes.parse.useragent:yauaa-flink-table, nl.basjes.parse.useragent:yauaa-hive, nl.basjes.parse.useragent:yauaa-logparser, nl.basjes.parse.useragent:yauaa-snowflake, nl.basjes.parse.useragent:yauaa-trino.
What version fixes CVE-2022-23496?
Upgrading to 7.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is yauaa affected?
Yes, nl.basjes.parse.useragent:yauaa is affected in releases prior to 7.9.0. Upgrade your dependency to 7.9.0 or later.
Is yauaa-beam affected?
Yes, nl.basjes.parse.useragent:yauaa-beam is affected in releases prior to 7.9.0. Upgrade your dependency to 7.9.0 or later.
What is the CVSS score of CVE-2022-23496?
CVE-2022-23496 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H.
What CWE is associated with CVE-2022-23496?
CVE-2022-23496 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check Maven dependencies for CVE-2022-23496?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=nl.basjes.parse.useragent'. 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-c4pm-63cg-9j7h",
  "modified" : "2025-01-17T17:06:53Z",
  "published" : "2022-12-08T15:52:54Z",
  "aliases" : [ "CVE-2022-23496" ],
  "summary" : "Yauaa vulnerable to ArrayIndexOutOfBoundsException triggered by a crafted Sec-Ch-Ua-Full-Version-List",
  "details" : "### Impact\nApplications using the Client Hints analysis feature introduced with 7.0.0 can crash because the Yauaa library throws an ArrayIndexOutOfBoundsException. Applications that do not use this feature are not affected.\n\n### Patches\nUpgrade to 7.9.0\n\n### Workarounds\nCatch and discard any exceptions from Yauaa.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-beam"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-beam-sql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-drill"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-elasticsearch"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-elasticsearch-8"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-flink"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-flink-table"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-hive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-logparser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-snowflake"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "nl.basjes.parse.useragent:yauaa-trino"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nielsbasjes/yauaa/security/advisories/GHSA-c4pm-63cg-9j7h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23496"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nielsbasjes/yauaa/commit/3017a866e2cff0d308f264b66fde4fa79e3beb9e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nielsbasjes/yauaa"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-755" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-08T15:52:54Z",
    "nvd_published_at" : "2022-12-08T22:15:00Z"
  }
}