CVE-2017-1000118: Akka http core 2.12 Improper Restriction Of Operations Within Vulnerability

HIGH
Advisory Identifier: GHSA-gfx6-ph4q-q54q
CVSS 7.5
CWE-119
Published
Advisory Summary

CVE-2017-1000118 is a HIGH (CVSS 7.5) improper restriction of operations within vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Akka http core 2.12 libraries in the Maven ecosystem. The issue involves improper restriction of operations within the bounds of a memory buffer in akka-http-core. Remediation is available by upgrading affected packages to version 10.0.6.

CVE-2017-1000118 at a Glance

CVE Identifier CVE-2017-1000118
GHSA Identifier GHSA-gfx6-ph4q-q54q
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Akka http core 2.12
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.0/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 CVE-2017-1000118

To remediate this vulnerability, upgrade all affected Akka http core 2.12 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.typesafe.akka:akka-http-core_2.12 fixed: 10.0.6
<dependency>
    <groupId>com.typesafe.akka</groupId>
    <artifactId>akka-http-core_2.12</artifactId>
    <version>10.0.6</version>
</dependency>
com.typesafe.akka:akka-http-core_2.11 fixed: 10.0.6
<dependency>
    <groupId>com.typesafe.akka</groupId>
    <artifactId>akka-http-core_2.11</artifactId>
    <version>10.0.6</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.typesafe.akka

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.typesafe.akka

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

Note: The mvn dependency:tree -Dincludes=com.typesafe.akka 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-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Akka http core 2.12, 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

Akka HTTP versions <= 10.0.5 Illegal Media Range in Accept Header Causes StackOverflowError Leading to Denial of Service

CVE-2017-1000118 Affected Akka http core 2.12 Versions

2 component(s)
Fixed Versions:
10.0.6
Product / Package Ecosystem Affected Versions Fixed Version
com.typesafe.akka:akka-http-core_2.12
Maven
< 10.0.6
10.0.6
com.typesafe.akka:akka-http-core_2.11
Maven
< 10.0.6
10.0.6

References

Frequently Asked Questions

What is CVE-2017-1000118?
CVE-2017-1000118 is a security vulnerability in Akka http core 2.12 involving Improper Restriction of Operations within the Bounds of a Memory Buffer in akka-http-core under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Akka http core 2.12 versions are affected?
Affected versions include releases prior to 10.0.6 across affected packages: com.typesafe.akka:akka-http-core_2.12, com.typesafe.akka:akka-http-core_2.11.
What version fixes CVE-2017-1000118?
Upgrading to 10.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is akka-http-core_2.12 affected?
Yes, com.typesafe.akka:akka-http-core_2.12 is affected in releases prior to 10.0.6. Upgrade your dependency to 10.0.6 or later.
Is akka-http-core_2.11 affected?
Yes, com.typesafe.akka:akka-http-core_2.11 is affected in releases prior to 10.0.6. Upgrade your dependency to 10.0.6 or later.
What is the CVSS score of CVE-2017-1000118?
CVE-2017-1000118 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2017-1000118?
CVE-2017-1000118 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check Maven dependencies for CVE-2017-1000118?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.typesafe.akka'. 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-gfx6-ph4q-q54q",
  "modified" : "2022-09-14T19:20:48Z",
  "published" : "2018-10-22T20:53:02Z",
  "aliases" : [ "CVE-2017-1000118" ],
  "summary" : "Improper Restriction of Operations within the Bounds of a Memory Buffer in akka-http-core",
  "details" : "Akka HTTP versions <= 10.0.5 Illegal Media Range in Accept Header Causes StackOverflowError Leading to Denial of Service",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.typesafe.akka:akka-http-core_2.12"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.0.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.typesafe.akka:akka-http-core_2.11"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.0.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-1000118"
  }, {
    "type" : "WEB",
    "url" : "https://doc.akka.io/docs/akka-http/10.0.6/security/2017-05-03-illegal-media-range-in-accept-header-causes-stackoverflowerror.html"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-gfx6-ph4q-q54q"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:37:14Z",
    "nvd_published_at" : null
  }
}