In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the…
No fixed version listed yet.Check the vendor advisory. References ↓
The COPY TO/FROM PROGRAM function in PostgreSQL 9.3 through 11.2 lets superusers and members of the pg_execute_server_program group run arbitrary code as the database's operating system user, and it is enabled by default. An attacker who holds one of those database roles can use it to run arbitrary operating system commands on Windows, Linux, or macOS, with no further conditions required.
Official description · CVE.org
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to execute arbitrary code in the context of the database's operating system user. This functionality is enabled by default and can be abused to run arbitrary operating system commands on Windows, Linux, and macOS. NOTE: Third parties claim/state this is not an issue because PostgreSQL functionality for ‘COPY TO/FROM PROGRAM’ is acting as intended. References state that in PostgreSQL, a superuser can execute commands as the server user without using the ‘COPY FROM PROGRAM’.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
First seen exploited 22 months after disclosure. Public exploit code (Metasploit) was available 12 days before disclosure.
- Public exploit codeMetasploit12 days before
- Disclosedday 0
- First seen exploitedVulnCheck KEV evidence+22 mo
What security researchers reported
Not named in any threat report yetAlso mentioned in 3 community threat pulses (AlienVault OTX)
Weaker evidencePulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.