Is nextcloud susceptible to the PHP2shell attack?

I have no support/technical question and have seen the support category. (Be aware that direct support questions will be deleted.)

on

Which general topic do you have

The PHP2shell attacks are starting. Is nextcloud susceptible? If so is there any thing we should do short of shutting down our servers until the PHP patch is available?

So you can shutdown your Nextcloud instance until fixes are out and you applied them.

More info which look reliable from this guy here: CVE-2026-109618 and CVE-2026-109619: What you should do now - Vincent Schmalbach
But yes, turning it off is best you can do or keep on task when the patches arrive later today.
Keep an eye on this page too: https://www.php.net

I think the very least one should do right now is to use firewall rules to make Nextcloud inaccessible from the Internet until a patch is released.

Currently, users can therefore only access the Nextcloud server from the LAN or via VPN.

It would be interesting to know whether this only affects file uploads, which would require authentication (unless they’re uploaded via public shares), or whether any Nextcloud endpoints can be exploited without authentication as well.

If it’s only the former, and you only have trusted users on your Nextcloud instance, or you’re the only user, and you don’t have any public shares that allow random people you don’t trust to upload files, then nothing should happen in theory.

But yeah, as long as we don’t know the full scope of these vulnerabilities, taking the instance offline (or at least making it inaccessible from the internet) is probably a good idea. In larger environments with lots of shares and/or users you can’t fully trust, taking it completely offline would be the safest option.

Btw, these kinds of attacks could theoretically also be carried out from a compromised client device on the LAN, in which case the respective user would probably already be authenticated.

Update: After doing a little more Googling, I found the following…

Conclusion: Taking it offline until the patches are installed seems to be the only 100% safe option.

Thank you for asking, we are aware of the issue. Please see CERT-EU - Critical Vulnerabilities in PHP for information from CERT. We are looking into it and will share more details as soon as we know more.

Linking to

Took my instance offline until I know more.

The patch ist out…

Waiting for Ubuntu Linux 20.04.6.

On debian-security-annouce the packages are announced. apt shows they are available for Trixie.

Is EOL (5 years LTS are done).

Owch! I gota talk to my provider!

You shall do that: Ubuntu Security Notices

Releases: 26.10 - 26.04 - 24.04 - 22.04 but not 20.04

https://deb.sury.org/ already has the patches, if you are on ubuntu or debian, you might want to use that

Now waiting for the patched images. But good to know work is underway.

Are we going to get the fixes deployed into Nextcloud AIO as well soon? (not pushing, just wondering how to continue with those, because I run everything through AIO)