# CVE-2024-8462: Windmill HTTP Request users.rs excessive authentication

> Attackers can bypass authentication attempt restrictions in Windmill, potentially enabling brute-force attacks against user accounts.

- **Severity:** Medium 6.3 (`CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 5 Sep 2024
- **Updated:** 5 Sep 2024
- **Also known as:** GHSA-g6q4-w3j3-jfc4, GO-2024-3118

## What is CVE-2024-8462?

CVE-2024-8462 is a medium-severity vulnerability in Windmill, published on 5 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A vulnerability was found in Windmill 1.380.0. It has been classified as problematic. Affected is an unknown function of the file backend/windmill-api/src/users.rs of the component HTTP Request Handler. The manipulation leads to improper restriction of excessive authentication attempts. It is possible to launch the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. Upgrading to version 1.390.1 is able to address this issue. The patch is identified as acfe7786152f036f2476f93ab5536571514fa9e3. It is recommended to upgrade the affected component.

Weakness: CWE-307 (Improper Restriction of Excessive Authentication Attempts)

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

3 open source packages ship an affected version, including github.com/windmill-labs/windmill.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/windmill-labs/windmill` | Go | All versions | None |
| `github.com/windmill-labs/windmill` | Go | All versions to 1.61.1 | None |
| `github.com/windmill-labs/windmill` | Go | All versions to 1.61.1 | None |

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

No fix has been published for CVE-2024-8462 yet. Limit exposure of the affected software until one is available.

## Is CVE-2024-8462 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2024-8462 is a medium-severity vulnerability in Windmill, published on 5 Sep 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-8462 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/windmill-labs/windmill (Go): affected all versions; no fix listed
- github.com/windmill-labs/windmill (Go): affected all versions up to 1.61.1; no fix listed
- github.com/windmill-labs/windmill (Go): affected all versions up to 1.61.1; no fix listed

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

## Sources

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

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