CVE-2013-7397: Async http client Insufficient Verification Of Data Authenticity Vulnerability

MODERATE
Advisory Identifier: GHSA-8h53-fjgg-g42g
CWE-345
Published
Advisory Summary

CVE-2013-7397 is a MODERATE insufficient verification of data authenticity vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Async http client libraries in the Maven ecosystem. The issue involves insufficient verification of data authenticity in async http client. Remediation is available by upgrading affected packages to version 1.9.0.

CVE-2013-7397 at a Glance

CVE Identifier CVE-2013-7397
GHSA Identifier GHSA-8h53-fjgg-g42g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Async http client
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2013-7397

To remediate this vulnerability, upgrade all affected Async http client 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.ning:async-http-client fixed: 1.9.0
<dependency>
    <groupId>com.ning</groupId>
    <artifactId>async-http-client</artifactId>
    <version>1.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=com.ning

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.ning

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

Note: The mvn dependency:tree -Dincludes=com.ning 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-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Async http client, 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

Async Http Client (aka AHC or async-http-client) before 1.9.0 skips X.509 certificate verification unless both a keyStore location and a trustStore location are explicitly set, which allows man-in-the-middle attackers to spoof HTTPS servers by presenting an arbitrary certificate during use of a typical AHC configuration, as demonstrated by a configuration that does not send client certificates.

CVE-2013-7397 Affected Async http client Versions

1 component(s)
Fixed Versions:
1.9.0
Product / Package Ecosystem Affected Versions Fixed Version
com.ning:async-http-client
Maven
< 1.9.0
1.9.0

References

Frequently Asked Questions

What is CVE-2013-7397?
CVE-2013-7397 is a security vulnerability in Async http client involving Insufficient Verification of Data Authenticity in Async Http Client under CWE-345: Insufficient Verification of Data Authenticity.
Which Async http client versions are affected?
Affected versions include releases prior to 1.9.0 across affected packages: com.ning:async-http-client.
What version fixes CVE-2013-7397?
Upgrading to 1.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is async-http-client affected?
Yes, com.ning:async-http-client is affected in releases prior to 1.9.0. Upgrade your dependency to 1.9.0 or later.
What CWE is associated with CVE-2013-7397?
CVE-2013-7397 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check Maven dependencies for CVE-2013-7397?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.ning'. 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-8h53-fjgg-g42g",
  "modified" : "2024-03-04T23:48:01Z",
  "published" : "2022-05-13T01:12:18Z",
  "aliases" : [ "CVE-2013-7397" ],
  "summary" : "Insufficient Verification of Data Authenticity in Async Http Client",
  "details" : "Async Http Client (aka AHC or async-http-client) before 1.9.0 skips X.509 certificate verification unless both a keyStore location and a trustStore location are explicitly set, which allows man-in-the-middle attackers to spoof HTTPS servers by presenting an arbitrary certificate during use of a typical AHC configuration, as demonstrated by a configuration that does not send client certificates.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.ning:async-http-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-7397"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AsyncHttpClient/async-http-client/issues/352"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AsyncHttpClient/async-http-client/commit/dfacb8e05d0822c7b2024c452554bd8e1d6221d8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/AsyncHttpClient/async-http-client"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ff8dcfe29377088ab655fda9d585dccd5b1f07fabd94ae84fd60a7f8@%3Ccommits.pulsar.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-06-20"
  }, {
    "type" : "WEB",
    "url" : "http://openwall.com/lists/oss-security/2014/08/26/1"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0850.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0851.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1176.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1551.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-07T23:14:07Z",
    "nvd_published_at" : "2015-06-24T16:59:00Z"
  }
}