GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Symbolic-link path traversal in File Manager allows arbitrary file write (CVE-2026-7819) · Issue #9902 · pgadmin-org/pgadmin4

Symbolic-link path traversal in File Manager allows arbitrary file write (CVE-2026-7819) #9902

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
Symbolic-link path traversal in File Manager allows arbitrary file write (CVE-2026-7819)#9902
Bug
Copy link
Labels
Bug

Description

@asheshv
asheshv
opened on May 1, 2026
Issue body actions

Summary

Symbolic-link path traversal (CWE-61, CWE-22) in the pgAdmin 4 File Manager.

check_access_permission used os.path.abspath, which resolves .. but does not resolve symbolic links, while the subsequent kernel write follows symlinks. An authenticated user could plant a symbolic link inside their own storage directory pointing outside it and induce pgAdmin to write to any path reachable by the pgAdmin process.

The fix switches the access check to os.path.realpath for both source and destination, and adds an _open_upload_target helper that opens the target with O_NOFOLLOW (mode 0o600) to close the leaf-component TOCTOU between the access check and the open. File mode is hardened from 0o644 to 0o600.

Affected versions

pgAdmin 4 < 9.15 (all prior versions).

Fix

Fixed in pgAdmin 4 9.15 by commit 435752b83.

Severity

  • CVSS 3.1: 8.1 (HIGH) — AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
  • CVSS 4.0: 7.2 (HIGH) — AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Credit

Reported by Fernando Bortotti.

References

  • CVE: CVE-2026-7819
  • Release notes: pgAdmin 4 9.15

Activity

  1. asheshv
    added 4 commits that reference this issue on May 6, 2026

    fix: symlink-based path traversal in file_manager (CWE-61/CWE-22) (#9902

    435752b

    docs: add release-notes line for #9904 lockout-bypass fix

    32d1946

    style: fix pre-existing pycodestyle violations across CVE-9.15 test f…

    6469b69

    docs: assign CVE IDs to v9.15 release-notes placeholders

    ba9ff51
  2. asheshv
    changed the title [-]Internal tracking: pending fix for 9.15[/-] [+]Symbolic-link path traversal in File Manager allows arbitrary file write (CVE-2026-7819)[/+] on May 11, 2026
  3. asheshv
    closed this as completedon May 11, 2026
  4. asheshv
    added
    Bug
    on May 11, 2026
  5. asheshv
    added the
    Bug
    issue type on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.