CVE-2002-0844 (CNNVD-200208-120)
中文标题:
CVS Daemon RCS本地单字节缓冲区溢出漏洞
英文标题:
Off-by-one overflow in the CVS PreservePermissions of rcs.c for CVSD before 1.11.2 allows local user...
漏洞描述
中文描述:
CVS是一款免费开放源代码的版本控制系统,可使用在多种Linux和Unix操作系统下,也可以运行于Microsoft Windows操作系统。 CVS中的rcs.c代码中对缓冲区边界缺少正确充分的检查,可导致本地攻击者以cvs进程的权限在系统中执行任意代码。 cvs-1.11/src/rcs.c代码中的sscanf()实现存在典型的单字节缓冲区溢出漏洞,攻击者可以利用堆栈中的帧指针覆盖而以cvs进程的权限执行任意代码,由于info->data的数据由本地符号连接文件中获得,所以此漏洞只能本地进行利用。 问题代码如下所示: cvs-1.11/src/rcs.c: info = findnode (vers->other_delta, "special"); if (info != NULL) { /* If the size of `devtype' changes, fix the sscanf call also */ char devtype[16]; <-- 16字节 if (sscanf (info->data, "%16s %lu", <-- 应该为15,为不是16,导致单字节缓冲溢出 devtype, &devnum_long) < 2) error (1, 0, "%s:%s has bad `special' newphrase %s", workfile, vers->version, info->data); devnum = devnum_long; if (STREQ (devtype, "character")) special_file = S_IFCHR; else if (STREQ (devtype, "block")) special_file = S_IFBLK; else error (0, 0, "%s is a special file of unsupported type `%s'", workfile, info->data); } }
英文描述:
Off-by-one overflow in the CVS PreservePermissions of rcs.c for CVSD before 1.11.2 allows local users to execute arbitrary code.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| distrotech | cvs | * | - | - |
cpe:2.3:a:distrotech:cvs:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2002-0844 |
2025-11-11 15:17:24 | 2025-11-11 07:32:16 |
| NVD | nvd_CVE-2002-0844 |
2025-11-11 14:50:27 | 2025-11-11 07:41:02 |
| CNNVD | cnnvd_CNNVD-200208-120 |
2025-11-11 15:08:41 | 2025-11-11 07:48:48 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200208-120
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- severity: SeverityLevel.MEDIUM -> SeverityLevel.HIGH
- cvss_score: 未提取 -> 7.8
- cvss_vector: NOT_EXTRACTED -> CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- cvss_version: NOT_EXTRACTED -> 3.1
- affected_products_count: 0 -> 1
- data_sources: ['cve'] -> ['cve', 'nvd']