# CVE-2025-41240: Mounted Kubernetes Secrets under a predictable path located within the web server document root

> Remote attackers can retrieve sensitive Kubernetes secrets via HTTP requests due to predictable file paths in web server document roots.

- **Severity:** Critical 10.0 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 24 Jul 2025
- **Updated:** 26 Feb 2026
- **Also known as:** BIT-appsmith-2025-41240, BIT-drupal-2025-41240, BIT-wordpress-2025-41240, GHSA-wgg9-9qgw-529w

## What is CVE-2025-41240?

CVE-2025-41240 is a critical vulnerability in VMware bitnamicharts/appsmith, published on 24 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Three Bitnami Helm charts mount Kubernetes Secrets under a predictable path (/opt/bitnami/*/secrets) that is located within the web server document root.
In affected versions, this can lead to unauthenticated access to sensitive credentials via HTTP/S. A remote attacker could retrieve these secrets by accessing specific URLs if the application is exposed externally. The issue affects deployments using the default value of usePasswordFiles=true, which mounts secrets as files into the container filesystem.

Weakness: CWE-552 (Files or Directories Accessible to External Parties)

## Which versions are affected by CVE-2025-41240?

3 open source packages ship an affected version, including appsmith, drupal and wordpress.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `appsmith` | Bitnami | From 1.62.0-0 | 1.81.0-1 |
| `drupal` | Bitnami | From 11.1.5-0 | 11.2.2-1 |
| `wordpress` | Bitnami | From 6.7.2-7 | 6.8.2-1 |

## How do I fix CVE-2025-41240?

Upgrade appsmith to 1.81.0-1 or later.

## Is CVE-2025-41240 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-41240 and fix it if it is affected.

What it is: CVE-2025-41240 is a critical vulnerability in VMware bitnamicharts/appsmith, published on 24 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-41240 in the wild and no public exploit code.

Affected packages and fixed versions:
- appsmith (Bitnami): affected from 1.62.0-0; fixed in 1.81.0-1
- drupal (Bitnami): affected from 11.1.5-0; fixed in 11.2.2-1
- wordpress (Bitnami): affected from 6.7.2-7; fixed in 6.8.2-1

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-2025-41240/ (Markdown: https://insights.sbomify.com/CVE-2025-41240/index.md)
```

## Sources

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

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