CVE-2017-8031: Cloudfoundry identity server Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-j4p3-2m2h-cv5f
CVSS 5.3
Published
Advisory Summary

CVE-2017-8031 is a MODERATE (CVSS 5.3) denial of service vulnerability (General Security Weakness) affecting Cloudfoundry identity server libraries in the Maven ecosystem. The issue involves cloud foundry uaa denial of service through client token revocation endpoint. Remediation is available by upgrading affected packages to version 4.7.1, 4.5.3, 3.20.1.

CVE-2017-8031 at a Glance

CVE Identifier CVE-2017-8031
GHSA Identifier GHSA-j4p3-2m2h-cv5f
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification General Security Weakness
Affected Product Cloudfoundry identity server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
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-8031

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

org.cloudfoundry.identity:cloudfoundry-identity-server fixed: 4.7.1
<dependency>
    <groupId>org.cloudfoundry.identity</groupId>
    <artifactId>cloudfoundry-identity-server</artifactId>
    <version>4.7.1</version>
</dependency>
org.cloudfoundry.identity:cloudfoundry-identity-server fixed: 4.5.3
<dependency>
    <groupId>org.cloudfoundry.identity</groupId>
    <artifactId>cloudfoundry-identity-server</artifactId>
    <version>4.5.3</version>
</dependency>
org.cloudfoundry.identity:cloudfoundry-identity-server fixed: 3.20.1
<dependency>
    <groupId>org.cloudfoundry.identity</groupId>
    <artifactId>cloudfoundry-identity-server</artifactId>
    <version>3.20.1</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=org.cloudfoundry.identity

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.cloudfoundry.identity

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

Note: The mvn dependency:tree -Dincludes=org.cloudfoundry.identity 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 Cloudfoundry identity server, 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

An issue was discovered in Cloud Foundry Foundation cf-release (all versions prior to v279) and UAA (30.x versions prior to 30.6, 45.x versions prior to 45.4, 52.x versions prior to 52.1). In some cases, the UAA allows an authenticated user for a particular client to revoke client tokens for other users on the same client. This occurs only if the client is using opaque tokens or JWT tokens validated using the check_token endpoint. A malicious actor could cause denial of service.

CVE-2017-8031 Affected Cloudfoundry identity server Versions

3 component(s)
Fixed Versions:
4.7.14.5.33.20.1
Product / Package Ecosystem Affected Versions Fixed Version
org.cloudfoundry.identity:cloudfoundry-identity-server
Maven
≥ 4.6.0
< 4.7.1
4.7.1
org.cloudfoundry.identity:cloudfoundry-identity-server
Maven
≥ 4.0.0
< 4.5.3
4.5.3
org.cloudfoundry.identity:cloudfoundry-identity-server
Maven
< 3.20.1
3.20.1

References

Frequently Asked Questions

What is CVE-2017-8031?
CVE-2017-8031 is a security vulnerability in Cloudfoundry identity server involving Cloud Foundry UAA Denial of Service through client token revocation endpoint under General Security Weakness.
Which Cloudfoundry identity server versions are affected?
Affected versions include releases prior to 4.7.1, 4.5.3, 3.20.1 across affected packages: org.cloudfoundry.identity:cloudfoundry-identity-server.
What version fixes CVE-2017-8031?
Upgrading to 4.7.1, 4.5.3, 3.20.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cloudfoundry-identity-server affected?
Yes, org.cloudfoundry.identity:cloudfoundry-identity-server is affected in releases prior to 4.7.1, 4.5.3, 3.20.1. Upgrade your dependency to 4.7.1, 4.5.3, 3.20.1 or later.
What is the CVSS score of CVE-2017-8031?
CVE-2017-8031 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2017-8031?
CVE-2017-8031 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2017-8031?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.cloudfoundry.identity'. 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-j4p3-2m2h-cv5f",
  "modified" : "2024-03-01T20:07:31Z",
  "published" : "2022-05-13T01:10:00Z",
  "aliases" : [ "CVE-2017-8031" ],
  "summary" : "Cloud Foundry UAA Denial of Service through client token revocation endpoint",
  "details" : "An issue was discovered in Cloud Foundry Foundation cf-release (all versions prior to v279) and UAA (30.x versions prior to 30.6, 45.x versions prior to 45.4, 52.x versions prior to 52.1). In some cases, the UAA allows an authenticated user for a particular client to revoke client tokens for other users on the same client. This occurs only if the client is using opaque tokens or JWT tokens validated using the check_token endpoint. A malicious actor could cause denial of service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.cloudfoundry.identity:cloudfoundry-identity-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.6.0"
      }, {
        "fixed" : "4.7.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.cloudfoundry.identity:cloudfoundry-identity-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.cloudfoundry.identity:cloudfoundry-identity-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.20.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-8031"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudfoundry/uaa/commit/1e2a746968cdac5b53164ca8955646e4257ecc7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudfoundry/uaa/commit/20808046de8bbdc6fb2ac62829d4cc9d7a19f37"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudfoundry/uaa/commit/66166d17781aa257ff77a2fb7c69f72d0b611be"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cloudfoundry/uaa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudfoundry/uaa/releases/tag/3.20.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudfoundry/uaa/releases/tag/4.5.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudfoundry/uaa/releases/tag/4.7.1"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200227134207/http://www.securityfocus.com/bid/101967"
  }, {
    "type" : "WEB",
    "url" : "https://www.cloudfoundry.org/cve-2017-8031"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-01T20:07:31Z",
    "nvd_published_at" : "2017-11-27T10:29:00Z"
  }
}