crypto/x509: ParseRevocationList accepts invalid AKI extension in CRL #73030
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.24.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
RFC 5280 specifies that the AKI extension, i.e., the Authority Key Identifier, is based on either keyIdentifier or a combination of both authorityCertIssuer and authorityCertSerialNumber. That is, authorityCertIssuer and authorityCertSerialNumber must either both appear together or both be None. However, I was able to successfully parse a CRL file with an AKI extension that only contains the authorityCertSerialNumber field using Go.
What did you see happen?
The AKI extension was successfully parsed, and the Authority Cert Serial Number value was printed.
What did you expect to see?
main.zip
The text was updated successfully, but these errors were encountered: