r/UNIFI • • 7d ago

Discussion Security advisory: PostgreSQL: 52 vulnerabilities, including code execution

https://security.utoronto.ca/advisories/security-advisory-postgresql-52-vulnerabilities/

It’s such perfect timing that UniFi has chosen to migrate to PostgreSQL.

64 Upvotes

14 comments sorted by

41

u/Intrepid00 7d ago

It is because I believe they were using a very old unsupported version of another DB which would leave it’s security issues unpatched. Now they can deliver patches.

32

u/AsparagusRelevant523 7d ago

MongoDB to be exact. Much better path for UNIFI moving to Postgres in my opinion. Not surprised there is that many vulnerabilities either. It is being reported, patched, and we are pressing forward. This should be the norm for the foreseeable future due to agentic review. Whether you feel the tool being used is good or bad, it is discovering holes quicker which will benefit us all from a security standpoint.

6

u/Amiga07800 7d ago

And of course - as I'm endlessly repeating - enable auto update, even if many "old school stubborn" are against.

4

u/stonecoldcoldstone 6d ago

Auto update has bitten me often enough in the backside with unifi... from memory leaks in the udm to unusable unvrs ... i hate how being beta tester is the new norm

1

u/Amiga07800 6d ago

What could have been considered safe and "reasonable" till end 2024 / start 2025 is NOT true anymore.

The AI (especially Mythos) is used by white hats but also by hackers to discover vunerabilities everywhere at a rate so fast that the developpers often can't even patch immediately...

So today it's CRUCIAL to update. Unifi having NDAA compliancy is 'on top of it' and this explain the very frequent actual updates. You should read the CVE if you understand them, and be afraid about the number of them and the severity... Just one you couldn't have missed is the PHP2Shell from last month that almost paralyzed and put in danger the biggest part of internet, up to have quite a few bank closing totally their web / app access for 1 to 2 days - time to patch it.

THE WORLD IS CHANGING - and so must you also change your (bad) habits...

Professional installer (IT and electronic engineer, Unifi UFSP / UWA / URSCA, full AMX, Crestron, Official state HAM radio,… and more).

4

u/stonecoldcoldstone 6d ago

i understand that, I'm just saying that trusting patches backfired in the past and not everyone has the luxury to have testing and production separately.

2

u/Amiga07800 5d ago

Even like that… not patching is a luxury you can’t afford anymore and it’s no more risky like it might have been sometimes.

We have over 350 installations in auto updates since >3 years. How many problems? 1 or 2 per year max, usually solvable remotely and limited. Much much LESS problems than if we didn’t auto update.

2

u/Moerkbak 6d ago

auto update eh, lots of people has experienced problems with the 11 switch - blind auto update is not the solution - awareness is.

3

u/Intrepid00 6d ago

Just set the auto-update to be weekly on a weekend. If there is a problem it will be pulled before that and not during business hours. You think for enterprise we are manually updating? Nah fuck that. We push and pray a week after release.

1

u/Amiga07800 6d ago

And the ones that did not auto update were hacked ou could be hacked anytime… you don’t read the CVE and look at their severity?

We are in the AI time (especially Mythos) and not immediately auto update isn’t an option anymore.

Hackers find failures faster than developers can patch them.

The world has changed. What could have been see as precautions for a single small system at start of 2025 isn’t true anymore now.

Professional installer (IT and electronic engineer, Unifi UFSP / UWA / URSCA, full AMX, Crestron, Official state HAM radio,… and more).

3

u/icantshoot 6d ago

Every software there is has had increased amount of security issues. Its not because the software is bad (well kind of it is) but these exploits and holes are found with more increasing pace due to AI and such. Good news is that there should be less vulnerabilities found later on, unless further mistakes are made.

10

u/daxy01 7d ago

Even if they’re running an affected version, getting to exploit it is going to be difficult.
If I’m correct , the database is not accessible apart from the device itself. So you need to have local access to your UCG or UDM. If an attacker has that, well, you got other problems… 😀. I mean… I know there is a curl vulnerability as well (not sure of Unifi fixed it yet). Kinda critical one, but you need local access. So vulnerable, not exploitable. Many of CVEs are like that.

Next… with the sophisticated LLM models we’ll see an influx in vulnerabilities. They key is to reduce exposure to the local system and for the most part you’re good… don’t just say “it has a CVE, the world is ending!!!”. Think a bit further😀

<end rant>

7

u/PhatOofxD 7d ago

If anyone is exposing postgres externally well that's on them

1

u/agentbanks28 6d ago

So sick of this AI CVE bs. The exploits are hard as hell to even exploit and what you would need to do to exploit. And then social media and everything just blows it up. Just becoming a nightmare.