GHSA-xq52-rv6w-397c · 深刻度: medium · エコシステム: rubygems — Directive injection when using dynamic overrides with user input
In Secure Headers (RubyGem secure_headers), a directive injection vulnerability is present in versions before 3.8.0, 5.1.0, and 6.2.0. If user-supplied input was passed into append/override_content_security_policy_directives, a semicolon could be injected leading to directive injection. This could be used to e.g. override a script-src directive. Duplicate directives are ignored and the first one wins. The directives in secure_headers are sorted alphabetically so they pretty much all come before script-src. A previously undefined directive would receive a value even if SecureHeaders::OPT_OUT was supplied. The fixed versions will silently convert the semicolons to spaces and emit a deprecation warning when this happens. This will result in innocuous browser console messages if being exploited/accidentally used. In future releases, we will raise application errors resulting in 500s. Depending on what major version you are using, the fixed versions are 6.2.0, 5.1.0, 3.8.0.
総合評価: CVE-2020-5217 は悪用リスクが高い(60.4/100)。CVSS 深刻度は中。悪用される可能性が高い(EPSS 1.81%、76 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 直近 1 日で EPSS が +1.29% 上昇。悪用への関心が高まっている可能性があります。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.52% | 1.81% | +1.29% |
| 2 | 2025-11-21 | 0.40% | 0.52% | +0.12% |
| 3 | 2025-11-18 | — | 0.40% | — |
EPSS の全履歴 (全 13 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 4.4 | 3.1 | MEDIUM |
|
1.3 | 2.7 | [email protected] |
| 5.8 | 3.1 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
| 5.0 | 2.0 | MEDIUM |
|
10.0 | 2.9 | [email protected] |
GHSA-xq52-rv6w-397c · 深刻度: medium · エコシステム: rubygems — Directive injection when using dynamic overrides with user input
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2020-5217 not yet assigned priority: Debian including 1 source packages (ruby-secure-headers), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2020-5217 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2020-5217 |
ubuntu
|
medium | CVE-2020-5217 medium priority: Ubuntu including 1 source packages (ruby-secure-headers), 17 status rows across 17 suites (bionic, eoan, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 11, needs-triage 3, DNE 2, ignored 1. | https://ubuntu.com/security/CVE-2020-5217 |
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| secure_headers | < 3.8.0 | cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* | |
| secure_headers | >= 5.0.0, < 5.1.0 | cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* | |
| secure_headers | >= 6.0.0, < 6.2.0 | cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* |
| URL | タグ |
|---|---|
| https://github.com/twitter/secure_headers/commit/936a160e3e9659737a9f9eafce13eea36b5c9fa3 | Patch |
| https://github.com/twitter/secure_headers/issues/418 | Exploit Third Party Advisory |
| https://github.com/twitter/secure_headers/pull/421 | Third Party Advisory |
| https://github.com/twitter/secure_headers/security/advisories/GHSA-xq52-rv6w-397c | Mitigation Third Party Advisory |