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 です。4 つの 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公開

GitHub_M が CVE レコードを公開。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。修正コミットへのリンクあり。アドバイザリの公開は 。修正版そのもののリリース日時は記録なし。

出典 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.