CVE-2026-12050: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in pgadmin.org pgAdmin 4
CVE-2026-12050 is a medium severity SQL injection vulnerability in pgAdmin 4 affecting versions from 1.0 up to but not including 9.16. The issue occurs in the named restore point endpoint where user input is improperly handled, allowing an authenticated user with a connected PostgreSQL session to inject SQL commands. The injected SQL executes with the privileges of the user's existing database role, so no privilege escalation occurs. The vulnerability is fixed by passing the restore point name as a bound parameter and schema-qualifying the function call to prevent redirection. No known exploits are reported in the wild.
AI Analysis
Technical Summary
This vulnerability in pgAdmin 4's POST /browser/server/restore_point/{gid}/{sid} endpoint arises from improper neutralization of special elements in an SQL command (CWE-89). The user-supplied 'value' field was directly interpolated into the SQL string using str.format() instead of being passed as a bound parameter. This allows an authenticated user with an active PostgreSQL session to inject additional SQL statements executed under their existing database role. The impact is limited since the user already has direct SQL access through the Query Tool, so no privilege escalation occurs. The fix involves using bound parameters for the restore point name and schema-qualifying the function call to pg_catalog.pg_create_restore_point, preventing misuse of search_path to redirect the call. A regression test ensures the parameter is properly bound.
Potential Impact
An authenticated pgAdmin user with a connected PostgreSQL session can inject SQL commands via the restore point endpoint. The injected SQL executes with the privileges of the user's existing database role, so no privilege escalation or confidentiality breach beyond the user's current permissions occurs. The vulnerability could allow unexpected SQL execution paths if the application layer gates the Query Tool but not this endpoint. There is no impact on confidentiality or availability, only integrity is affected marginally.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vendor fixed the issue by passing the restore point name as a bound parameter and schema-qualifying the function call to prevent redirection. Users should upgrade to pgAdmin 4 version 9.16 or later once available. Until then, restrict access to authenticated users with appropriate database roles and monitor for unusual activity. No additional mitigation is specified by the vendor.
CVE-2026-12050: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in pgadmin.org pgAdmin 4
Description
CVE-2026-12050 is a medium severity SQL injection vulnerability in pgAdmin 4 affecting versions from 1.0 up to but not including 9.16. The issue occurs in the named restore point endpoint where user input is improperly handled, allowing an authenticated user with a connected PostgreSQL session to inject SQL commands. The injected SQL executes with the privileges of the user's existing database role, so no privilege escalation occurs. The vulnerability is fixed by passing the restore point name as a bound parameter and schema-qualifying the function call to prevent redirection. No known exploits are reported in the wild.
CVSS v3.1
Score 4.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in pgAdmin 4's POST /browser/server/restore_point/{gid}/{sid} endpoint arises from improper neutralization of special elements in an SQL command (CWE-89). The user-supplied 'value' field was directly interpolated into the SQL string using str.format() instead of being passed as a bound parameter. This allows an authenticated user with an active PostgreSQL session to inject additional SQL statements executed under their existing database role. The impact is limited since the user already has direct SQL access through the Query Tool, so no privilege escalation occurs. The fix involves using bound parameters for the restore point name and schema-qualifying the function call to pg_catalog.pg_create_restore_point, preventing misuse of search_path to redirect the call. A regression test ensures the parameter is properly bound.
Potential Impact
An authenticated pgAdmin user with a connected PostgreSQL session can inject SQL commands via the restore point endpoint. The injected SQL executes with the privileges of the user's existing database role, so no privilege escalation or confidentiality breach beyond the user's current permissions occurs. The vulnerability could allow unexpected SQL execution paths if the application layer gates the Query Tool but not this endpoint. There is no impact on confidentiality or availability, only integrity is affected marginally.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vendor fixed the issue by passing the restore point name as a bound parameter and schema-qualifying the function call to prevent redirection. Users should upgrade to pgAdmin 4 version 9.16 or later once available. Until then, restrict access to authenticated users with appropriate database roles and monitor for unusual activity. No additional mitigation is specified by the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-06-11T20:40:09.826Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a357432f198dc38c1bc0d45
Added to database: 6/19/2026, 4:54:10 PM
Last enriched: 6/19/2026, 4:55:22 PM
Last updated: 6/19/2026, 6:48:44 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.