Security Resilience

CWE · MITRE source

CWE-195Signed to Unsigned Conversion Error

Abstraction: Variant · CVEs in our corpus: 32

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: 15 October 2026 14:21 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 PROPOSED for this weakness (0)AI-assisted

These are model PROPOSALS, not graded mappings. They come from controls_to_cwe_proposals, which carries no grade field at all; across the CWE pages 1,540 of 1,722 such associations (89%) have never been graded by anything. The heading said “address” until 2026-09-29, which asserted a relationship the data does not carry. Graded cross-walks are on the framework map, not here.

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.03532012-03-22
CVE-2026-49840 6.99.10.00492026-06-09
CVE-2020-6096 6.88.10.05482020-04-01
CVE-2025-49847 6.68.80.00522025-06-17
CVE-2016-6560 6.58.60.01682017-03-31
CVE-2020-1913 6.48.10.01202020-09-09
CVE-2024-25388 6.28.40.00332024-03-27
CVE-2026-742206.28.20.00342026-09-29
CVE-2026-742216.28.20.00342026-09-29
CVE-2025-52566 6.08.60.00362025-06-24
CVE-2026-85441 5.97.50.00662026-09-03
CVE-2026-17507 5.87.50.00342026-10-02
CVE-2025-65495 5.77.50.00242025-11-24
CVE-2026-55737 5.77.50.00292026-07-27
CVE-2023-33034 5.57.80.00122023-10-03
CVE-2023-5184 5.17.00.00422023-09-27
CVE-2026-269815.16.50.00512026-02-24
CVE-2025-30646 5.06.50.00242025-04-09
CVE-2026-202485.06.80.00342026-09-16
CVE-2026-1026395.06.50.00322026-09-29
CVE-2026-1019375.06.50.00272026-10-14
CVE-2023-3635 4.95.90.01252023-07-12
CVE-2023-28063 4.96.70.00162024-02-06
CVE-2026-18444 4.86.60.00132026-08-25