Skip to content

Commit

Permalink
Dependabot alert for cryptography v38
Browse files Browse the repository at this point in the history
Problem:
cryptography dependency has security vulnerabilities
CVE-2023-0286 High severity
CVE-2023-23931 Moderate severity

Solution:
Upgrade cryptography to v41.0.

Fixes AB#7856

Signed-off-by: Paul Hewlett <[email protected]>
  • Loading branch information
eccles committed May 31, 2023
1 parent e14c48b commit 3efac7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion archivist_samples/signed_records/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def load_keys(asset_name):
privkey_pem = privkeyfile.read().strip()

backend = backends.default_backend()
private_key = backend.load_pem_private_key(privkey_pem, password=None)
private_key = backend.load_pem_private_key(privkey_pem, None, False)
public_key = private_key.public_key()

return private_key, public_key
Expand Down
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# TODO: this version is subject to a security alert but
# upgrading requires code changes.
cryptography~=38.0
cryptography~=41.0.0
rkvst-archivist==0.22.0
pyyaml~=6.0

0 comments on commit 3efac7a

Please sign in to comment.