Skip to content

AAP-83418: Bump pyasn1 to 0.6.4 (CVE-2026-59886) - #370

Merged
omaciel merged 1 commit into
mainfrom
cve/pyasn1-bump-main
Jul 20, 2026
Merged

AAP-83418: Bump pyasn1 to 0.6.4 (CVE-2026-59886)#370
omaciel merged 1 commit into
mainfrom
cve/pyasn1-bump-main

Conversation

@omaciel

@omaciel omaciel commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Jira Issue: https://issues.redhat.com/browse/AAP-83418

Description

Bumps pyasn1 to the latest release 0.6.4 to fix CVE-2026-59886 (Red Hat: Important, CVSS 7.5).

pyasn1 < 0.6.4 decodes a BER/CER/DER-encoded REAL value's mantissa/base/exponent to a Python float using exact big-integer exponentiation. A short encoded value can carry a very large exponent, so prettyPrint(), str(), comparison, arithmetic, int(), or float() on the decoded value consumes excessive CPU/memory — a denial of service.

pyasn1 is a direct, pinned dependency of this project. Only the dependency version changed — no source changes.

Package Old New CVE
pyasn1 0.6.3 0.6.4 CVE-2026-59886

Testing

Steps to test

  1. Pull down the PR
  2. uv lock --check — passes
  3. pip-audit -r requirements.txt — no CVE-2026-59886

Type of Change

  • Security fix

Backport Policy

This change should be:

Scenarios tested

  • uv lock --check passes; uv.lock, requirements.txt, and pyproject.toml all pin pyasn1==0.6.4
  • Diff is limited to the pyasn1 entry — no other package moved

Production deployment

  • This code change is ready for production on its own

🤖 Generated with Claude Code

Fixes a denial-of-service in pyasn1 (< 0.6.4) where a short BER/CER/DER
encoded REAL value can carry a very large exponent, causing excessive
CPU/memory during float conversion. Direct, pinned dependency; latest
patched release is 0.6.4.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.46%. Comparing base (64b22c2) to head (8532796).

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #370   +/-   ##
=======================================
  Coverage   79.46%   79.46%           
=======================================
  Files          11       11           
  Lines         896      896           
=======================================
  Hits          712      712           
  Misses        184      184           
Flag Coverage Δ
python 79.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SiddharthRajaraman SiddharthRajaraman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@omaciel

omaciel commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@omaciel
omaciel merged commit 72b73bf into main Jul 20, 2026
7 checks passed
@omaciel
omaciel deleted the cve/pyasn1-bump-main branch July 20, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants