Skip to content

CVE-2020-14350 #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2020
Merged

CVE-2020-14350 #222

merged 1 commit into from
Nov 8, 2020

Conversation

kulaginm
Copy link
Member

Fix for CVE-2020-14350 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14350)
See also Postgres commit 7eeb1d986.

Thanks to Alexander Lakhin.

@codecov
Copy link

codecov bot commented Oct 27, 2020

Codecov Report

Merging #222 (ef0831a) into master (bf13f4a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #222   +/-   ##
=======================================
  Coverage   91.87%   91.87%           
=======================================
  Files          40       40           
  Lines        7052     7052           
=======================================
  Hits         6479     6479           
  Misses        573      573           
Impacted Files Coverage Δ
src/partition_creation.c 96.85% <ø> (ø)
src/pathman_workers.c 84.03% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf13f4a...e0171c8. Read the comment docs.

- Explicit casts to ensure exact match to pathman functions instead of pwning ones.
- Explicit use of @extschema@ and pg_catalog schemas where possible (except for
  operators).
- Replace unsafe OR REPLACE clause.
This is believed to remove the possibility of malicious internal functions overloading.

For more information, see the documentation:
37.17.6.2. Security Considerations for Extension Scripts (https://www.postgresql.org/docs/current/extend-extensions.html#EXTEND-EXTENSIONS-SECURITY)
5.9.6. Usage Patterns (https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATTERNS)
@arssher
Copy link
Contributor

arssher commented Nov 8, 2020

I've reworded the readme and commit message bit.

@arssher arssher merged commit c72d688 into postgrespro:master Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants