← 戻る
CVE-2019-18197
high
CVSS 7.5
nokogiri に 解放後使用 (Use-After-Free) (CVE-2019-18197)
概要
nokogiri に 脆弱性 (CVE-2019-18197) が存在。悪用されるとシステム全体を乗っ取られる可能性があります。対策: `1.10.5` 以上に更新。
AI要約 snake-internal / snake-material-v2
nokogiri という製品で、CVE-2019-18197 という番号がついた弱点 (脆弱性) が見つかりました。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 7.5/10 です。
対策: nokogiri を **1.10.5** 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「nokogiri CVE-2019-18197」を検索してください。
CVE-2019-18197 (nokogiri) — CWE-416 / CVSS v3 7.5
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要
修正バージョン: `1.10.5` (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
❓ 何が問題か
nokogiri に **解放後使用 (use-after-free)** (CWE-416) があります。
📍 影響範囲
nokogiri のうち 。
🔥 重要度
重要度: 重要 (CVSS 7.5/10)。悪用されるとシステム全体を乗っ取られる可能性があります
🔧 修正方法
**1.10.5** に更新してください。
🛡️ 暫定回避
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
🔍 検知方法
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション (7段階)
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'nokogiri' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `nokogiri` を grep し、稼働しているサービス・バージョンを把握する。
-
6パッチ適用 patch
Upgrade nokogiri to 1.10.5ステージング環境で 1.10.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
影響パッケージ
rubygems
nokogiri
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.5"}]}]
参照URL
- advisory af854a3a-2127-422b-91ae-364da2661108
- advisory af854a3a-2127-422b-91ae-364da2661108
- advisory https://nvd.nist.gov/vuln/detail/CVE-2019-18197
- package https://github.com/sparklemotion/nokogiri
- web http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00010.html
- web http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00015.html
- web http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00025.html
- web http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00062.html
- web http://www.openwall.com/lists/oss-security/2019/11/17/2
- web https://access.redhat.com/errata/RHSA-2020:0514
- web https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15746
- web https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15768
- web https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15914
- web https://gitlab.gnome.org/GNOME/libxslt/commit/2232473733b7313d67de8836ea3b29eec6e8e285
- web https://lists.debian.org/debian-lts-announce/2019/10/msg00037.html
- web af854a3a-2127-422b-91ae-364da2661108
- web https://www.oracle.com/security-alerts/cpuapr2020.html
- web https://github.com/sparklemotion/nokogiri/issues/1943
- web https://github.com/sparklemotion/nokogiri/blob/01ab95f3e37429ed8d3b380a8d2f73902eb325d9/CHANGELOG.md?plain=1#L934
- web https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2019-18197.yml
- web https://security.netapp.com/advisory/ntap-20191031-0004
- web https://security.netapp.com/advisory/ntap-20200416-0004
- web https://usn.ubuntu.com/4164-1
- web https://github.com/advisories/GHSA-242x-7cm6-4w8j