Skip to content
High 7.2

PostgreSQLの拡張機能スクリプトにSQLインジェクションの脆弱性、任意のコードを実行されるおそれ

CVE-2026-120153 First seen on SecPulse

Summary

PostgreSQLの拡張機能スクリプトの置換処理に、SQLインジェクションの脆弱性が見つかりました。データベースでCREATE権限を持つ攻撃者が、スキーマ名や所有者名に特殊な文字列を含めることで、ブートストラップのスーパーユーザーとして任意のコードを実行できるおそれがあります。18.7、17.12、16.16、15.20、14.25より前の版が影響を受けるため、これらの修正版への更新をおすすめします。

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.

PostgreSQLの拡張機能スクリプトの置換処理に、SQLインジェクションの脆弱性が見つかりました。データベースでCREATE権限を持つ攻撃者が、スキーマ名や所有者名に特殊な文字列を含めることで、ブートストラップのスーパーユーザーとして任意のコードを実行できるおそれがあります。18.7、17.12、16.16、15.20、14.25より前の版が影響を受けるため、これらの修正版への更新をおすすめします。

Affected packages

PackageAffected → Fixed
CVE の記録PostgreSQL
≥ 18, < 18.7→ 18.7
≥ 17, < 17.12→ 17.12
≥ 16, < 16.16→ 16.16
≥ 15, < 15.20→ 15.20
< 14.25→ 14.25
Bitnamipostgresql
< 14.25.0→ 14.25.0
≥ 15.0.0, < 15.20.0→ 15.20.0
≥ 16.0.0, < 16.16.0→ 16.16.0
≥ 17.0.0, < 17.12.0→ 17.12.0
≥ 18.0.0, < 18.7.0→ 18.7.0

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

SQL injection in PostgreSQL extension-script substitutions allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser, via a schema or owner name containing newlines or other special substrings. This is similar to CVE-2023-39417, but it requires a non-bundled extension with a vulnerable script pattern. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

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