GHSA-f5vp-w269-392g

Suggest an improvement
Source
https://github.com/advisories/GHSA-f5vp-w269-392g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-f5vp-w269-392g/GHSA-f5vp-w269-392g.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-f5vp-w269-392g
Aliases
Published
2026-07-06T21:10:13Z
Modified
2026-07-07T22:30:08Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Coder vulnerable to denial of service via unbounded request body in AI Bridge provider endpoints
Details

Summary

AI Bridge provider handlers read request bodies with io.ReadAll without a maximum size so an authenticated user with AI Bridge access could send an arbitrarily large body and exhaust memory.

Note: Exploitation requires authenticated access to the AI Bridge endpoints and the impact is limited to availability (denial of service).

Impact

An authenticated member-level user could POST a very large or chunked body to an AI Bridge provider endpoint such as /api/v2/aibridge/anthropic/v1/messages, growing heap memory until the operating system terminates the process. Because AI Bridge runs in-process with coderd, this crashes the entire control plane, including the API, workspace coordinator and DERP relay. It requires an authenticated user and the AI Bridge feature enabled.

Patches

The fix applies http.MaxBytesReader or an equivalent cap before reading provider and session request bodies. The affected AI Bridge provider endpoints exist only on the v2.33 and v2.34 lines. Earlier release lines are not affected.

The fix is available in the following releases:

Release line Patched version
2.34 v2.34.2
2.33 v2.33.8

Workarounds

None.

Resources

  • Fix: #26164

Credits

Coder would like to thank Anthropic's Security Team (ANT-2026-22443) for independently disclosing this issue!

Database specific
{
    "cwe_ids": [
        "CWE-770"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-06T21:10:13Z",
    "nvd_published_at": "2026-07-07T21:17:27Z",
    "severity": "MODERATE"
}
References

Affected packages

Go / github.com/coder/coder/v2

Package

Name
github.com/coder/coder/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/coder/coder/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.34.0
Fixed
2.34.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-f5vp-w269-392g/GHSA-f5vp-w269-392g.json"

Go / github.com/coder/coder/v2

Package

Name
github.com/coder/coder/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/coder/coder/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.33.0
Fixed
2.33.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-f5vp-w269-392g/GHSA-f5vp-w269-392g.json"