nday
CVE-2026-126064 GHSA-3w22-6jfg-527w

Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Node#[]=` or `#lang=`

sparklemotion / nokogiri

披露于 。已有补丁记录,修复版本是 nokogiri 1.19.5。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 漏洞类型use-after-free 攻击途径本地无需用户交互 软件包生态RubyGems
这些标签的依据

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

use-after-free
CWE-416(来源:编号分配方 GitHub_M、NVD(转录自 [email protected])、GitHub 公告 GHSA-3w22-6jfg-527w)
本地
编号分配方 GitHub_M 给出的 CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N(CVSS 4.0)中的 AV:L
无需用户交互
编号分配方 GitHub_M 给出的 CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N(CVSS 4.0)中的 UI:N
RubyGems
GHSA-3w22-6jfg-527w:rubygems 包 nokogiri
当前阶段
PAT
披露
CVSS
2.0 LOW v4.0

生命周期

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

摘要

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.5, the CRuby native extension can leave Ruby wrappers pointing to freed memory when Nokogiri::XML::Node#[]= or Nokogiri::XML::Node#lang= replaces an existing attribute value after code has accessed the attribute's child nodes. Replacing the value frees native child nodes while their wrappers remain reachable, and later use of those wrappers can cause an invalid read or process segfault. JRuby is not affected. This issue is fixed in version 1.19.5.

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

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:L
本地:需要本地或 SSH 会话,或诱使用户在本机上操作
攻击复杂度 AC:H
高:须规避或绕过 ASLR、DEP 等安全防护,或须获取目标特有的机密信息
攻击前提 AT:P
有:依赖特定的部署或运行条件,例如竞态条件、非默认配置或处于网络路径中间
所需权限 PR:L
低:普通用户权限
用户交互 UI:N
无:除攻击者外不需要任何人配合

CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 4.0 向量,来自 CVE 记录,由 CNA GitHub_M 评定。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 GitHub_M。CVSS 2,低危。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 8491,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-126064",
  "occurred_at": "2026-11-10T20:17:13.658Z",
  "observed_at": "2026-11-12T14:10:31.286634Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
      "version": "4.0",
      "base_score": 2,
      "base_severity": "LOW"
    },
    "ssvc": {
      "timestamp": "2026-11-10T20:57:22.881835Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-10T20:17:13.658Z",
    "assigner_short_name": "GitHub_M"
  }
}
时间未知来源未给出时间
+PAT补丁发布

公告给出修复版本 nokogiri 1.19.5。公告附有修复提交。公告本身发布于 ,补丁实际发布时间没有记录。

来源 ghsa GHSA-3w22-6jfg-527w · 本站 批量导入 · 原始记录
{
  "id": 18874,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-3w22-6jfg-527w",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:03:36.174798Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-3w22-6jfg-527w",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 0.0,
        "vector_string": null
      },
      "cvss_v4": {
        "score": 2.0,
        "vector_string": "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
      }
    },
    "cwes": [
      {
        "name": "Use After Free",
        "cwe_id": "CWE-416"
      }
    ],
    "ghsa_id": "GHSA-3w22-6jfg-527w",
    "packages": [
      {
        "name": "nokogiri",
        "ecosystem": "rubygems",
        "first_patched_version": "1.19.5",
        "vulnerable_version_range": "< 1.19.5"
      }
    ],
    "severity": "low",
    "references": [
      "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-3w22-6jfg-527w",
      "https://github.com/sparklemotion/nokogiri/pull/3752",
      "https://github.com/sparklemotion/nokogiri/commit/b15b518db9fd15fd6b046f73d1439c282e5cc425",
      "https://github.com/sparklemotion/nokogiri/commit/feaed3c8c9bd9d81d064d4ca09b16044cd705d6f",
      "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-3w22-6jfg-527w.yml",
      "https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5",
      "https://github.com/advisories/GHSA-3w22-6jfg-527w"
    ],
    "fix_commit_urls": [
      "https://github.com/sparklemotion/nokogiri/pull/3752",
      "https://github.com/sparklemotion/nokogiri/commit/b15b518db9fd15fd6b046f73d1439c282e5cc425",
      "https://github.com/sparklemotion/nokogiri/commit/feaed3c8c9bd9d81d064d4ca09b16044cd705d6f"
    ],
    "github_reviewed_at": "2026-11-10T20:51:19Z",
    "advisory_updated_at": "2026-11-10T20:51:29Z",
    "source_code_location": "https://github.com/sparklemotion/nokogiri",
    "advisory_published_at": "2026-11-10T20:51:19Z"
  }
}

纠错

报告错误或缺失

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

研究员讨论

近 7 天有 0 位研究员提到

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

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

讨论

0 条评论

还没有评论。