# CVE-2024-56375: Integer overflow in fort-validator

> A malicious RPKI repository can cause a crash in Fort validator via an integer underflow leading to an infinite loop and out-of-bounds access.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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:** 22 Dec 2024
- **Updated:** 6 Jan 2025
- **Also known as:** DEBIAN-CVE-2024-56375, GHSA-533g-7w58-g89m

## What is CVE-2024-56375?

CVE-2024-56375 is a high-severity vulnerability in nicmx fort-validator, published on 22 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An integer underflow was discovered in Fort 1.6.3 and 1.6.4 before 1.6.5. A malicious RPKI repository that descends from a (trusted) Trust Anchor can serve (via rsync or RRDP) a Manifest RPKI object containing an empty fileList. Fort dereferences (and, shortly afterwards, writes to) this array during a shuffle attempt, before the validation that would normally reject it when empty. This out-of-bounds access is caused by an integer underflow that causes the surrounding loop to iterate infinitely. Because the product is permanently stuck attempting to overshuffle an array that doesn't actually exist, a crash is nearly guaranteed.

Weakness: CWE-191 (Integer Underflow (Wrap or Wraparound))

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

It affects 1 product.


Products: Nicmx Fort Validator.

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

Upgrade to a fixed version.

## Is CVE-2024-56375 being exploited?

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

## Other vulnerabilities in nicmx fort-validator

- [CVE-2024-45235](https://insights.sbomify.com/CVE-2024-45235/): Null dereference in n/a (high 7.5)
- [CVE-2024-45238](https://insights.sbomify.com/CVE-2024-45238/): Null dereference in n/a (high 7.5)
- [CVE-2024-56169](https://insights.sbomify.com/CVE-2024-56169/): Other in n/a (medium 5.3)

## Fix prompt for AI coding agents

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

What it is: CVE-2024-56375 is a high-severity vulnerability in nicmx fort-validator, published on 22 Dec 2024. 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-2024-56375 in the wild and no public exploit code.

Affected product: nicmx fort-validator. 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-56375/ (Markdown: https://insights.sbomify.com/CVE-2024-56375/index.md)
```

## Sources

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

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