Skip to content
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

Update request: postgresql [multiple versions] - broken package #371348

Closed
1 task done
ailocam opened this issue Jan 6, 2025 · 4 comments
Closed
1 task done

Update request: postgresql [multiple versions] - broken package #371348

ailocam opened this issue Jan 6, 2025 · 4 comments
Labels
9.needs: package (update) This needs a package to be updated

Comments

@ailocam
Copy link

ailocam commented Jan 6, 2025

Package Information

In response to CVE-2024-10978 the PostgreSQL maintainers released a security patch and back-ported it to all supported versions: 17.1, 16.5, 15.9, 14.14, 13.17. 12.21

But these new versions introduced a serious bug, as noted in this news post:
The fix for CVE-2024-10978 accidentally caused settings for role to not be applied if they come from non-interactive sources, including previous ALTER {ROLE|DATABASE} commands and the PGOPTIONS environment variable.

This silently breaks the ALTER {ROLE|DATABASE} SET role statement. This can result in database objects being created with incorrect ownership which has security implications and can result in application downtime.

The versions listed above should be considered "broken".

Further details:
https://www.postgresql.org/message-id/CADOZwSb0UsEr4_UTFXC5k7=fyyK8uKXekucd+-uuGjJsGBfxgw@mail.gmail.com

  • Package name: postgresql
  • Latest released version: 17.2
  • Current version on the unstable channel: 17.2
  • Current version on the stable/release channel: 16.5

Checklist

Notify maintainers

@wolfgangwalther
@ivan
@Ma27

Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@ailocam ailocam added the 9.needs: package (update) This needs a package to be updated label Jan 6, 2025
@Ma27
Copy link
Member

Ma27 commented Jan 6, 2025

THese are patched on nixos-unstable already. I assume you're opening this because we're still on 17.1 on 24.11. This is about to change with the current staging cycle: #369690

Closing, when this hits the stable channel.

@wolfgangwalther
Copy link
Contributor

Closing, when this hits the stable channel.

It did!

@ailocam
Copy link
Author

ailocam commented Jan 13, 2025

Thanks @wolfgangwalther .

Is there a way that released like this could be prioritized in future?
The buggy packages were the only options in nixos-stable-24.11 for almost 2 months.

@wolfgangwalther
Copy link
Contributor

Is there a way that released like this could be prioritized in future?

The big number of rebuilds caused by an upgrade is the problem.

A first step to reduce the rebuilds is #359659. This will not bring us all the way, as mentioned in the PR's description. But if we do this:

The only way to get the number of rebuilds lower would be to package postgresqlTestHook as a separate postgresql derivation.

Then the number of rebuilds for updating the PostgreSQL derivation could possibly be low enough to merge this directly without staging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.needs: package (update) This needs a package to be updated
Projects
None yet
Development

No branches or pull requests

3 participants