Chi tiết CWE-1287

CWE-1287

Improper Validation of Specified Type of Input
2020-02-24
00h00 +00:00
Incomplete
2026-10-28
00h00 +00:00
Thông báo cho một CWE
Luôn được thông báo về mọi thay đổi đối với một CWE cụ thể.
Quản lý thông báo

Tên: Improper Validation of Specified Type of Input

The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.

Thông tin chung

Các cách xuất hiện

Implementation : This weakness can appear in type-unsafe programming languages, or in programming languages that support casting or conversion of an input to another type. If the application itself infers a "type" of input without directly using the types as defined in the language, then this weakness could occur regardless of the programming language.

Nền tảng áp dụng

Ngôn ngữ

Lớp: Not Language-Specific (Often)

Hậu quả phổ biến

Phạm vi Tác động Khả năng xảy ra
OtherVaries by Context

Ghi chú: When input does not comply with the expected type, attackers could trigger unexpected errors, cause incorrect actions to take place, or exploit latent vulnerabilities that would not be possible if the input conformed with the expected type.

Ví dụ đã quan sát

Tài liệu tham khảo Mô tả

CVE-2024-37032

Large language model (LLM) management tool does not validate the format of a digest value (CWE-1287) from a private, untrusted model registry, enabling relative path traversal (CWE-23), a.k.a. Probllama

CVE-2008-2223

SQL injection through an ID that was supposed to be numeric.

Các biện pháp giảm thiểu tiềm năng

Phases : Implementation

Ghi chú ánh xạ lỗ hổng

Lý do : This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Bình luận : Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.

Ghi chú

This entry is still under development and will continue to see updates and content improvements.

Gửi

Tên Tổ chức Ngày Ngày phát hành Version
CWE Content Team MITRE 2020-06-24 +00:00 2020-02-24 +00:00 4.1

Sửa đổi

Tên Tổ chức Ngày Bình luận
CWE Content Team MITRE 2023-04-27 +00:00 updated Relationships
CWE Content Team MITRE 2023-06-29 +00:00 updated Mapping_Notes
CWE Content Team MITRE 2024-07-16 +00:00 updated Observed_Examples
CWE Content Team MITRE 2025-12-11 +00:00 updated Weakness_Ordinalities
CWE Content Team MITRE 2026-10-28 +00:00 updated Common_Consequences, Description, Dimensions, Modes_of_Introduction