{"id":3107,"date":"2025-04-07T10:03:51","date_gmt":"2025-04-07T10:03:51","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/04\/07\/critical-pgadmin-vulnerability-let-attackers-execute-remote-code\/"},"modified":"2025-04-07T10:03:51","modified_gmt":"2025-04-07T10:03:51","slug":"critical-pgadmin-vulnerability-let-attackers-execute-remote-code","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/04\/07\/critical-pgadmin-vulnerability-let-attackers-execute-remote-code\/","title":{"rendered":"Critical pgAdmin Vulnerability Let Attackers Execute Remote Code"},"content":{"rendered":"<p>    Critical pgAdmin Vulnerability Let Attackers Execute Remote Code<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>A critical security vulnerability discovered in pgAdmin 4, the most widely used management tool for <a href=\"https:\/\/cybersecuritynews.com\/pgminer-botnet-attacks\/\" target=\"_blank\" rel=\"noreferrer noopener\">PostgreSQL databases<\/a>, is allowing attackers to execute arbitrary code on affected systems.\u00a0<\/p>\n<p>Security researchers have disclosed details of CVE-2025-2945, a severe Remote Code Execution (RCE) vulnerability with a CVSS score of 9.9, indicating the highest level of severity.<\/p>\n<p>The vulnerability affects all versions of pgAdmin 4 prior to 9.2, which was released on April 4, 2025. The security flaw exists in two separate POST endpoints: \/sqleditor\/query_tool\/download and \/cloud\/deploy.\u00a0<\/p>\n<p>Both endpoints contain dangerous implementations that pass untrusted user input directly to Python\u2019s eval() function without proper validation or sanitization.<\/p>\n<p>The Centre for Cybersecurity Belgium (CCB) issued an urgent advisory on April 4, warning that exploitation could lead to \u201cdata breaches, system compromise, and operational downtime impacting confidentiality, integrity, and availability of critical businesses.\u201d<\/p>\n<h2 class=\"wp-block-heading\">\n<strong>pgAdmin Vulnerability<\/strong> <strong>Details<\/strong><br \/>\n<\/h2>\n<p>In the \/sqleditor\/query_tool\/download\/&lt;int:trans_id&gt; endpoint, the vulnerability lies in how the application processes the query_commited parameter:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXclsnTP8Q78MeY2iH1n71sOxuerKoXymszWdUT-bMKEnQk8wBDN6P5BOONXSJGQRSi-tqEE_K4LuwJhE2nC0Xm8vce7bHUHkQCGpRpTkMD0NzV2lQAFyduCxMshisos-XQUJKCQUw?key=IPHwPCrFynsR3OQOUVl3o1UY\" alt=\"\"><\/figure>\n<\/div>\n<p>This implementation allows attackers to send <a href=\"https:\/\/cybersecuritynews.com\/hackers-employ-dll-side-loading\/\" target=\"_blank\" rel=\"noreferrer noopener\">malicious Python code<\/a> that will be executed on the server. For example, a simple malicious request could look like:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfNjQRzLVvVewKwE60LjhbIhvXgfIiVYV0UV-H4abWxTKkfz4ggfq6Vf_oi6K7FMggD0KXzy9CK2ikL4YT9ewzxBIVSzoHo3NoZYUzYhdsYcdrC3ejWlEjQSj_OhyOhlhBMRtNLew?key=IPHwPCrFynsR3OQOUVl3o1UY\" alt=\"\"><\/figure>\n<\/div>\n<p>Similarly, in the \/cloud\/deploy endpoint, the high_availability parameter is directly passed to eval():<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdPsI42FkS32zmWLaHr8E1SRDlbWFQ_FSFuhnMTILsKXC9eeBvMBcjJEZdNUS04r2vChH_kUOO1cr_4bbM-bA6E41Tr0tbh6bSaeTu5rtm9qWI-EIX9SoH7jDnAk8k-jE0o_nU6?key=IPHwPCrFynsR3OQOUVl3o1UY\" alt=\"\"><\/figure>\n<\/div>\n<p>This allows attackers to craft malicious requests that can execute arbitrary code on the server, potentially leading to complete system compromise.<\/p>\n<p>The summary of the vulnerability is given below:<\/p>\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td><strong>Risk Factors<\/strong><\/td>\n<td><strong>Details<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Affected Products<\/td>\n<td>pgAdmin 4 versions prior to 9.2, including Query Tool and Cloud Deployment modules.<\/td>\n<\/tr>\n<tr>\n<td>Impact<\/td>\n<td>Remote Code Execution (RCE)<\/td>\n<\/tr>\n<tr>\n<td>Exploit Prerequisites<\/td>\n<td>Low-privileged authenticated access- Ability to send crafted POST requests to vulnerable endpoints (\/sqleditor\/query_tool\/download and \/cloud\/deploy)<\/td>\n<\/tr>\n<tr>\n<td>CVSS 3.1 Score<\/td>\n<td>9.9 (Critical)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h2 class=\"wp-block-heading\"><strong>Impact and Exploitation<\/strong><\/h2>\n<p>Security experts have confirmed that successful exploitation requires authentication, but once achieved, attackers can:<\/p>\n<ul class=\"wp-block-list\">\n<li>Execute arbitrary code with the permissions of the pgAdmin process.<\/li>\n<li>Access, modify, or exfiltrate sensitive data from PostgreSQL databases.<\/li>\n<li>Establish persistent access through backdoors.<\/li>\n<li>Move laterally within the network to compromise additional systems.<\/li>\n<li>Escalate privileges if pgAdmin is running with elevated permissions.<\/li>\n<\/ul>\n<p>Alongside the RCE vulnerability, researchers also identified CVE-2025-2946, a <a href=\"https:\/\/cybersecuritynews.com\/roundcube-xss-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">Cross-Site Scripting (XSS)<\/a> vulnerability with a CVSS score of 9.1.\u00a0<\/p>\n<p>This flaw allows attackers to inject arbitrary HTML and JavaScript through query result rendering in both the Query Tool and View\/Edit Data features.<\/p>\n<p>The pgAdmin development team has <a href=\"https:\/\/py0zz1.tistory.com\/199\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">released<\/a> version 9.2, which removes the dangerous use of eval() functions and implements proper input validation. <\/p>\n<p>The patch was released within 24 hours of the vulnerability being reported.<\/p>\n<p>The CCB strongly recommends organizations to:<\/p>\n<ul class=\"wp-block-list\">\n<li>Immediately update to pgAdmin 4 version 9.2.<\/li>\n<li>Increase monitoring and detection capabilities to identify suspicious activities.<\/li>\n<li>Conduct thorough testing before deploying updates in production environments.<\/li>\n<\/ul>\n<p>\u201cWhile patching appliances or software to the newest version may provide safety from future exploitation, it does not remediate historic compromise,\u201d warns the CCB.<\/p>\n<p>Organizations using pgAdmin four are urged to check for signs of compromise and report any security incidents to their respective cybersecurity authorities.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 89%,rgb(169,184,195) 100%)\"><strong><code><strong><code>Investigate Real-World Malicious Links &amp; Phishing Attacks With\u00a0<strong>Threat Intelligence Lookup<\/strong>\u00a0-\u00a0<a href=\"https:\/\/intelligence.any.run\/plans?utm_source=csn&amp;utm_medium=article&amp;utm_campaign=3-techniques-to-improve-th&amp;utm_content=plans&amp;utm_term=010425\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Try 50 Request for Free<\/a><\/code><\/strong><\/code><\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/critical-pgadmin-vulnerability\/\">Critical pgAdmin Vulnerability Let Attackers Execute Remote Code<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Guru Baran<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/critical-pgadmin-vulnerability\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Critical pgAdmin Vulnerability Let Attackers Execute Remote Code A critical security vulnerability discovered in pgAdmin 4, the most widely used management tool for PostgreSQL databases, is allowing attackers to execute arbitrary code on affected systems.\u00a0 Security researchers have disclosed details of CVE-2025-2945, a severe Remote Code Execution (RCE) vulnerability with a CVSS score of 9.9, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,131],"tags":[130],"class_list":["post-3107","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-vulnerability","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/3107"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=3107"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/3107\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=3107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=3107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=3107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}