Skip to content

[GHSA-375g-39jq-vq7m] Potential buffer overflow in CBOR2 decoder - #9657

Open
Chi-Song-Owen wants to merge 1 commit into
Chi-Song-Owen/advisory-improvement-9657from
Chi-Song-Owen-GHSA-375g-39jq-vq7m
Open

Chi-Song-Owen wants to merge 1 commit into
Chi-Song-Owen/advisory-improvement-9657from
Chi-Song-Owen-GHSA-375g-39jq-vq7m

Conversation

@Chi-Song-Owen

Copy link
Copy Markdown

Updates

  • Affected products
  • References

Comments
The current reference to commit 4de6991ba29bf2290d7b9d83525eda7d021873df appears unrelated to the long-string decoding vulnerability described in this advisory. That commit fixes error handling in CBORTag_hash() for recursive references, as reported in agronholm/cbor2#213. The corresponding fix for the advisory’s decoding issue is agronholm/cbor2@0423e46, which initializes consumed to chunk_length before calling PyUnicode_DecodeUTF8Stateful(). This works around python/cpython#99612, where ASCII-only input could leave consumed unset. Please replace the unrelated reference with this fix commit.

@github

github commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Hi there @agronholm! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.

This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

@github-actions
github-actions Bot changed the base branch from main to Chi-Song-Owen/advisory-improvement-9657 September 21, 2026 09:13
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.

2 participants