Cyber Resilience

CWE · MITRE source

CWE-195Signed to Unsigned Conversion Error

Abstraction: Variant · CVEs in our corpus: 22

The product uses a signed primitive and performs a cast to an unsigned primitive, which can produce an unexpected value if the value of the signed primitive can not be represented using an unsigned primitive.

It is dangerous to rely on implicit casts between signed and unsigned numbers because the result can take on an unexpected value and violate assumptions made by the program. Often, functions will return negative values to indicate a failure. When the result of a function is to be used as a size parameter, using these negative return values can have unexpected results. For example, if negative size values are passed to the standard memory copy or allocation functions they will be implicitly cast to a large unsigned value. This may lead to an exploitable buffer overflow or underflow condition.

Last updated: 20 August 2026 13:14 UTC

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • SA-11 Developer Testing and Evaluation
  • PR.PS-06
  • SA-8 Security and Privacy Engineering Principles
  • SA-15 Development Process, Standards, and Tools
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

NIST 800-53 r5 controls that address this weakness (0)AI-assisted

Control Title Family Why it addresses this CWE
No NIST controls proposed yet.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2022-43663 7.28.10.14042023-03-20
CVE-2011-3045 7.18.80.03562012-03-22
CVE-2020-6096 6.88.10.05352020-04-01
CVE-2026-49840 6.89.10.00312026-06-09
CVE-2016-6560 6.58.60.01682017-03-31
CVE-2025-49847 6.58.80.00442025-06-17
CVE-2020-1913 6.48.10.01202020-09-09
CVE-2024-25388 6.28.40.00322024-03-27
CVE-2025-52566 6.08.60.00322025-06-24
CVE-2025-65495 5.77.50.00242025-11-24
CVE-2026-55737 5.77.50.00292026-07-27
CVE-2023-33034 5.57.80.00112023-10-03
CVE-2023-5184 5.17.00.00392023-09-27
CVE-2026-269815.16.50.00522026-02-24
CVE-2025-30646 5.06.50.00242025-04-09
CVE-2023-3635 4.95.90.01252023-07-12
CVE-2023-28063 4.96.70.00162024-02-06
CVE-2026-559914.55.90.00242026-07-22
CVE-2025-67897 4.25.30.00352025-12-14
CVE-2025-24792 3.44.40.00132025-01-29