CVE-2018-1262: Cloudfoundry identity server UAA Privilege Escalation Across Identity Vulnerability

HIGH
Advisory Identifier: GHSA-8v97-gv3g-32rf
CVSS 7.2
Published
Advisory Summary

CVE-2018-1262 is a HIGH (CVSS 7.2) uaa privilege escalation across identity vulnerability (General Security Weakness) affecting Cloudfoundry identity server libraries in the Maven ecosystem. The issue involves uaa privilege escalation across identity zones. Remediation is available by upgrading affected packages to version 4.12.2, 4.13.4.

CVE-2018-1262 at a Glance

CVE Identifier CVE-2018-1262
GHSA Identifier GHSA-8v97-gv3g-32rf
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification General Security Weakness
Affected Product Cloudfoundry identity server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.2

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

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

How to Fix CVE-2018-1262

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.12.2
<dependency>
    <groupId>org.cloudfoundry.identity</groupId>
    <artifactId>cloudfoundry-identity-server</artifactId>
    <version>4.12.2</version>
</dependency>
org.cloudfoundry.identity:cloudfoundry-identity-server fixed: 4.13.4
<dependency>
    <groupId>org.cloudfoundry.identity</groupId>
    <artifactId>cloudfoundry-identity-server</artifactId>
    <version>4.13.4</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-2018-1262, 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.12.2), 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

Cloud Foundry Foundation UAA, versions 4.12.X and 4.13.X, introduced a feature which could allow privilege escalation across identity zones for clients performing offline validation. A zone administrator could configure their zone to issue tokens which impersonate another zone, granting up to admin privileges in the impersonated zone for clients performing offline token validation.

CVE-2018-1262 Affected Cloudfoundry identity server Versions

2 component(s)
Fixed Versions:
4.12.24.13.4
Product / Package Ecosystem Affected Versions Fixed Version
org.cloudfoundry.identity:cloudfoundry-identity-server
Maven
≥ 4.12.0
< 4.12.2
4.12.2
org.cloudfoundry.identity:cloudfoundry-identity-server
Maven
≥ 4.13.0
< 4.13.4
4.13.4

References

Frequently Asked Questions

What is CVE-2018-1262?
CVE-2018-1262 is a security vulnerability in Cloudfoundry identity server involving UAA privilege escalation across identity zones under General Security Weakness.
Which Cloudfoundry identity server versions are affected?
Affected versions include releases prior to 4.12.2, 4.13.4 across affected packages: org.cloudfoundry.identity:cloudfoundry-identity-server.
What version fixes CVE-2018-1262?
Upgrading to 4.12.2, 4.13.4 (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.12.2, 4.13.4. Upgrade your dependency to 4.12.2, 4.13.4 or later.
What is the CVSS score of CVE-2018-1262?
CVE-2018-1262 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-1262?
CVE-2018-1262 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2018-1262?
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-8v97-gv3g-32rf",
  "modified" : "2024-03-01T23:42:45Z",
  "published" : "2022-05-13T01:07:03Z",
  "aliases" : [ "CVE-2018-1262" ],
  "summary" : "UAA privilege escalation across identity zones",
  "details" : "Cloud Foundry Foundation UAA, versions 4.12.X and 4.13.X, introduced a feature which could allow privilege escalation across identity zones for clients performing offline validation. A zone administrator could configure their zone to issue tokens which impersonate another zone, granting up to admin privileges in the impersonated zone for clients performing offline token validation.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.cloudfoundry.identity:cloudfoundry-identity-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.12.0"
      }, {
        "fixed" : "4.12.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.cloudfoundry.identity:cloudfoundry-identity-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.13.0"
      }, {
        "fixed" : "4.13.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1262"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudfoundry/uaa/commit/14c745aa293b8d3ce9cdd6bfbc6c0ef3f269b21"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudfoundry/uaa/commit/dccd3962f969913996ee88f653fce3b108c0205"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cloudfoundry/uaa"
  }, {
    "type" : "WEB",
    "url" : "https://www.cloudfoundry.org/blog/cve-2018-1262"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-01T23:42:45Z",
    "nvd_published_at" : "2018-05-15T20:29:00Z"
  }
}