CVE-2024-43397: Apollo Apollo-portal Has Potential Unauthorized Access Vulnerability

MODERATE
Advisory Identifier: GHSA-c6c3-h4f7-3962
CVSS 4.3
CWE-284
Published
Advisory Summary

CVE-2024-43397 is a MODERATE (CVSS 4.3) apollo-portal has potential unauthorized access vulnerability (CWE-284: Improper Access Control) affecting Apollo libraries in the Maven ecosystem. The issue involves apollo-portal has potential unauthorized access issue. Remediation is available by upgrading affected packages to version 2.3.0.

CVE-2024-43397 at a Glance

CVE Identifier CVE-2024-43397
GHSA Identifier GHSA-c6c3-h4f7-3962
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-284: Improper Access Control
Affected Product Apollo
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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

How to Fix CVE-2024-43397

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

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-43397, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.0), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Apollo, 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 A vulnerability exists in the synchronization configuration feature that allows users to craft specific requests to bypass permission checks. This exploit enables them to modify a namespace without the necessary permissions. ### Patches The issue was addressed with an input parameter check in #5192, which was released in version [2.3.0](https://github.com/apolloconfig/apollo/releases/tag/v2.3.0). ### Workarounds To mitigate the issue without upgrading, follow the recommended practices to prevent Apollo from being exposed to the internet. ### Credits The vulnerability was reported and reproduced by [Lakeswang](https://github.com/Lakes-bitgetsec). ### References For any questions or comments regarding this advisory: * Open an issue in [issue](https://github.com/apolloconfig/apollo/issues) * Email us at [apollo-config@googlegroups.com](mailto:apollo-config@googlegroups.com)

CVE-2024-43397 Affected Apollo Versions

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

References

Frequently Asked Questions

What is CVE-2024-43397?
CVE-2024-43397 is a security vulnerability in Apollo involving apollo-portal has potential unauthorized access issue under CWE-284: Improper Access Control.
Which Apollo versions are affected?
Affected versions include releases prior to 2.3.0 across affected packages: com.ctrip.framework.apollo:apollo.
What version fixes CVE-2024-43397?
Upgrading to 2.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apollo affected?
Yes, com.ctrip.framework.apollo:apollo is affected in releases prior to 2.3.0. Upgrade your dependency to 2.3.0 or later.
What is the CVSS score of CVE-2024-43397?
CVE-2024-43397 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2024-43397?
CVE-2024-43397 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2024-43397?
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-c6c3-h4f7-3962",
  "modified" : "2024-08-20T18:36:40Z",
  "published" : "2024-08-20T18:36:40Z",
  "aliases" : [ "CVE-2024-43397" ],
  "summary" : "apollo-portal has potential unauthorized access issue",
  "details" : "### Impact\nA vulnerability exists in the synchronization configuration feature that allows users to craft specific requests to bypass permission checks. This exploit enables them to modify a namespace without the necessary permissions.\n\n### Patches\nThe issue was addressed with an input parameter check in #5192, which was released in version [2.3.0](https://github.com/apolloconfig/apollo/releases/tag/v2.3.0).\n\n### Workarounds\nTo mitigate the issue without upgrading, follow the recommended practices to prevent Apollo from being exposed to the internet.\n\n### Credits\nThe vulnerability was reported and reproduced by [Lakeswang](https://github.com/Lakes-bitgetsec).\n\n### References\nFor any questions or comments regarding this advisory:\n* Open an issue in [issue](https://github.com/apolloconfig/apollo/issues)\n* Email us at [apollo-config@googlegroups.com](mailto:apollo-config@googlegroups.com)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.ctrip.framework.apollo:apollo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/apolloconfig/apollo/security/advisories/GHSA-c6c3-h4f7-3962"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43397"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apolloconfig/apollo/pull/5192"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apolloconfig/apollo/commit/f55b419145bf9d4f2f51dd4cd45108229e8d97ed"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apolloconfig/apollo"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apolloconfig/apollo/releases/tag/v2.3.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-20T18:36:40Z",
    "nvd_published_at" : "2024-08-20T15:15:23Z"
  }
}