CVE-2020-1720: A flaw was found in PostgreSQL's "ALTER ...
Medium CVSS 6.5
- CVE id
- CVE-2020-1720
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| PostgreSQL Runtimes and servers |
>= 9.6, < 9.6.17 >= 10.0, < 10.12 >= 11.0, < 11.7 >= 12.0, < 12.2 |
9.6.17, 10.12, 11.7, 12.2 |
How to fix it
Upgrade PostgreSQL to the fixed release of the line you run: 9.6.17, 10.12, 11.7, 12.2.
psql -c 'SELECT version();'
- Install the patched PostgreSQL minor release of your major version (the postgres image tag, the PGDG packages, or your provider's maintenance update) and restart the server; minor releases need no dump or pg_upgrade.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
A flaw was found in PostgreSQL's "ALTER ... DEPENDS ON EXTENSION", where sub-commands did not perform authorization checks. An authenticated attacker could use this flaw in certain configurations to perform drop objects such as function, triggers, et al., leading to database corruption. This issue affects PostgreSQL versions before 12.2, before 11.7, before 10.12 and before 9.6.17.
References
- CVE-2020-1720 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2020-1720
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1720
- Web: https://www.postgresql.org/about/news/2011/
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1720
- Web: https://www.postgresql.org/about/news/2011/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.