# CVE-2024-10397: Preallocated buffer overflows in XDR responses

> A malicious server can crash OpenAFS clients or execute arbitrary code via buffer overflows in XDR responses.

- **Severity:** High 7.7 (`CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 14 Nov 2024
- **Updated:** 23 Dec 2025
- **Also known as:** DEBIAN-CVE-2024-10397, GHSA-wfh7-4g7r-cxxq, UBUNTU-CVE-2024-10397

## What is CVE-2024-10397?

CVE-2024-10397 is a high-severity memory corruption vulnerability in The OpenAFS Foundation OpenAFS, published on 14 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

A malicious server can crash the OpenAFS cache manager and other client utilities, and possibly execute arbitrary code.

Weakness: CWE-787 (Out-of-bounds Write)

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

It affects 1 product.


Products: Openafs Openafs.

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

Apply the vendor's patch.

## Is CVE-2024-10397 being exploited?

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

## Other vulnerabilities in The OpenAFS Foundation OpenAFS

- [CVE-2009-1251](https://insights.sbomify.com/CVE-2009-1251/): Memory corruption in n/a (critical 10.0)
- [CVE-2024-10394](https://insights.sbomify.com/CVE-2024-10394/): Theft of credentials in Unix client PAGs (high 8.4)
- [CVE-2019-18601](https://insights.sbomify.com/CVE-2019-18601/): Denial of service in n/a (high 7.5)
- [CVE-2011-0430](https://insights.sbomify.com/CVE-2011-0430/): Use after free in n/a (high 7.5)
- [CVE-2007-1507](https://insights.sbomify.com/CVE-2007-1507/): Privilege escalation in n/a (high 7.5)

## Fix prompt for AI coding agents

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

What it is: CVE-2024-10397 is a high-severity memory corruption vulnerability in The OpenAFS Foundation OpenAFS, published on 14 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-10397 in the wild and no public exploit code.

Affected product: The OpenAFS Foundation OpenAFS. No package-level version data is available, so check the vendor advisory linked from the reference page.

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

## Sources

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

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