svg-sanitizerに、細工したSVGで処理を遅延させる脆弱性
Summary
svg-sanitizerの0.5.3以上1.1.0未満に、サービス拒否(DoS)の脆弱性が見つかりました。認証なしでSVGファイルをアップロードされると、PHPタグの処理が繰り返し走り、ワーカーのCPUが数分間占有されるおそれがあります。修正版の1.1.0が公開されているので、このバージョンへの更新をおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
svg-sanitizerの0.5.3以上1.1.0未満に、サービス拒否(DoS)の脆弱性が見つかりました。認証なしでSVGファイルをアップロードされると、PHPタグの処理が繰り返し走り、ワーカーのCPUが数分間占有されるおそれがあります。修正版の1.1.0が公開されているので、このバージョンへの更新をおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| darylldoylesvg-sanitizer |
≥ 0.5.3, < 1.1.0→ 1.1.0 |
1.1.0 |
Original description The description as published by the source.
svg-sanitizer from 0.5.3 before 1.1.0 contains a denial of service vulnerability in Sanitizer::sanitize() that repeatedly rescans the whole input while stripping PHP tags. Unauthenticated attackers can upload SVGs with many overlapping PHP tag openers and closers, forcing quadratic preg_replace passes that exhaust worker CPU for minutes.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- web github.com