Public PoC released for CVE-2026-6460, PostgreSQL RCE via type confusion
A public proof-of-concept repository for CVE-2026-6460, a remote code execution flaw in PostgreSQL, has been published.
Reported by GitHub
First reported Summary updated
- Public PoC
- Yes
- Exploited
- Not known
- CVSS
- 8.8 High
What happened
A public proof-of-concept repository for CVE-2026-6460 has been published on GitHub.1
The vulnerability is a type confusion in PostgreSQL that allows an object creator to execute arbitrary code as the operating system user running the database.NVD
The flaw can be triggered primarily via ALTER ... SET DATA TYPE, with other DDL attack routes also existing.NVD
Who is affected
- PostgreSQL, before 18.7, 17.12, 16.16, 15.20, and 14.25NVD
Is there a public exploit?
Yes, public Public PoC or exploit code has been published, listed below.
- GitHub gabrielunknown/CVE-2026-6460_PostgreSQL_RCE 18 stars
PoC code comes from strangers and is not checked by us. Read it before you run it, and only run it in a lab or against targets you are allowed to test.
Exploited in the wild?
Not known None of the sources reports attacks using it so far.
For bug hunters
This event involves a type confusion flaw in PostgreSQL that can lead to remote code execution. Type confusion bugs often appear in database systems, language runtimes, and applications that handle complex data types or deserialisation. When testing in-scope targets, look for features that allow users to create or alter database objects, especially those involving custom types or DDL operations. Pay attention to how the application tracks and validates typed values, as inconsistencies may indicate a vulnerability.
What to test
- Test ALTER ... SET DATA TYPE operations with custom composite types for unexpected behaviour.
- Check if low-privileged users can create objects that trigger type confusion during DDL.
- Look for stale values in PL/pgSQL variables after type changes or rollbacks.
- Attempt to execute OS commands via crafted type conversions in database functions.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1
GitHub Unverified code
PoC for CVE-2026-6460 (gabrielunknown/CVE-2026-6460_PostgreSQL_RCE)