PostgreSQL patches 52 flaws, including one traced back to 2004

Picture for this story, with the CyberUnscripted cat hidden in it
Staged picture. The blue one is ours.

The worst lets a database user who can create objects run code on the server, with the rights of the operating system user running PostgreSQL.

No attacks using it have been reported.

A field's type can be changed while old values are still held elsewhere, and the server then reads them as the new type. Researcher Mehmet Ince traces this to May 2004, when PostgreSQL gained the ability to change a column's type. He could crash a server from the lowest privileged login. None of the sources says whether that account can go on to run code.

Updating the server is not enough, because C language extensions must be rebuilt as well. The fix adds checks for mismatched values, plus a setting to switch them off that the project says carries security risks. A 22 year old hole, patched, and shipped with a switch to put it back.

Discuss on TelegramAll stories

Based on reporting by The Hacker News.