CVE-2003-1092 (CNNVD-200312-187)

HIGH 有利用代码
中文标题:
file工具本地缓冲区溢出漏洞
英文标题:
Unknown vulnerability in the "Automatic File Content Type Recognition (AFCTR) Tool version of the fi...
CVSS分数: 7.5
发布时间: 2005-03-10 05:00:00
漏洞类型: 授权问题
状态: PUBLISHED
数据质量分数: 0.40
数据版本: v4
漏洞描述
中文描述:

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类型:
(暂无数据)
标签:
local linux CrZ OSVDB-14743
受影响产品
厂商 产品 版本 版本范围 平台 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:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
file-afctr-memory-allocation(11488) vdb-entry
cve.org
访问
7009 vdb-entry
cve.org
访问
VU#100937 third-party-advisory
cve.org
访问
OpenPKG-SA-2003.017 vendor-advisory
cve.org
访问
ExploitDB EDB-22326 EXPLOIT
exploitdb
访问
Download Exploit EDB-22326 EXPLOIT
exploitdb
访问
CVE Reference: CVE-2003-1092 ADVISORY
cve.org
访问
CVSS评分详情
7.5
HIGH
CVSS向量: AV:N/AC:L/Au:N/C:P/I:P/A:P
CVSS版本: 2.0
机密性
PARTIAL
完整性
PARTIAL
可用性
PARTIAL
时间信息
发布时间:
2005-03-10 05:00:00
修改时间:
2024-08-08 02:12:36
创建时间:
2025-11-11 15:32:19
更新时间:
2026-01-26 02:16:47
利用信息
此漏洞有可利用代码!
利用代码数量: 1
利用来源:
未知
数据源详情
数据源 记录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
版本与语言
当前版本: v4
主要语言: EN
支持语言:
EN ZH
其他标识符:
:
:
安全公告
暂无安全公告信息
变更历史
v4 EXPLOITDB
2025-11-11 16:17:08
references_count: 4 → 7; tags_count: 0 → 4; data_sources: ['cnnvd', 'cve', 'nvd'] → ['cnnvd', 'cve', 'exploitdb', 'nvd']
查看详细变更
  • references_count: 4 -> 7
  • tags_count: 0 -> 4
  • data_sources: ['cnnvd', 'cve', 'nvd'] -> ['cnnvd', 'cve', 'exploitdb', 'nvd']
v3 CNNVD
2025-11-11 15:48:52
vulnerability_type: 未提取 → 授权问题; cnnvd_id: 未提取 → CNNVD-200312-187; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 授权问题
  • cnnvd_id: 未提取 -> CNNVD-200312-187
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:41:06
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']
查看详细变更
  • 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']