Forum archive
Upgrading PHP 7.3.29 to PHP 7.3.33
Hi Jeremy,
i hope you are well and safe. i have a quick question. As upgrading the PHP version is not recommended within the turnkey appliances, how about the build from 29 to 33? We are using wordpress turnkey appliance v16 and due to the following Vulnerability: PHP XML Special Character Processing (N21-773) in 29, we want to update the build.
Will this patch fall under the security updates that is pushed regularly or there is a way i can do that manually?
Thanks in advance
Manaslu
In an effort to clarify further, you can not just check the version to know whether a security vulnerability applies or not. Generally, the fixes for security issues are backported to the exact same upstream version (the debian version will get an update like 'debian10u1'), although in some more complex cases, a slightly newer version may be imported (if that's easier and the risk of regressions are low).
To answer your question regarding a specific vulnerability, we need to know the CVE code of the vulnerability. 'N21-773' doesn't seem to relate to any specific PHP vulnerability that I could find? Looking at the php7.3.33 changelog though, I see reference to "XML: Fixed bug #79971 (special character is breaking the path in xml function). (CVE-2021-21707)".
Assuming that CVE-2021-21707 is the vulnerability you are referring to, then you can check the Debian security tracker by going directly to the URL: https://security-tracker.debian.org/tracker/CVE-2021-21707.
As you can see there, it hasn't yet been fixed in any release (other than in unstable/Sid - by virtue of that having a bleeding edge PHP version). It's been tagged as a minor issue and won't receive a patch until the next time they push out a PHP security update (either once they have a few issues to fix, or a high priority issue needs fixing). It seems reasonable to me that the Debian security team are correct to label it minor, when you consider that it was first reported to PHP back in August and they only just pushed out a fix mid November (after mulling over whether it was even a security issue at all). I also note that neither Ubuntu nor Red Hat have patched it yet either.
Unless you have some specific reason to be concerned about that particular vulnerability, I would personally be inclined to just wait until the fix (via a Debian security update) is applied. If you do wish to update to a version that doesn't include that particular bug, then you'll need to install from a third party (as I'm sure I mentioned elsewhere). If you want specific details, please ask and I'll provide more details.
For future reference, you can view all the CVEs related to the PHP 7.3 package (both patched and unpatched) on the Debian security tracker PHP7.3 source package page.
Finally though, you note that you have PHP 7.3.29. Actually you should have 7.3.31! The version jump occurred in DSA-4993 (Debian Security Announcement - see also DSA-4993-1). DSA-4993 fixed CVE-2021-21703 (released mid Oct 2021).
You can check to see if you have that installed like this: