# CVE-2024-43397: Potential unauthorized access issue in apollo-portal

> Attackers can bypass permission checks to modify namespaces in Apollo configuration management without authorization.

- **Severity:** Medium 4.3 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 20 Aug 2024
- **Updated:** 20 Aug 2024
- **Also known as:** GHSA-c6c3-h4f7-3962

## What is CVE-2024-43397?

CVE-2024-43397 is a medium-severity missing authorization vulnerability in apolloconfig apollo, published on 20 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Apollo is a configuration management system. 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. The issue was addressed with an input parameter check which was released in version 2.3.0.

Weakness: CWE-284 (Improper Access Control)

## Which versions are affected by CVE-2024-43397?

2 open source packages ship an affected version, including com.ctrip.framework.apollo:apollo. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `com.ctrip.framework.apollo:apollo` | Maven | All versions | 2.3.0 |
| `com.ctrip.framework.apollo:apollo` | Maven | All versions | 2.3.0 |

Products: Apolloconfig Apollo.

## How do I fix CVE-2024-43397?

Upgrade com.ctrip.framework.apollo:apollo to 2.3.0 or later.

## Is CVE-2024-43397 being exploited?

There is no known exploitation of CVE-2024-43397 in the wild and no public exploit code.

## Other vulnerabilities in apolloconfig apollo

- [CVE-2024-42662](https://insights.sbomify.com/CVE-2024-42662/): Information disclosure in n/a (high 7.5)
- [CVE-2023-25570](https://insights.sbomify.com/CVE-2023-25570/): Apollo has potential access control security issue in eureka (high 7.5)
- [CVE-2023-25569](https://insights.sbomify.com/CVE-2023-25569/): apollo-portal has potential CSRF issue (medium 5.7)
- [CVE-2022-4962](https://insights.sbomify.com/CVE-2022-4962/): Apollo Configuration Center users improper authorization (medium 4.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-43397 and fix it if it is affected.

What it is: CVE-2024-43397 is a medium-severity missing authorization vulnerability in apolloconfig apollo, published on 20 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-43397 in the wild and no public exploit code.

Affected packages and fixed versions:
- com.ctrip.framework.apollo:apollo (Maven): affected all versions; fixed in 2.3.0
- com.ctrip.framework.apollo:apollo (Maven): affected all versions; fixed in 2.3.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-43397/ (Markdown: https://insights.sbomify.com/CVE-2024-43397/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-43397
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-43397
- OSV: https://osv.dev/vulnerability/CVE-2024-43397

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-43397/
Summaries are generated and may contain mistakes; the official description above is the record.
