Repository navigation
Description
Problem and impact
The public registry image contains go-jose v4.1.4, affected by CVE-2026-116587 / GHSA-mgcc-cww5-fp2q. Its Bearer-token parser can process an untrusted RSA JWK before verifying the token. Crafted RSA parameters can consume excessive CPU even when the request has no valid credentials, disrupting image pulls, pushes and new deployments.
Priority: P1. Audited main: deff5f611308aa538cd3981c3e66ca8dd22cced7 (2026-11-27). Related: #215 and the earlier image-triage issue #480. This is a specific exposure in the newly added registry, not a claim that every dependency alert is remotely exploitable.
Evidence
- Compose pins registry:3.1.2 at
sha256:d4032d4cc323c1731c707931ecada07a53076eac38e3b61ae57533f170f2c6c3. - Caddy forwards /v2 and /v2/* directly to the registry.
- Distribution v3.1.2 calls NewToken before verification; NewToken calls jwt.ParseSigned.
- The upstream advisory identifies unbounded RSA validation during JWK parsing, with a fix in go-jose v4.1.6. Signature trust is checked too late to prevent that parsing cost. Restricting expected signing algorithms alone is not a substitute for the parsing fix.
- A Trivy 0.70.0 scan on 2026-11-27 of this exact amd64 image found go-jose v4.1.4 and Go v1.26.8. The image has eight HIGH dependency occurrences covering seven distinct CVEs; this issue establishes reachability specifically for the JWK parsing advisory.
- The production-image scan matrix omits
registry, so it never evaluates this image.
Evidence level: exact-image dependency scan plus source tracing of the pre-authentication path. No malicious load or saturation test was run. Token forgery, unauthorized image reads, host compromise and interruption of already-running application containers were not demonstrated. Other CVEs need their own applicability review.
Proposed correction and acceptance criteria
- Pin a supported registry image whose binary contains go-jose >= 4.1.6 and corrected applicable dependencies; verify the contents, rather than relying only on its tag.
- Add
registryto the image-security matrix for amd64 and arm64, and scan the exact replacement digest on both platforms. - Review each remaining HIGH/CRITICAL alert with component/path scope; do not broaden unrelated exceptions to suppress the registry findings.
- Verify unauthenticated rejection, valid scoped pull/push, cross-application denial and compatibility with existing registry data.
- Add a bounded regression test for rejection of oversized RSA JWK parameters before expensive processing, using an isolated test service without a load attack.
- Record the scan date, digest and advisory disposition with the fix.
Publication check (2026-11-27): main advanced to 817f6ac3b00fdb0e81331e519abc5668a1560aee through #539. The affected production paths cited above are unchanged; the source links retain the audited revision.
Activity
fix(deploy): the registry token filter reads the Bearer scheme in any…
fix(deploy): Caddy refuses registry tokens unsafe to parse, and the r…