Download these files and transfer them to /tmp on the AWS Confluence Node
Update the script to reflect your Confluence installation directory. e.g.
INSTALLATION_DIRECTORY=/opt/atlassian/confluence/current
7.4.11
7.11.6
7.12.5
7.13.0 and above
Logged in to AWS Confluence Node (as ec2-user)...
sudo su - root
systemctl stop confluence
chmod 700 /tmp/cve-2021-26084-update.sh
/tmp/cve-2021-26084-update.sh
systemctl start confluence
Once you are happy that the Change is successful...
rm /tmp/cve-2021-26084-update.sh
If you need to backout after the vulnerable jar files are deleted you should terminate the AWS instance, which should restart without this mitigation in place.
Note that you will also need to perform any other manual configuration changes you may have deployed for other issues.