Skip to content
High 8.1

pRESTに認証不要で任意のSQLを実行される脆弱性、2.4.0で修正

CVE-2026-104129 First seen on SecPulse

Summary

pRESTの_groupbyパラメーターでSQLインジェクションの脆弱性が見つかり、遠隔からSQLの構造を操作できるおそれがあります。影響を受けるのは2.4.0より前のバージョンで、2.4.0で修正されています。初期設定では認証なしで悪用されるおそれがあるため、早めに2.4.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.

pRESTの_groupbyパラメーターでSQLインジェクションの脆弱性が見つかり、遠隔からSQLの構造を操作できるおそれがあります。影響を受けるのは2.4.0より前のバージョンで、2.4.0で修正されています。初期設定では認証なしで悪用されるおそれがあるため、早めに2.4.0以降へ更新してください。

Affected packages

PackageAffected → Fixed
prestprest —
Gogithub.com/prest/prest
≤ 1.5.5→ Not listed
Gogithub.com/prest/prest/v2
< 2.4.0→ 2.4.0
Original description The description as published by the source.

pREST (PostgreSQL REST) is an API that delivers an application on top of a Postgres database. Prior to 2.4.0, the vulnerable parameter is _groupby, handled by GroupByClause in adapters/postgres/postgres.go. adapters/postgres/postgres.go uses the weaker isSafeSQLExpression check for this function-expression branch instead of the stricter single-field validator used for select. That check validates only the outer function name against a 13-function allowlist and permits nested subqueries, trailing UNION syntax, and inner pg functions. controllers/crud.go concatenates the GROUP BY expression while parameterizing only WHERE values, allowing attacker-controlled SQL structure into the clause. Default configuration permits unauthenticated access; a restricted installation may require a low-privilege table reader. UNION-based extraction requires compatible column counts and types and was not verified end to end, but a delay-producing function can cause denial of service without that alignment. This issue is fixed in 2.4.0.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details