decimal の脆弱性
概要
decimal に 脆弱性 (CVE-2026-97853) が存在。不正な操作・情報露出のリスクがあります。対策: 3.1.2 以上に更新。
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
decimal という製品で、CVE-2026-97853 という番号がついた弱点 (脆弱性) が見つかりました。
不正な操作・情報露出のリスクがあります。
対策: decimal を 3.1.2 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「decimal CVE-2026-97853」を検索してください。
CVE-2026-97853 (decimal) — CWE-789
修正バージョン: 3.1.2 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
decimal に 脆弱性 (CWE-789) があります。
decimal の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: ?。不正な操作・情報露出のリスクがあります。
3.1.2 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'decimal' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
decimalを grep し、稼働しているサービス・バージョンを把握する。 -
2
パッチ適用patch
Upgrade decimal to 3.1.2ステージング環境で 3.1.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Hexdecimal |
0.1.0 以上 3.1.2 未満→ 3.1.2 |
3.1.2 |
| ericmjdecimal |
05bb73eb40ddef24eda782d905766f56a3660522 以上(修正版なし)→ 338f42c8cf6a9749ab70c5af04734c6050ca3dc6, 3c90af4c3c2dfa4bb4c138760a326dd0eb91822b |
338f42c8cf6a9749ab70c5af04734c6050ca3dc6, 3c90af4c3c2dfa4bb4c138760a326dd0eb91822b |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
Memory Allocation with Excessive Size Value vulnerability in ericmj decimal allows Denial of Service.
Decimal.round/3 builds the full result for the requested number of decimal places before the context precision (34 digits by default) is applied, so its cost grows with the places argument instead of with the size of the result. For positive places it appends places zero digits to the coefficient as a charlist before converting it to an integer, and for negative places it builds a charlist of -places zero digits. A single call such as Decimal.round(Decimal.new("1.5"), -50_000_000) allocates about 5.5 GB of memory, which can exhaust available memory and get the BEAM VM killed. The oldest releases instead loop once per decimal place, consuming CPU in proportion to places.
Any application that passes a user-supplied number of decimal places or scale to Decimal.round/2 or Decimal.round/3 without bounding it is exposed. The input limits added for CVE-2026-32686 do not cover the places argument.
This issue affects decimal: from 0.1.0 before 3.1.2.
Details
Decimal.round/3 sets the target exponent to -places and do_round/5 materializes the coefficient at that exponent; context/2 only applies the precision afterwards.
- Positive
places(introduced in 1.3.0 by commit 7a83d27):digits ++ Enum.map(1..(exp - target_exp), fn _ -> ?0 end)followed by:erlang.list_to_integer/1(lib/decimal.ex:2409in 3.1.1). The list is built before…
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package hex.pm
- package github.com
- patch github.com
- patch github.com
- web cna.erlef.org
- web github.com
- web osv.dev
- web github.com
- web repo.hex.pm