Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. cbor2
  4. ›
  5. CVE-2025-68131

CVE-2025-68131: CBORDecoder reuse can leak shareable values across decode calls

December 31, 2025 (updated January 7, 2026)

When a CBORDecoder instance is reused across multiple decode operations, values marked with the shareable tag (28) persist in memory and can be accessed by subsequent CBOR messages using the sharedref tag (29). This allows an attacker-controlled message to read data from previously decoded messages if the decoder is reused across trust boundaries.

References

  • github.com/advisories/GHSA-wcj4-jw5j-44wh
  • github.com/agronholm/cbor2
  • github.com/agronholm/cbor2/commit/f1d701cd2c411ee40bb1fe383afe7f365f35abf0
  • github.com/agronholm/cbor2/security/advisories/GHSA-wcj4-jw5j-44wh
  • nvd.nist.gov/vuln/detail/CVE-2025-68131

Code Behaviors & Features

Detect and mitigate CVE-2025-68131 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 5.8.0

Fixed versions

  • 5.8.0

Solution

Upgrade to version 5.8.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer

Source file

pypi/cbor2/CVE-2025-68131.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:41 +0000.