Skip to content

crypto/x509: ParseRevocationList accepts authorityCertSerialNumber set to 0 #73293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
onepeople158 opened this issue Apr 9, 2025 · 1 comment
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.

Comments

@onepeople158
Copy link

onepeople158 commented Apr 9, 2025

Go version

go version go1.24.2 linux/amd64

Output of go env in your module/workspace:

CN=US,OU=US,O=US,L=US,ST=US,C=US
2025-01-01 00:00:00 +0000 UTC
2025-12-01 00:00:00 +0000 UTC
134026152402537916809419830168838464
1
Key Identifier: ef69e0f7d51de699ecdc6dd0f7e2b95c64718335
Authority Cert Serial Number:0

What did you do?

Hello Developer:
I have a CRL file where the authorityCertSerialNumber field in the AKI extension is set to 0. Go successfully parsed the authorityCertSerialNumber field without any errors. However, according to RFC5280, the authorityCertSerialNumber field stores the certificate serial number, which must be a positive integer.So, is this a bug?

What did you see happen?

Go parsed a CRL file with the authorityCertSerialNumber set to 0.

What did you expect to see?

main.zip

@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Apr 9, 2025
@dmitshur dmitshur changed the title crypto/x509:Go parsed a CRL file with the authorityCertSerialNumber set to 0. crypto/x509: Go parsed a CRL file with the authorityCertSerialNumber set to 0 Apr 9, 2025
@seankhliao seankhliao changed the title crypto/x509: Go parsed a CRL file with the authorityCertSerialNumber set to 0 crypto/x509: ParseRevocationList accepts authorityCertSerialNumber set to 0 Apr 10, 2025
@seankhliao seankhliao added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants