Menu

1 / 5

Patch PHP2Shell on PHP 7.4 and 8.1 compiled from source, without a panel

DEV Community: php·Seppe Gadeyne·2 days ago
#x86U8JNh
#devto#dev#server#build#php2shell
Reading 0:00
15s threshold

PHP2Shell is fixed in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. If your server runs PHP 5.6 to 8.1 that you or your host compiled from source, there is no release to install. Your 7.4.33 is the last 7.4 release ever, and it is vulnerable. This guide shows how to patch that PHP in place with three scripts. The first reads how your PHP was built. The second rebuilds it with the fix on another machine. The third swaps the new binaries in, with checks and a rollback.

No control panel is needed, no Docker, and nothing is compiled on the server itself.

Earlier this week I wrote about patching PHP 5.6 to 8.1 on our RunCloud servers . Several readers asked the same question: what if I'm not on RunCloud? This article is the answer.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.