ProxySQLに認証済みクライアントが情報を取得できる脆弱性、修正版で対応
Summary
ProxySQLで、圧縮されたMySQLパケットの展開処理に未初期化のメモリを読んでしまう脆弱性が見つかりました。認証済みのクライアントが、バックエンドのエラー応答を通じて過去のSQLクエリや結果データ、認証情報などの一部を取得できるおそれがあります。影響を受けるのは3.0.10、3.1.10、4.0.10より前の版で、修正版として3.0.10、3.1.10、4.0.10が公開されています。速やかに修正版へ更新してください。
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.
ProxySQLで、圧縮されたMySQLパケットの展開処理に未初期化のメモリを読んでしまう脆弱性が見つかりました。認証済みのクライアントが、バックエンドのエラー応答を通じて過去のSQLクエリや結果データ、認証情報などの一部を取得できるおそれがあります。影響を受けるのは3.0.10、3.1.10、4.0.10より前の版で、修正版として3.0.10、3.1.10、4.0.10が公開されています。速やかに修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sysownproxysql | — | Not listed |
| Bitnamiproxysql |
< 3.0.10→ 3.0.10 ≥ 3.1.0, < 3.1.10→ 3.1.10 ≥ 4.0.0, < 4.0.10→ 4.0.10 |
3.0.10 3.1.10 4.0.10 |
Original description The description as published by the source.
ProxySQL is a proxy for MySQL and its forks, as well as PostgreSQL. Prior to 3.0.10, 3.1.10, and 4.0.10, decompress_mysql_payload() in lib/mysql_data_stream.cpp accepts a zlib stream when uncompress() returns Z_OK without checking that the actual output length equals the attacker-controlled payload_length. An authenticated MySQL client that negotiates compression can overstate payload_length, causing buffer2array() to parse the uninitialized tail of a heap buffer as MySQL packet headers and forward stale data to the backend. Backend error responses can disclose prior SQL queries, result data, credentials, or session state, and malformed lengths can also cause excessive allocations. This issue is fixed in versions 3.0.10, 3.1.10, and 4.0.10.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com