Skip to content

crypto/x509: chain building work limit not fully applied #78291

Description

@rolandshoemaker

We have a limit on how much work the chain builder will do, which is bounded by 100 signature checking operations. This is intended to prevent the chain builder for being tricked into doing large amounts of work when presented with pathologic inputs.

When we added the "is this certificate already in the chain?" check to the chain builder, we placed it before the signature limit check, which means we do some not particularly cheap work before we check the limit that prevents us from doing too much work 🤦.

We should just move this check after the limit check (and also break the loop).

This is a PUBLIC track issue per the Go Security policy and CVE-2026-32280.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions