Skip to content
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

raise an exception instead of returning an empty list for pkcs7 cert … #10360

Closed
wants to merge 1 commit into from

Conversation

frenzymadness
Copy link

…loading (#9947)

  • raise an exception instead of returning an empty list

as davidben points out in #9926 we are calling a specific load certificates function and an empty value doesn't necessarily mean empty because PKCS7 contains multitudes. erroring is more correct.


I know this change is backward incompatible but it synchronizes the behavior of the fix for CVE-2023-49083. Versions 41.0.x are not vulnerable anymore but version 42 has better implementation that raises ValueError.

The concern of backward compatibility is just between the latest 41.0.x releases because:

  • 41.0.5 - is vulnerable, segfaults
  • 41.0.6 and 41.0.7 - is fixed, returns empty list
  • 41.0.8 - is fixed, raises ValueError (if this is merged and released)

What do you think about it?

…loading (pyca#9947)

* raise an exception instead of returning an empty list

as davidben points out in pyca#9926 we are calling a specific load
certificates function and an empty value doesn't necessarily mean empty
because PKCS7 contains multitudes. erroring is more correct.

* changelog

* Update CHANGELOG.rst

Co-authored-by: Alex Gaynor <[email protected]>

---------

Co-authored-by: Alex Gaynor <[email protected]>
@alex
Copy link
Member

alex commented Feb 7, 2024

We intentionally did not backport this change to the 41.x release, as it is not backwards compatible.

@frenzymadness
Copy link
Author

Ok, thanks for the quick reply. I'm closing the PR then.

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

Successfully merging this pull request may close these issues.

3 participants