nday
CVE-2026-97035

Unexpected code execution and arbitrary file write via Clang -gen-* and GCC -gnat* flags in cgo in cmd/go

Go toolchain / cmd/go

技术分析早于 CVE 记录发布 6 天出现。本站尚未获取修复依据,不能据此认为没有补丁。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 漏洞类型command injection 攻击途径网络无需认证
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

command injection
CWE-88(来源:编号分配方 Go、ADP CISA-ADP、NVD(转录自 134c704f-9b21-4f2e-91b3-4a467353bcc0))
网络
ADP CISA-ADP 给出的 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H(CVSS 3.1)中的 AV:N
无需认证
ADP CISA-ADP 给出的 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H(CVSS 3.1)中的 PR:N
当前阶段
ANA
披露
CVSS
8.8 HIGH v3.1

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
11-11T03:13Z
PAT补丁
尚无记录
ANA分析
11-05T22:27Z 等 2 条
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

When using Clang or GCC, building a malicious package that uses cgo could cause unexpected code execution at build time or write files to arbitrary directories via "-gen-*" or "-gnat*" flags in "#cgo" directives. The "-g*" wildcard in the compiler and linker flag allowlists previously matched Clang's two-argument "-gen-cdb-fragment-path <dir>" flag and GCC's two-argument "-gnatO <file>" flag, permitting compilation database fragments and sidecar output files to be written to arbitrary directories and desynchronizing flag argument parsing between the go command and the compiler driver so that subsequent arguments could be passed as unvalidated positional inputs to the linker. "-gen-*" and "-gnat*" flags are now disallowed in "#cgo" compiler and linker flags.

以上是 CVE 记录(cvelist)中的原文,未经改写。

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:N
网络:攻击者只要能通过网络访问到目标即可
攻击复杂度 AC:L
低:不依赖特殊条件,攻击者可预期重复成功
所需权限 PR:N
无:不需要账号或授权
用户交互 UI:R
需要:须有用户执行某个操作,例如打开文件或点击链接

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS 3.1 向量,来自 CVE 记录,由 ADP CISA-ADP 补充。

事件记录

+ANA技术分析

oss-security 邮件列表发帖:“Fwd: Go 1.27.4 and Go 1.26.11 pre-announcement”。

来源 osssec 2026/q4/532 · 本站 实时观测 · 原始记录
{
  "id": 496261,
  "type": "analysis_published",
  "source": "osssec",
  "url": "https://seclists.org/oss-sec/2026/q4/532",
  "occurred_at": "2026-11-05T22:27:23Z",
  "observed_at": "2026-11-20T08:13:28.642196Z",
  "is_backfill": false,
  "dedupe_key": "2026/q4/532",
  "detail": {
    "list": "oss-security",
    "author": "Alan Coopersmith",
    "subject": "Fwd: Go 1.27.4 and Go 1.26.11 pre-announcement",
    "is_reply": false
  }
}
+ANA技术分析

oss-security 邮件列表发帖:“Go 1.27.4 and Go 1.26.11 are released with 12 security fixes”。

来源 osssec 2026/q4/646 · 本站 实时观测 · 原始记录
{
  "id": 496397,
  "type": "analysis_published",
  "source": "osssec",
  "url": "https://seclists.org/oss-sec/2026/q4/646",
  "occurred_at": "2026-11-10T20:15:36Z",
  "observed_at": "2026-11-20T08:13:28.642196Z",
  "is_backfill": false,
  "dedupe_key": "2026/q4/646",
  "detail": {
    "list": "oss-security",
    "author": "Alan Coopersmith",
    "subject": "Go 1.27.4 and Go 1.26.11 are released with 12 security fixes",
    "is_reply": false
  }
}
+DIS披露

CVE 记录发布,编号分配方是 Go。CVSS 8.8,高危。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 16799,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-97035",
  "occurred_at": "2026-11-11T03:13:16.798Z",
  "observed_at": "2026-11-12T14:10:31.286634Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "adp:CISA-ADP",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "version": "3.1",
      "base_score": 8.8,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2026-11-16T00:00:00+00:00",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-11T03:13:16.798Z",
    "assigner_short_name": "Go"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

研究员讨论

近 7 天有 0 位研究员提到

研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。

尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。

讨论

0 条评论

还没有评论。