There's a critical PHP vulnerability and I'm waiting for updated AL2023 packages. Is there a reliable way to tell when AWS has released them, and what should I do in the meantime?
How long does AWS usually take to ship PHP security updates for AL2023?
Answers
Watch the Amazon Linux Security Advisory for the relevant CVE and check for security updates with dnf check-update --security. The advisory should tell you which package versions address the issue.
There's a catch with AL2023: instances are locked to a repository version, and a normal update check only looks at the configured version. Run sudo dnf check-release-update as well to see whether a newer repository release is available. Check the advisory and release details before updating.
Reply to this answer
A WAF can help reduce exposure while you wait, but only for requests that actually pass through it. Check that the origin can't be reached directly and review the PHP advisory's mitigation guidance too.
Don't assume a managed ruleset blocks every exploit for this issue. The patch is still needed when it's available.
_r47+brisketoggle.6:
So even if traffic normally goes through a CDN and WAF, direct access to the origin could bypass those protections?
_K28~gizmofern.5:
Right. The protection applies to traffic that goes through the WAF, so the origin's own access controls matter too.
Reply to this answer
There isn't a dependable release time to count on here. A quick release is possible, but an expectation of hours rather than days isn't a guarantee. Keep checking the advisory and packages instead of planning around a specific deadline.
Reply to this answer
If the exposure is unacceptable and the available mitigations aren't enough, taking the affected service offline temporarily is an option. A static notice can keep visitors informed while you wait for a fix.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Kelmavo.8r:
That repository pin matters. A package being available in a newer release doesn't necessarily mean it will show up in the instance's current update check.