{"id":"CVE-2026-7813","kind":"vulnerability","aliases":["CVE-2026-7813","GHSA-h2x2-q2mc-24gw"],"related":[],"title":"pgAdmin 4 server mode has an authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules","description":"Authorization vulnerability in pgAdmin 4 server mode affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules.\n\nMultiple endpoints fetched user-owned objects without filtering by the requesting user's identity. An authenticated user could access another user's private servers, server groups, background processes, and debugger function arguments by guessing object IDs.\n\nAdditionally, the Shared Servers feature contained multiple issues including credential leakage (passexec_cmd, passfile, SSL keys), privilege escalation via writable passexec_cmd (a shell command executed when establishing the connection) allowing arbitrary command execution in the owner's process context, and owner-data corruption via SQLAlchemy session mutations. Several owner-only fields (passexec_cmd, passexec_expiration, db_res, db_res_type) were writable by non-owners through the API, and additional fields (kerberos_conn, tags, post_connection_sql) lacked per-user persistence so non-owner edits mutated the owner's record.\n\nFix centralises access control via a new server_access module, scopes all user-owned models with a UserScopedMixin, returns HTTP 410 from connection_manager when access is denied in server mode, suppresses owner-only fields for non-owners across the merge / API response / ServerManager paths, and adds an explicit owner-only write guard. The remediation landed in two pull requests; both are referenced.\n\nThis issue affects pgAdmin 4: before 9.15.","summary":"pgAdmin 4 in server mode fetched user-owned servers, server groups, background processes and debugger arguments without checking the requesting user, so an authenticated user could read other users' objects by guessing IDs. The Shared Servers feature also leaked credentials and let non-owners write a shell command (passexec_cmd) that runs in the owner's connection process.","severity":"critical","cvss":9.9,"epss":0.00455,"exploited":false,"exploited_at":null,"products":[{"name":"pgadmin4","fixed":["9.15"],"affected":"< 9.15","ecosystem":"pypi"},{"name":"pgadmin 4","fixed":["9.15"],"affected":"< 9.15","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["cwe-284","package","pgadmin4","postgresql","python","self-hosted"],"not_affected_if":["auth-required","desktop-mode","single-user"],"how_to_check":"- Check the installed version with `pip show pgadmin4` and confirm it is at least `9.15`.\n- Look for pgAdmin 4 running in server mode (multi-user deployment) rather than desktop mode.\n- Check whether Shared Servers are in use.","fix":"- pgadmin4 (PyPI): move to `9.15` or later.","status":"open","published_at":"2026-05-11T16:17:37+00:00","first_seen_at":"2026-11-16T15:53:11+00:00","triaged_at":"2026-11-16T15:54:22+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T15:54:22Z","model":"claude-haiku-5-5","output":{"fix":"- pgadmin4 (PyPI): move to `9.15` or later.","reach":"network","title":"pgAdmin 4 server mode lets users reach other users' servers and run commands","impact":"high","summary":"pgAdmin 4 in server mode fetched user-owned servers, server groups, background processes and debugger arguments without checking the requesting user, so an authenticated user could read other users' objects by guessing IDs. The Shared Servers feature also leaked credentials and let non-owners write a shell command (passexec_cmd) that runs in the owner's connection process.","audience":"businesses","category":"package","nicknames":[],"who_cares":["pgadmin4","python","postgresql","self-hosted"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"Attacker runs shell commands and reads other users' stored database credentials.","analyst_note":"","how_to_check":"- Check the installed version with `pip show pgadmin4` and confirm it is at least `9.15`.\n- Look for pgAdmin 4 running in server mode (multi-user deployment) rather than desktop mode.\n- Check whether Shared Servers are in use.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["desktop-mode","single-user","auth-required"],"who_is_affected":"Exposed when pgAdmin 4 runs in server mode with more than one user, since the flaw is in per-user access checks. Desktop-mode installs with a single user are not the target. The attacker needs a valid account on the pgAdmin instance; the Shared Servers feature widens the impact to command execution in the owner's connection context.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000811,"input_tokens":5043,"output_tokens":614,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2026':21A,29A '-284':35B '-7813':22A,30A '24gw':27A '4':2A,33A,44B,107C,325C '410':275C '9.15':327C 'access':140C,256C,262C,280C 'across':295C 'add':303C 'addit':158C,231C 'affect':9A,110C,323C 'allow':188C 'also':81B 'anoth':141C 'api':229C,298C 'arbitrari':189C 'argument':59B,153C 'authent':67B,137C 'author':7A,103C 'background':15A,55B,116C,148C 'centralis':255C 'check':61B 'cmd':94B,170C,179C,213C 'command':92B,182C,190C 'conn':234C 'connect':101B,187C,237C,277C 'contain':163C 'context':197C 'control':257C 'corrupt':202C 'could':69B,139C 'credenti':83B,167C 'cve':20A,28A 'cwe':34B 'data':201C 'db':216C,218C 'debugg':18A,58B,119C,151C 'deni':282C 'edit':248C 'endpoint':122C 'escal':175C 'establish':185C 'execut':183C,191C 'expir':215C 'explicit':305C 'featur':80B,162C 'fetch':48B,123C 'field':211C,232C,290C 'filter':129C 'fix':254C 'function':152C 'ghsa':24A 'ghsa-h2x2-q2mc-24gw':23A 'group':11A,54B,112C,147C 'guard':310C 'guess':75B,155C 'h2x2':25A 'host':42B 'http':274C 'id':76B,157C 'ident':135C 'includ':166C 'issu':165C,322C 'kerbero':233C 'key':173C 'lack':239C 'land':313C 'leak':82B 'leakag':168C 'let':85B 'manag':278C 'merg':297C 'mode':4A,47B,109C,285C 'model':269C 'modul':19A,120C,263C 'multipl':121C,164C 'mutat':206C,249C 'new':260C 'non':87B,225C,246C,293C 'non-own':86B,224C,245C,292C 'object':73B,127C,156C 'own':51B,126C,268C 'owner':88B,99B,194C,200C,209C,226C,247C,251C,288C,294C,307C 'owner-data':199C 'owner-on':208C,287C,306C 'packag':36B 'passexec':93B,169C,178C,212C,214C 'passfil':171C 'path':301C 'per':241C 'per-us':240C 'persist':243C 'pgadmin':1A,32A,43B,106C,324C 'pgadmin4':31A,37B 'post':236C 'postgresql':38B 'privat':144C 'privileg':174C 'process':16A,56B,102B,117C,149C,196C 'pull':316C 'python':39B 'q2mc':26A 'read':70B 'record':253C 'referenc':320C 'remedi':312C 'request':63B,132C,317C 'res':217C,219C 'respons':299C 'return':273C 'run':96B 'scope':264C 'self':41B 'self-host':40B 'server':3A,10A,12A,14A,46B,52B,53B,79B,108C,111C,113C,115C,145C,146C,161C,261C,284C 'servermanag':300C 'session':205C 'sever':207C 'share':13A,78B,114C,160C 'shell':91B,181C 'sql':238C 'sqlalchemi':204C 'ssl':172C 'suppress':286C 'tag':235C 'two':315C 'type':220C 'user':50B,64B,68B,72B,125C,133C,138C,142C,242C,267C 'user-own':49B,124C,266C 'userscopedmixin':272C 'via':176C,203C,258C 'vulner':8A,104C 'without':60B,128C 'writabl':177C,222C 'write':89B,309C","nicknames":[],"mitigations":[],"who_affected":"Exposed when pgAdmin 4 runs in server mode with more than one user, since the flaw is in per-user access checks. Desktop-mode installs with a single user are not the target. The attacker needs a valid account on the pgAdmin instance; the Shared Servers feature widens the impact to command execution in the owner's connection context.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["4","pgadmin4"],"ptokens":["pgadmin","pgadmin4"],"labels":["critical","cwe284","package","pgadmin4","postgresql","pypi","python","selfhosted","vendor"],"campaign_type":null,"search_a":"'-2026':21A,29A '-7813':22A,30A '24gw':27A '4':2A,33A 'affect':9A 'author':7A 'background':15A 'cve':20A,28A 'debugg':18A 'ghsa':24A 'ghsa-h2x2-q2mc-24gw':23A 'group':11A 'h2x2':25A 'mode':4A 'modul':19A 'pgadmin':1A,32A 'pgadmin4':31A 'process':16A 'q2mc':26A 'server':3A,10A,12A,14A 'share':13A 'vulner':8A","search_b":"'-284':35B '4':44B 'also':81B 'argument':59B 'authent':67B 'background':55B 'check':61B 'cmd':94B 'command':92B 'connect':101B 'could':69B 'credenti':83B 'cwe':34B 'debugg':58B 'featur':80B 'fetch':48B 'group':54B 'guess':75B 'host':42B 'id':76B 'leak':82B 'let':85B 'mode':47B 'non':87B 'non-own':86B 'object':73B 'own':51B 'owner':88B,99B 'packag':36B 'passexec':93B 'pgadmin':43B 'pgadmin4':37B 'postgresql':38B 'process':56B,102B 'python':39B 'read':70B 'request':63B 'run':96B 'self':41B 'self-host':40B 'server':46B,52B,53B,79B 'share':78B 'shell':91B 'user':50B,64B,68B,72B 'user-own':49B 'without':60B 'write':89B","search_c":"'4':107C,325C '410':275C '9.15':327C 'access':140C,256C,262C,280C 'across':295C 'add':303C 'addit':158C,231C 'affect':110C,323C 'allow':188C 'anoth':141C 'api':229C,298C 'arbitrari':189C 'argument':153C 'authent':137C 'author':103C 'background':116C,148C 'centralis':255C 'cmd':170C,179C,213C 'command':182C,190C 'conn':234C 'connect':187C,237C,277C 'contain':163C 'context':197C 'control':257C 'corrupt':202C 'could':139C 'credenti':167C 'data':201C 'db':216C,218C 'debugg':119C,151C 'deni':282C 'edit':248C 'endpoint':122C 'escal':175C 'establish':185C 'execut':183C,191C 'expir':215C 'explicit':305C 'featur':162C 'fetch':123C 'field':211C,232C,290C 'filter':129C 'fix':254C 'function':152C 'group':112C,147C 'guard':310C 'guess':155C 'http':274C 'id':157C 'ident':135C 'includ':166C 'issu':165C,322C 'kerbero':233C 'key':173C 'lack':239C 'land':313C 'leakag':168C 'manag':278C 'merg':297C 'mode':109C,285C 'model':269C 'modul':120C,263C 'multipl':121C,164C 'mutat':206C,249C 'new':260C 'non':225C,246C,293C 'non-own':224C,245C,292C 'object':127C,156C 'own':126C,268C 'owner':194C,200C,209C,226C,247C,251C,288C,294C,307C 'owner-data':199C 'owner-on':208C,287C,306C 'passexec':169C,178C,212C,214C 'passfil':171C 'path':301C 'per':241C 'per-us':240C 'persist':243C 'pgadmin':106C,324C 'post':236C 'privat':144C 'privileg':174C 'process':117C,149C,196C 'pull':316C 'record':253C 'referenc':320C 'remedi':312C 'request':132C,317C 'res':217C,219C 'respons':299C 'return':273C 'scope':264C 'server':108C,111C,113C,115C,145C,146C,161C,261C,284C 'servermanag':300C 'session':205C 'sever':207C 'share':114C,160C 'shell':181C 'sql':238C 'sqlalchemi':204C 'ssl':172C 'suppress':286C 'tag':235C 'two':315C 'type':220C 'user':125C,133C,138C,142C,242C,267C 'user-own':124C,266C 'userscopedmixin':272C 'via':176C,203C,258C 'vulner':104C 'without':128C 'writabl':177C,222C 'write':309C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-05-11T16:17:37+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-h2x2-q2mc-24gw","url":"https://github.com/advisories/GHSA-h2x2-q2mc-24gw","severity":"critical","published_at":"2026-05-11T18:31:44+00:00","modified_at":"2026-11-16T15:53:07+00:00","first_seen_at":"2026-11-16T15:53:11+00:00","fetched_at":"2026-11-16T15:58:21+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-7813","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7813","severity":null,"published_at":"2026-05-11T16:17:37+00:00","modified_at":"2026-10-26T18:10:00+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":170804,"url":"https://github.com/pgadmin-org/pgadmin4/pull/9830","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170805,"url":"https://github.com/pgadmin-org/pgadmin4/pull/9835","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00455,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-7813"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}