{"id":"CVE-2007-3280","published":"2007-06-19T21:00:00Z","modified":"2024-08-07T14:14:11Z","title":"The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary…","vendor":null,"product":null,"tier":"tail","description":{"text":"The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary libraries based on the C programming language, which allows remote authenticated superusers to map and execute a function from any library, as demonstrated by using the system function in libc.so.6 to gain shell access.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.2549,"percentile":0.97997,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.leidecker.info/pgshell/Having_Fun_With_PostgreSQL.txt","tags":["x_refsource_MISC"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:188","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://osvdb.org/40901","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/35145","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.portcullis.co.uk/uplds/whitepapers/Having_Fun_With_PostgreSQL.pdf","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/archive/1/471541/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ"]}],"priority":{"score":24.6,"factors":[{"name":"EPSS percentile","points":19.6},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-09-11","earliestUrl":"https://github.com/denuwanjayasekara/CVE-Exploitation-Reports","repos":[{"name":"denuwanjayasekara/CVE-Exploitation-Reports","url":"https://github.com/denuwanjayasekara/CVE-Exploitation-Reports","stars":0,"created":"2024-09-11"}]},"metasploit":[{"name":"PostgreSQL for Linux Payload Execution","module":"exploit/linux/postgres/postgres_payload","type":"exploit","disclosureDate":"2007-06-05","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/postgres/postgres_payload.rb"}],"first":{"date":"2007-06-05","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/postgres/postgres_payload.rb"},"provenance":"source"},"summary":{"text":"The Database Link library (dblink) in PostgreSQL 8.1 lets CREATE statements map functions to arbitrary C-language libraries. A remote authenticated superuser can exploit this to map and execute a function from any library, such as the system function in libc.so.6 to obtain a shell.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:51Z"},"euvd":{"id":"EUVD-2007-3270","exploited":false,"provenance":"source"}}