CVE-2003-1092 (CNNVD-200312-187)
中文标题:
file工具本地缓冲区溢出漏洞
英文标题:
Unknown vulnerability in the "Automatic File Content Type Recognition (AFCTR) Tool version of the fi...
漏洞描述
中文描述:
file(1)是一款查看文件类型的工具。 file(1)命令存在一个缓冲区溢出漏洞,本地攻击者可以利用这个漏洞以执行用户权限在系统上执行任意指令。 问题存在于readelf.c中的587行tryelf()函数的doshn()调用中: doshn(class, swap, fd, getu32(swap, elfhdr.e_shoff), getu16(swap, elfhdr.e_shnum), getu16(swap, elfhdr.e_shentsize)); doshn() 'elfhdr.e_shentsize'最后一个参数将在之后用于readelf.c 133行的read()函数中: if (read(fd, sh_addr, size) == -1) read()调用会拷贝'size'字节到readelf.c 92行定义的'sh_addr'变量中: #define sh_addr (class == ELFCLASS32 \ ? (void *) &sh32 \ : (void *) &sh64) 用于read()函数的缓冲区大小只有0x20 (32)字节,通过提供0x28 (40)字节的'size'参数可导致覆盖堆栈中的EBP和EIP寄存器而以其他用户权限执行任意代码。 用户可以构建恶意文件诱使其他用户来分析,导致发生缓冲区溢出,而以执行用户权限执行任意指令。
英文描述:
Unknown vulnerability in the "Automatic File Content Type Recognition (AFCTR) Tool version of the file package before 3.41, related to "a memory allocation problem," has unknown impact.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| christos_zoulas | file_1 | 3.28 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.28:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.30 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.30:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.32 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.32:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.33 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.33:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.34 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.34:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.35 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.35:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.36 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.36:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.37 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.37:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.39 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.39:*:*:*:*:*:*:*
|
| christos_zoulas | file_1 | 3.40 | - | - |
cpe:2.3:a:christos_zoulas:file_1:3.40:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
exploitdb
exploitdb
cve.org
CVSS评分详情
AV:N/AC:L/Au:N/C:P/I:P/A:P
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2003-1092 |
2025-11-11 15:17:27 | 2025-11-11 07:32:19 |
| NVD | nvd_CVE-2003-1092 |
2025-11-11 14:50:37 | 2025-11-11 07:41:06 |
| CNNVD | cnnvd_CNNVD-200312-187 |
2025-11-11 15:08:42 | 2025-11-11 07:48:52 |
| EXPLOITDB | exploitdb_EDB-22326 |
2025-11-11 15:05:25 | 2025-11-11 08:17:08 |
版本与语言
安全公告
变更历史
查看详细变更
- references_count: 4 -> 7
- tags_count: 0 -> 4
- data_sources: ['cnnvd', 'cve', 'nvd'] -> ['cnnvd', 'cve', 'exploitdb', 'nvd']
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200312-187
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- severity: SeverityLevel.MEDIUM -> SeverityLevel.HIGH
- cvss_score: 未提取 -> 7.5
- cvss_vector: NOT_EXTRACTED -> AV:N/AC:L/Au:N/C:P/I:P/A:P
- cvss_version: NOT_EXTRACTED -> 2.0
- affected_products_count: 0 -> 10
- data_sources: ['cve'] -> ['cve', 'nvd']