{"id":"CVE-2023-5002","state":"PUBLISHED","title":"Pgadmin4: remote code execution by an authenticated user","description":"A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.6 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.","publishedAt":"2023-09-22T13:31:43.124Z","updatedAt":"2024-08-02T07:44:53.739Z","severity":{"score":6,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","source":"fedora"},"assigner":"fedora","products":["pgadmin4"],"affected":[{"packageName":"pgadmin4","versions":[{"version":"7.7","status":"unaffected","lessThan":"*","versionType":"custom"}],"collectionURL":"https://github.com/pgadmin-org/pgadmin4"}],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=2239164","https://github.com/pgadmin-org/pgadmin4/issues/6763","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/5xxx/CVE-2023-5002.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-5002","state":"PUBLISHED","datePublished":"2023-09-22T13:31:43.124Z","dateUpdated":"2024-08-02T07:44:53.739Z","assignerShortName":"fedora","assignerOrgId":"92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5","dateReserved":"2023-09-15T16:22:28.547Z"},"containers":{"cna":{"title":"Pgadmin4: remote code execution by an authenticated user","descriptions":[{"lang":"en","value":"A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.6 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server."}],"affected":[{"packageName":"pgadmin4","versions":[{"version":"7.7","status":"unaffected","lessThan":"*","versionType":"custom"}],"collectionURL":"https://github.com/pgadmin-org/pgadmin4"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2239164","name":"RHBZ#2239164","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://github.com/pgadmin-org/pgadmin4/issues/6763"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/"}],"metrics":[{"other":{"content":{"value":"Moderate","namespace":"https://access.redhat.com/security/updates/classification/"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","description":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"fedora","orgId":"92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5","dateUpdated":"2024-04-19T13:43:46.842Z"},"datePublic":"2023-09-21T00:00:00.000Z","x_redhatCweChain":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","timeline":[{"lang":"en","time":"2023-09-13T00:00:00.000Z","value":"Reported to Red Hat."},{"lang":"en","time":"2023-09-21T00:00:00.000Z","value":"Made public."}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"pgadmin","product":"pgadmin","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"7.6","versionType":"custom"}],"cpes":["cpe:2.3:a:pgadmin:pgadmin:-:*:*:*:*:postgresql:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-5002","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2024-05-14T16:28:49.140419Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:28:36.879Z"}},{"title":"CVE Program Container","references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2239164","name":"RHBZ#2239164","tags":["issue-tracking","x_refsource_REDHAT","x_transferred"]},{"url":"https://github.com/pgadmin-org/pgadmin4/issues/6763","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T07:44:53.739Z"}}]}}}