Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-12050— pgAdmin 4: SQL injection in named restore point endpoint

Quick assessment

Affected
pgadmin.org pgAdmin 4
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pgadmin 4是pgAdmin组织开源的一款数据库管理工具。 pgAdmin 4 1.0版本至9.16之前版本存在SQL注入漏洞,该漏洞源于命名还原点端点中用户提供的‘value’字段通过str.format()直接插入SQL字符串,未作为绑定参数传递,可能导致已认证用户通过该端点注入额外SQL语句。

CVSS 4.3 · Medium EPSS 0.43% · P35

Affected Version Matrix 1

VendorProduct Version RangeStatus
pgadmin.org pgAdmin 4 1.0< 9.16 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-12050

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
pgAdmin 4: SQL injection in named restore point endpoint
Source: CVE Program / CVE List V5
Vulnerability Description
SQL injection in pgAdmin 4's named restore point endpoint (POST /browser/server/restore_point/{gid}/{sid}). The user-supplied 'value' field was interpolated directly into the SQL string with str.format() instead of being passed as a bound parameter, allowing an authenticated pgAdmin user with a connected PostgreSQL session to inject additional statements through that endpoint. The injected SQL executes under the database role the user is already authenticated as. The defect does not cross a privilege boundary -- the user already has direct SQL access to that role through the Query Tool -- so the attacker gains no capability beyond what their database role already grants them. The marginal impact accounts for the fact that the injection path is not the documented SQL-execution interface, so a deployment that gates the Query Tool at the application layer could see SQL executed through a path it did not anticipate. Fix passes the restore point name as a bound parameter and schema-qualifies the function call as pg_catalog.pg_create_restore_point so a non-default search_path on the connection cannot redirect the call to a shadow definition. A regression test asserts the value arrives as a bound parameter and not spliced into the SQL string. This issue affects pgAdmin 4: from 1.0 before 9.16.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
pgadmin 4 SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
pgadmin 4是pgAdmin组织开源的一款数据库管理工具。 pgAdmin 4 1.0版本至9.16之前版本存在SQL注入漏洞,该漏洞源于命名还原点端点中用户提供的‘value’字段通过str.format()直接插入SQL字符串,未作为绑定参数传递,可能导致已认证用户通过该端点注入额外SQL语句。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
pgadmin.org pgAdmin 4 1.0 ~ 9.16 -

II. Public POCs for CVE-2026-12050

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-12050

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-12050 (1)

Same Patch Batch · pgadmin.org · 2026-06-18 · 7 CVEs total

CVE-2026-12048 9.3 CRITICAL pgAdmin 4: Stored XSS via untrusted error and plan-node text rendered through html-react-p
CVE-2026-12045 9.0 CRITICAL pgAdmin 4: AI Assistant read-only transaction bypass allows unauthorised writes and remote
CVE-2026-12046 9.0 CRITICAL pgAdmin 4: Unauthenticated pickle deserialization in SQL Editor close / update_connection
CVE-2026-12044 8.8 HIGH pgAdmin 4: SQL injection in COMMENT ON ... IS '<description>' rendering across dialog temp
CVE-2026-12049 4.3 MEDIUM pgAdmin 4: Open redirect in multi-factor authentication flow via unvalidated 'next' parame
CVE-2026-12047 3.5 LOW pgAdmin 4: HTML injection in cloud verify_credentials / deploy endpoints via unsanitised S

IV. Related Vulnerabilities

V. Comments for CVE-2026-12050

No comments yet


Leave a comment