Thanks for using Bitnami. Could you please let us know what tool did you use to scan your server? Could you also let us know what PHP version are you running?
sudo php --version
According to the CVEs you have mentioned, the latest LAMP, MAMP and WAMP versions should not be affected. The easier and proper way to solve those issues is launching a new Bitnami LAMP AWS instance with the newer PHP version and migrate the data.
You can get more information about the latest changes shipped in the different Bitnami LAMP Stack releases in the link below