{"answers":{"affected":"2 open source packages ship an affected version, including aws/aws-sdk-php.","exploited":"There is no known exploitation of GHSA-27qh-8cxx-2cr5 in the wild and no public exploit code.","fix":"Upgrade aws/aws-sdk-php to 3.371.4 or later.","what":"GHSA-27qh-8cxx-2cr5 is a code injection vulnerability in aws/aws-sdk-php, published on 27 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-27qh-8cxx-2cr5 and fix it if it is affected.\n\nWhat it is: GHSA-27qh-8cxx-2cr5 is a code injection vulnerability in aws/aws-sdk-php, published on 27 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-27qh-8cxx-2cr5 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aws/aws-sdk-php (Packagist): affected from 3.11.7; fixed in 3.371.4\n- aws/aws-sdk-php (Packagist): affected from 3.11.7; fixed in 3.371.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-27qh-8cxx-2cr5/ (Markdown: https://insights.sbomify.com/GHSA-27qh-8cxx-2cr5/index.md)","id":"GHSA-27qh-8cxx-2cr5","markdown":"https://insights.sbomify.com/GHSA-27qh-8cxx-2cr5/index.md","name":"GHSA-27qh-8cxx-2cr5","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"AWS SDK for PHP","requires_auth":"none","summary":"Special characters in CloudFront signing inputs can alter policy documents, potentially bypassing access restrictions if input validation is missing.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\n\nThis notification is related to the [CloudFront signing utilities](https://github.com/aws/aws-sdk-php/blob/master/src/CloudFront/Signer.php) in the AWS SDK for PHP, which are used to generate Amazon CloudFront signed URLs and signed cookies. A defense-in-depth enhancement has been implemented to improve handling of special characters, such as double quotes and backslashes, in input values.\n\n### Impact\n\nThe CloudFront signing utilities build policy documents that define access restrictions for signed URLs and cookies. If an application passes unsanitized input containing special characters to these utilities, the resulting policy document may not reflect the application's intended access restrictions. While the SDK was functioning safely within the requirements of the shared responsibility model, additional safeguards have been added to support secure customer implementations. Applications that already follow AWS security best practices for input validation are not impacted.\n\n### Impacted versions: 3.11.7 - 3.371.3\n\n### Patches\n\nOn 3/3/2026, an enhancement was made to the AWS SDK for PHP version 3.371.4. The enhancement ensures that special characters in input values are correctly handled. It is recommended to upgrade to the latest version.\n\n### Workarounds\n\nNo workarounds are needed, but customers should ensure that the application is following security best practices:\n\n- Implement proper input validation in application code before passing values to CloudFront signing utilities\n- Update to the latest AWS SDK release on a regular basis\n- Follow AWS security best practices for SDK configuration\n\n### References\n\nFor any questions or comments about this advisory, it is recommended to contact AWS Security via the [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n### Acknowledgement\n\nThe Amazon Inspector Security Research team is thanked for identifying this issue and working through the coordinated process.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"AWS SDK for PHP has CloudFront Policy Document Injection via Special Characters","id":"GHSA-27qh-8cxx-2cr5","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["3.371.4"],"introduced":["3.11.7"],"last_affected":[],"package":"aws/aws-sdk-php","purl":null,"source":"GHSA-27qh-8cxx-2cr5"},{"ecosystem":"Packagist","fixed":["3.371.4"],"introduced":["3.11.7"],"last_affected":[],"package":"aws/aws-sdk-php","purl":"pkg:composer/aws/aws-sdk-php","source":"GHSA-27qh-8cxx-2cr5"}],"products":null,"published":"2026-03-27","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Special characters in CloudFront signing inputs can alter policy documents, potentially bypassing access restrictions if input validation is missing.","url":"https://insights.sbomify.com/GHSA-27qh-8cxx-2cr5/"}