# CVE-2024-3744: Kubernetes azure-file-csi-driver in versions before 1.29.4 and 1.30.1 discloses service account tokens in logs

> Attackers with log access can steal service account tokens to access cloud secrets when verbose logging and token requests are enabled.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 15 May 2024
- **Updated:** 13 Feb 2025
- **Also known as:** GHSA-qjqg-4wg7-957h, GO-2024-2861

## What is CVE-2024-3744?

CVE-2024-3744 is a medium-severity vulnerability in Kubernetes azure-file-csi-driver, published on 15 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A security issue was discovered in azure-file-csi-driver where an actor with access to the driver logs could observe service account tokens. These tokens could then potentially be exchanged with external cloud providers to access secrets stored in cloud vault solutions. Tokens are only logged when TokenRequests is configured in the CSIDriver object and the driver is set to run at log level 2 or greater via the -v flag.

Weakness: CWE-532 (Insertion of Sensitive Information into Log File)

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

5 open source packages ship an affected version, including sigs.k8s.io/azurefile-csi-driver.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `sigs.k8s.io/azurefile-csi-driver` | Go | All versions | 1.29.4, 1.30.1 |
| `sigs.k8s.io/azurefile-csi-driver` | Go | All versions | 1.29.4 |
| `sigs.k8s.io/azurefile-csi-driver` | Go | All versions | 1.29.4 |
| `sigs.k8s.io/azurefile-csi-driver` | Go | From 1.30.0 | 1.30.1 |
| `sigs.k8s.io/azurefile-csi-driver` | Go | From 1.30.0 | 1.30.1 |

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

Upgrade sigs.k8s.io/azurefile-csi-driver to a fixed version for your release line: 1.29.4 or 1.30.1.

## Is CVE-2024-3744 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2024-3744 is a medium-severity vulnerability in Kubernetes azure-file-csi-driver, published on 15 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-3744 in the wild and no public exploit code.

Affected packages and fixed versions:
- sigs.k8s.io/azurefile-csi-driver (Go): affected all versions; fixed in 1.29.4, 1.30.1
- sigs.k8s.io/azurefile-csi-driver (Go): affected all versions; fixed in 1.29.4
- sigs.k8s.io/azurefile-csi-driver (Go): affected all versions; fixed in 1.29.4
- sigs.k8s.io/azurefile-csi-driver (Go): affected from 1.30.0; fixed in 1.30.1
- sigs.k8s.io/azurefile-csi-driver (Go): affected from 1.30.0; fixed in 1.30.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-2024-3744/ (Markdown: https://insights.sbomify.com/CVE-2024-3744/index.md)
```

## Sources

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

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