Integer Underflow (Wrap or Wraparound) Affecting serde_with package, versions <3.21.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SERDEWITH-18017873
  • published19 Jul 2026
  • disclosed15 Jul 2026
  • creditUnknown

Introduced: 15 Jul 2026

New CVE NOT AVAILABLE CWE-191  (opens in a new tab)

How to fix?

Upgrade serde_with to version 3.21.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Underflow (Wrap or Wraparound) in the KeyValueMap serialization process. An attacker can cause the application to terminate unexpectedly by providing empty sequences or map entries during serialization.

CVSS Base Scores

version 4.0
version 3.1