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。

tags weakness typeuse-after-free accesslocalno user interaction ecosystemRubyGems
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

use-after-free
CWE-416, stated by the CNA GitHub_M、NVD, republishing [email protected] 與 GitHub advisory GHSA-3w22-6jfg-527w
local
AV:L in 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) from the CNA GitHub_M
no user interaction
UI:N in 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) from the CNA GitHub_M
RubyGems
GHSA-3w22-6jfg-527w: rubygems packages 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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:L
Local: needs a local or SSH session, or a user tricked into acting on the machine
Attack complexity AC:H
High: the attacker must evade or get around security measures such as ASLR or DEP, or obtain target-specific secrets
Attack requirements AT:P
Present: success depends on specific deployment or execution conditions, such as a race condition, a non-default setting or a position on the network path
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

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 vector from the CVE record, scored by the CNA GitHub_M.

事件紀錄

+DIS揭露

CVE 紀錄由 GitHub_M 發布。CVSS 2,屬低風險等級。

來源 cvelist · nday 於 批次匯入 · 原始
{
  "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。公告附有修補 commit。公告發布於 ;修補本身的釋出時間沒有紀錄。

來源 ghsa GHSA-3w22-6jfg-527w · nday 於 批次匯入 · 原始
{
  "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"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

研究員討論

近 7 天有 0 位研究員提及

名單內研究員在 X 上提及此 CVE 的貼文,照原文呈現,nday 不查核。

尚未收錄名單內研究員在 X 上提及此 CVE 的貼文。

Discussion

0 comments

No comments yet.