Common Weakness Enumeration

CWE-741

Grouping Prohibited

CERT C Secure Coding Standard (2008) Chapter 8 - Characters and Strings (STR)

Status: Obsolete

Weaknesses in this category are related to the rules and recommendations in the Characters and Strings (STR) chapter of the CERT C Secure Coding Standard (2008).

Grouping entries organize the catalogue and should not be used to map the root cause of a vulnerability.

Mapping guidance

This entry is a Grouping. Using groupings for mapping has been discouraged since 2019. They are informal organizational groupings of weaknesses that can help CWE users with data aggregation, navigation, and browsing. However, they are not weaknesses in themselves.

See member weaknesses of this category.

Relationships and members
Has Member: CWE-119 · View CWE-734
Has Member: CWE-120 · View CWE-734
Has Member: CWE-135 · View CWE-734
Has Member: CWE-170 · View CWE-734
Has Member: CWE-193 · View CWE-734
Has Member: CWE-464 · View CWE-734
Has Member: CWE-686 · View CWE-734
Has Member: CWE-704 · View CWE-734
Has Member: CWE-78 · View CWE-734
Has Member: CWE-88 · View CWE-734
Notes

Relationship

In the 2008 version of the CERT C Secure Coding standard, the following rules were mapped to the following CWE IDs:

CWE-78 STR02-C Sanitize data passed to complex subsystems

CWE-88 STR02-C Sanitize data passed to complex subsystems

CWE-119 STR31-C Guarantee that storage for strings has sufficient space for character data and the null terminator

CWE-119 STR32-C Null-terminate byte strings as required

CWE-119 STR33-C Size wide character strings correctly

CWE-120 STR35-C Do not copy data from an unbounded source to a fixed-length array

CWE-135 STR33-C Size wide character strings correctly

CWE-170 STR03-C Do not inadvertently truncate a null-terminated byte string

CWE-170 STR32-C Null-terminate byte strings as required

CWE-193 STR31-C Guarantee that storage for strings has sufficient space for character data and the null terminator

CWE-464 STR03-C Do not inadvertently truncate a null-terminated byte string

CWE-464 STR06-C Do not assume that strtok() leaves the parse string unchanged

CWE-686 STR37-C Arguments to character handling functions must be representable as an unsigned char

CWE-704 STR34-C Cast characters to unsigned types before converting to larger integer sizes

CWE-704 STR37-C Arguments to character handling functions must be representable as an unsigned char

Content history
Submission: CWE Content Team · MITRE · 2008-11-24 · CWE 1.1
Modification: CWE Content Team · MITRE · 2017-11-08 · CWE 3.0

updated Description, Name, Relationship_Notes

Modification: CWE Content Team · MITRE · 2019-01-03 · CWE 3.2

updated Description, Name, References

Modification: CWE Content Team · MITRE · 2023-04-27 · CWE 4.11

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2023-06-29 · CWE 4.12

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2026-10-28 · CWE 5.0

updated Mapping_Notes, Type

0 vulnerabilities reference this CWE, most recent first.

No vulnerabilities reference this CWE.

No mitigation information available for this CWE.

No CAPEC attack patterns related to this CWE.