SecurityContext

CVE-2022-0959: pgAdmin - Unrestricted File Upload

  • Cve: CVE-2022-0959
  • Name: pgAdmin - Unrestricted File Upload
  • Description: A malicious, but authorised and authenticated user can construct an HTTP request using their existing CSRF token and session cookie to manually upload files to any location that the operating system user account under which pgAdmin is running has permission to write.
  • Impact: Authenticated users can upload files to arbitrary locations, potentially leading to remote code execution or system compromise.
  • Remediation: Implement proper access controls and input validation for file uploads, and restrict upload locations to safe directories.
  • Vulnerability type: unrestricted_file_upload
  • Vulnerability impact: file_system_write
  • Requirement type: user_interaction
  • Requirements: Attacker must be an authorized and authenticated user with valid CSRF token and session cookie
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00968
  • Epss percentile: 0.6273
  • Assignee: [email protected]
  • Published at: 2022-03-16T15:15:16Z
  • Age in days: 1714
  • Modified at: 2026-06-17T04:21:33Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-0959
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd

Cwe

IdName
CWE-434Unrestricted Upload of File with Dangerous Type
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Hackerone

  • Reports: 15
  • Rank: 2035

References

UrlSourceTags
https://bugzilla.redhat.com/show_bug.cgi?id=2063759nvdIssue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
pgadmin:pgadmin_4< 6.7nonvd/v1/products/pgadmin/pgadmin_4

Projects

RepositoryLink kindsIndexedUrl
pgadmin-org/pgadmin4commit, packageyes/v1/repositories/pgadmin-org/pgadmin4

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 15
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts