Authenticated code execution via untrusted utility path
Published Apr 4, 2024 · Updated Mar 14, 2025
Remote code execution in pgAdmin 4 8.4 and earlier allows remote authenticated users to run code through binary-path validation. The /misc/validate_binary_path endpoint passes a user-selected storage path to get_binary_path_versions(), which runs matching pg_dump-family files with --version without excluding uploaded executables. An account able to upload a suitably named executable and submit the path can execute it as the pgAdmin process; the demonstrated path is practical on Windows, while Unix-like hosts require executable permission.
Summary
What happened
Remote code execution in pgAdmin 4 8.4 and earlier allows remote authenticated users to run code through binary-path validation. The /misc/validate_binary_path endpoint passes a user-selected storage path to get_binary_path_versions(), which runs matching pg_dump-family files with --version without excluding uploaded executables. An account able to upload a suitably named executable and submit the path can execute it as the pgAdmin process; the demonstrated path is practical on Windows, while Unix-like hosts require executable permission.
The record
- CVE
- CVE-2024-3116
- Published
- Apr 4, 2024
- Updated
- Mar 14, 2025
- Vendor
- pgAdmin Development Team
- Product
- pgAdmin 4
- Classifications
- CWE-77, T1059.001
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 4, 2024CVE publishedPublication date reported by the CVE source.
- Mar 14, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <8.5
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- validate_binary_path uploaded-utility proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo