Upgrade pyasn1 and pyasn1-modules dependencies#504
Conversation
Upgrade pyasn1 from 0.5.1 to 0.6.2 to fix a high severity DoS vulnerability (CVSS 7.5) in the ASN.1 RELATIVE-OID decoder that allows memory exhaustion via malformed continuation octets. Also upgrade pyasn1-modules from 0.3.0 to 0.4.2 for compatibility, and pin pyasn1>=0.6.2 in enforcer/requirements.txt to ensure the krr-enforcer image uses the patched version. https://claude.ai/code/session_01AMHRZh1eLroZdepVJYBDEw
WalkthroughDependencies were updated across two requirement files: pyasn1 upgraded from 0.5.1 to 0.6.2, pyasn1-modules upgraded from 0.3.0 to 0.4.2, and pyasn1>=0.6.2 was added to enforcer/requirements.txt with constraints for Python 3.10–3.12. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Comment |
Summary
This PR upgrades the pyasn1 and pyasn1-modules dependencies to newer versions across the project.
Key Changes
pyasn1from 0.5.1 to 0.6.2 in main requirements.txtpyasn1-modulesfrom 0.3.0 to 0.4.2 in main requirements.txtpyasn1>=0.6.2constraint in enforcer/requirements.txt to ensure compatibilityDetails
These upgrades bring in bug fixes and improvements from the pyasn1 library. The enforcer module now explicitly declares its minimum pyasn1 version requirement to ensure it receives the necessary updates.
https://claude.ai/code/session_01AMHRZh1eLroZdepVJYBDEw