You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for hex-encoded certificate subject attributes (=#)
#1382
Notation rejects certificate subject distinguished names containing hex-encoded attribute values (=#). This restriction appears to have been introduced in notation-go PR #275 to mitigate CVE-2023-25656.
I found go-asn1-ber/asn1-ber PR #42, which appears to address the underlying excessive memory allocation issue.
My EV code-signing certificate, issued by GlobalSign, contains these two subject attributes:
These represent jurisdictionCountryName=NL and businessCategory=Private Organization. When verifying a signature made with this certificate, Notation fails with:
notation does not support x509.subject identities containing "=#"
In a local build, removing the following check from pkix.go allows verification to succeed with my certificate:
if strings.Contains(name, "=#") {
return nil, fmt.Errorf("unsupported distinguished name (DN) %q: notation does not support x509.subject identities containing \"=#\"", name)
}
I understand that this test alone does not establish that removing the restriction is safe.
Are there additional security or compatibility reasons for retaining this restriction, or could support for these subject attribute values be reconsidered with an updated parsing dependency?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
Notation rejects certificate subject distinguished names containing hex-encoded attribute values (=#). This restriction appears to have been introduced in notation-go PR #275 to mitigate CVE-2023-25656.
I found go-asn1-ber/asn1-ber PR #42, which appears to address the underlying excessive memory allocation issue.
My EV code-signing certificate, issued by GlobalSign, contains these two subject attributes:
These represent jurisdictionCountryName=NL and businessCategory=Private Organization. When verifying a signature made with this certificate, Notation fails with:
notation does not support x509.subject identities containing "=#"
In a local build, removing the following check from pkix.go allows verification to succeed with my certificate:
I understand that this test alone does not establish that removing the restriction is safe.
Are there additional security or compatibility reasons for retaining this restriction, or could support for these subject attribute values be reconsidered with an updated parsing dependency?
Martin
All reactions