Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-12050: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in pgadmin.org pgAdmin 4

0
Medium
VulnerabilityCVE-2026-12050cvecve-2026-12050cwe-89
Published: Thu Jun 18 2026 (06/18/2026, 23:37:19 UTC)
Source: CVE Database V5
Vendor/Project: pgadmin.org
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Affected software

GitHub Actionsmore threats →cve
pgAdmin 4
pkg:github/pgAdmin 4
Affected versions
>=1.0 <9.16

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/19/2026, 16:55:22 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses