CVE-2007-3280
The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary libraries based on…
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module for it.
Metasploit modules1 module
- PostgreSQL for Linux Payload Execution (Metasploit module) (opens in a new tab)
exploit/linux/postgres/postgres_payloadRank excellentdisclosed 5 Jun 2007
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
Published
- 17 years later
· 17 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High9.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C |
- EPSS (exploitation in 30 days)
- 25.5% · top 2.0% of all CVEs (9 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 9.0.
Weakness
- n/a
Affected products
n/a
- affected n/a
References (6)
- http://www.leidecker.info/pgshell/Having_Fun_With_PostgreSQL.txt (opens in a new tab)x_refsource_MISCx_transferred
- MDKSA-2007:188 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 40901 (opens in a new tab)vdb-entryx_refsource_OSVDBx_transferred
- postgresql-dblink-command-execution(35145) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- http://www.portcullis.co.uk/uplds/whitepapers/Having_Fun_With_PostgreSQL.pdf (opens in a new tab)x_refsource_MISCx_transferred
- 20070616 Having Fun With PostgreSQL (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2007-3270 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2007-3280)Record last updated .