| Summary | Cpanel::JSON::XS versions before 4.41 for Perl allow denial of service via UTF-8 BOM prefixed input when a decode filter callback throws. To skip a leading 3-byte UTF-8 BOM, decode_json() advances the input scalar's string pointer past the mark with SvPV_set() and restores it only on the normal return path. When decoding aborts through a Perl exception, for example a filter_json_object callback that croaks, the restore is skipped and the scalar is left with its string pointer offset into its own buffer and a shortened length. When that scalar is later freed, the allocator receives an invalid pointer and the interpreter aborts. A single BOM prefixed document decoded with a throwing filter callback crashes any caller. |
|---|---|
| Publication Date | June 3, 2026, 10:16 a.m. |
| Registration Date | June 4, 2026, 4:16 a.m. |
| Last Update | June 6, 2026, 2:35 a.m. |
| CVSS3.1 : HIGH | |
| スコア | 7.5 |
|---|---|
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 低 |
| 攻撃に必要な特権レベル(PR) | 不要 |
| 利用者の関与(UI) | 不要 |
| 影響の想定範囲(S) | 変更なし |
| 機密性への影響(C) | なし |
| 完全性への影響(I) | なし |
| 可用性への影響(A) | 高 |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:rurban:cpanel\:\:json\:\:xs:*:*:*:*:*:perl:*:* | 4.41 | ||||
| Title | Reini UrbanのCpanel::JSON::XSにおける複数の脆弱性 |
|---|---|
| Summary | Perl用のCpanel::JSON::XSの4.41未満のバージョンでは、デコードフィルターのコールバックが例外をスローした際に、UTF-8 BOM付き入力によってサービス拒否が発生する可能性があります。decode_json()は、先頭の3バイトのUTF-8 BOMをスキップするためにSvPV_set()を使って入力スカラーの文字列ポインタをマークの先に進め、正常終了時にのみ元に戻します。しかし、例えばfilter_json_objectコールバックがcroakでデコードがPerlの例外を通じて中断された場合、その復元がスキップされ、スカラーは自身のバッファ内でオフセットされた文字列ポインタと短縮された長さのままの状態で残ります。その後、このスカラーが解放されると、アロケータは無効なポインタを受け取り、インタプリタが異常終了します。BOM付きドキュメントをスローするフィルターコールバックでデコードすると、呼び出し元は必ずクラッシュします。 |
| Possible impacts | ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| Solution | ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | June 3, 2026, midnight |
| Registration Date | June 8, 2026, 12:30 p.m. |
| Last Update | June 8, 2026, 12:30 p.m. |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年06月08日] 掲載 |
June 8, 2026, 12:30 p.m. |