CVE-2020-15170: Apollo core Potential Access Control Security Issue Vulnerability

HIGH
Advisory Identifier: GHSA-xpmx-h7xq-xffh
CVSS 7.0
CWE-20
Published
Advisory Summary

CVE-2020-15170 is a HIGH (CVSS 7.0) potential access control security issue vulnerability (CWE-20: Improper Input Validation) affecting Apollo core libraries in the Maven ecosystem. The issue involves potential access control security issue in apollo-adminservice. Remediation is available by upgrading affected packages to version 1.7.1.

CVE-2020-15170 at a Glance

CVE Identifier CVE-2020-15170
GHSA Identifier GHSA-xpmx-h7xq-xffh
Severity HIGH
CVSS v3.1 Base Score 7.0
CWE Classification CWE-20: Improper Input Validation
Affected Product Apollo core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.0

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

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

How to Fix CVE-2020-15170

To remediate this vulnerability, upgrade all affected Apollo core 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.ctrip.framework.apollo:apollo-core fixed: 1.7.1
<dependency>
    <groupId>com.ctrip.framework.apollo</groupId>
    <artifactId>apollo-core</artifactId>
    <version>1.7.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=com.ctrip.framework.apollo

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.ctrip.framework.apollo

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

Note: The mvn dependency:tree -Dincludes=com.ctrip.framework.apollo 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apollo core, 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 If users expose apollo-adminservice to internet(which is not recommended), there are potential security issues since apollo-adminservice is designed to work in intranet and it doesn't have built-in access control. Malicious hackers may access apollo-adminservice apis directly to access/edit the application's configurations. ### Patches Access control for admin service was added in #3233 and was released in [v1.7.1](https://github.com/ctripcorp/apollo/releases/tag/v1.7.1). ### Workarounds To fix the potential issue without upgrading, simply follow the advice that do not expose apollo-adminservice to internet. ### Credits [Lexu](https://github.com/lllllx) reported the issue and provided the required information to reproduce it. ### References [Apollo Security Guidence](https://github.com/ctripcorp/apollo/wiki/Apollo%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97#71-%E5%AE%89%E5%85%A8%E7%9B%B8%E5%85%B3) ### For more information If you have any questions or comments about this advisory: * Open an [issue](https://github.com/ctripcorp/apollo/issues) * Email to one of the active [project maintainers](https://github.com/ctripcorp/apollo/graphs/contributors)

CVE-2020-15170 Affected Apollo core Versions

1 component(s)
Fixed Versions:
1.7.1
Product / Package Ecosystem Affected Versions Fixed Version
com.ctrip.framework.apollo:apollo-core
Maven
< 1.7.1
1.7.1

References

Frequently Asked Questions

What is CVE-2020-15170?
CVE-2020-15170 is a security vulnerability in Apollo core involving Potential access control security issue in apollo-adminservice under CWE-20: Improper Input Validation.
Which Apollo core versions are affected?
Affected versions include releases prior to 1.7.1 across affected packages: com.ctrip.framework.apollo:apollo-core.
What version fixes CVE-2020-15170?
Upgrading to 1.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apollo-core affected?
Yes, com.ctrip.framework.apollo:apollo-core is affected in releases prior to 1.7.1. Upgrade your dependency to 1.7.1 or later.
What is the CVSS score of CVE-2020-15170?
CVE-2020-15170 has a CVSS v3.1 base score of 7.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2020-15170?
CVE-2020-15170 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2020-15170?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.ctrip.framework.apollo'. 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-xpmx-h7xq-xffh",
  "modified" : "2021-11-19T15:30:46Z",
  "published" : "2020-10-02T16:33:41Z",
  "aliases" : [ "CVE-2020-15170" ],
  "summary" : "Potential access control security issue in apollo-adminservice",
  "details" : "### Impact\nIf users expose apollo-adminservice to internet(which is not recommended), there are potential security issues since apollo-adminservice is designed to work in intranet and it doesn't have built-in access control. Malicious hackers may access apollo-adminservice apis directly to access/edit the application's configurations.\n\n### Patches\nAccess control for admin service was added in #3233 and was released in [v1.7.1](https://github.com/ctripcorp/apollo/releases/tag/v1.7.1).\n\n### Workarounds\nTo fix the potential issue without upgrading, simply follow the advice that do not expose apollo-adminservice to internet.\n\n### Credits\n[Lexu](https://github.com/lllllx) reported the issue and provided the required information to reproduce it.\n\n### References\n[Apollo Security Guidence](https://github.com/ctripcorp/apollo/wiki/Apollo%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97#71-%E5%AE%89%E5%85%A8%E7%9B%B8%E5%85%B3)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an [issue](https://github.com/ctripcorp/apollo/issues)\n* Email to one of the active [project maintainers](https://github.com/ctripcorp/apollo/graphs/contributors)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.ctrip.framework.apollo:apollo-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ctripcorp/apollo/security/advisories/GHSA-xpmx-h7xq-xffh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15170"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ctripcorp/apollo/pull/3233/commits/ae9ba6cfd32ed80469f162e5e3583e2477862ddf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ctripcorp/apollo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-10-02T16:32:24Z",
    "nvd_published_at" : "2020-09-10T19:15:00Z"
  }
}