← Back
CVE-2019-13118
medium
CVSS 5.3
Vulnerability in nokogiri (CVE-2019-13118)
Summary
vulnerability in nokogiri (CVE-2019-13118). Confidential information can be exposed externally. Exploitable via ``numbers.c``. Mitigation: upgrade to `1.10.5` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2019-13118** has been found in nokogiri.
Attackers can target a specific entry point like ``numbers.c`` over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 5.3/10.
What to do: upgrade nokogiri to **1.10.5** or later.
If unsure, ask your IT team or search "nokogiri CVE-2019-13118" on the vendor's site.
CVE-2019-13118 (nokogiri) — CWE-843 / CVSS v3 5.3
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: `numbers.c` / `xsltNumberFormatDecimal`
Patched: `1.10.5` — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
❓ What is the problem
**A vulnerability** (CWE-843) exists in nokogiri. Attackers reach the vulnerable code path via ``numbers.c`` without authentication.
📍 Affected scope
nokogiri — . Attack surface: `numbers.c` / `xsltNumberFormatDecimal`.
🔥 Severity
Severity: Medium (CVSS 5.3/10). Confidential information can be exposed externally
🔧 How to fix
Update to **1.10.5**.
🛡️ Workaround
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r 'nokogiri' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'nokogiri' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `nokogiri` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade nokogiri to 1.10.5ステージング環境で 1.10.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
rubygems
nokogiri
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.5"}]}]
References
- advisory af854a3a-2127-422b-91ae-364da2661108
- advisory af854a3a-2127-422b-91ae-364da2661108
- advisory af854a3a-2127-422b-91ae-364da2661108
- advisory https://nvd.nist.gov/vuln/detail/CVE-2019-13118
- web http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00062.html
- web http://seclists.org/fulldisclosure/2019/Aug/11
- web http://seclists.org/fulldisclosure/2019/Aug/13
- web http://seclists.org/fulldisclosure/2019/Aug/14
- web http://seclists.org/fulldisclosure/2019/Aug/15
- web http://seclists.org/fulldisclosure/2019/Jul/22
- web http://seclists.org/fulldisclosure/2019/Jul/23
- web http://seclists.org/fulldisclosure/2019/Jul/24
- web http://seclists.org/fulldisclosure/2019/Jul/26
- web http://seclists.org/fulldisclosure/2019/Jul/31
- web http://seclists.org/fulldisclosure/2019/Jul/37
- web http://seclists.org/fulldisclosure/2019/Jul/38
- web http://www.openwall.com/lists/oss-security/2019/11/17/2
- web https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15069
- web https://gitlab.gnome.org/GNOME/libxslt/commit/6ce8de69330783977dd14f6569419489875fb71b
- web https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
- web https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- web https://lists.debian.org/debian-lts-announce/2019/07/msg00020.html
- web af854a3a-2127-422b-91ae-364da2661108
- web https://oss-fuzz.com/testcase-detail/5197371471822848
- web https://seclists.org/bugtraq/2019/Aug/21
- web https://seclists.org/bugtraq/2019/Aug/22
- web https://seclists.org/bugtraq/2019/Aug/23
- web https://seclists.org/bugtraq/2019/Aug/25
- web https://seclists.org/bugtraq/2019/Jul/35
- web https://seclists.org/bugtraq/2019/Jul/36
- web https://seclists.org/bugtraq/2019/Jul/37
- web https://seclists.org/bugtraq/2019/Jul/40
- web https://seclists.org/bugtraq/2019/Jul/41
- web https://seclists.org/bugtraq/2019/Jul/42
- web https://support.apple.com/kb/HT210346
- web https://support.apple.com/kb/HT210348
- web https://support.apple.com/kb/HT210351
- web https://support.apple.com/kb/HT210353
- web https://support.apple.com/kb/HT210356
- web https://support.apple.com/kb/HT210357
- web https://support.apple.com/kb/HT210358
- web https://www.oracle.com/security-alerts/cpujan2020.html
- web https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E
- web https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E
- web https://github.com/sparklemotion/nokogiri/issues/1943
- web https://github.com/sparklemotion/nokogiri/commit/43a175339b47b8c604508813fc75b83f13cd173e
- web https://github.com/sparklemotion/nokogiri/blob/f7aa3b0b29d6fe5fafe93dacd9b96b6b3d16b7ec/CHANGELOG.md?plain=1#L796
- web https://github.com/sparklemotion/nokogiri/releases/tag/v1.10.5
- web https://security.netapp.com/advisory/ntap-20190806-0004
- web https://security.netapp.com/advisory/ntap-20200122-0003
- web https://usn.ubuntu.com/4164-1
- web https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IOYJKXPQCUNBMMQJWYXOR6QRUJZHEDRZ
- web https://lists.fedoraproject.org/archives/list/[email protected]/message/IOYJKXPQCUNBMMQJWYXOR6QRUJZHEDRZ
- web https://github.com/advisories/GHSA-cf46-6xxh-pc75