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

Goal: 1000 CNY · Raised: 1325 CNY

100%

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

CVSS 4.3 · Medium

Affected Version Matrix 1

VendorProductVersion RangeStatus
pgadmin.orgpgAdmin 41.0< 9.16affected
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Source: NVD (National Vulnerability Database)
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: NVD (National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
pgadmin.orgpgAdmin 4 1.0 ~ 9.16 -

II. Public POCs for CVE-2026-12050

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

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-120489.3 CRITICALpgAdmin 4: Stored XSS via untrusted error and plan-node text rendered through html-react-p
CVE-2026-120459.0 CRITICALpgAdmin 4: AI Assistant read-only transaction bypass allows unauthorised writes and remote
CVE-2026-120469.0 CRITICALpgAdmin 4: Unauthenticated pickle deserialization in SQL Editor close / update_connection
CVE-2026-120448.8 HIGHpgAdmin 4: SQL injection in COMMENT ON ... IS '<description>' rendering across dialog temp
CVE-2026-120494.3 MEDIUMpgAdmin 4: Open redirect in multi-factor authentication flow via unvalidated 'next' parame
CVE-2026-120473.5 LOWpgAdmin 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