GHSA-27qh-8cxx-2cr5: Aws/aws sdk php AWS SDK For PHP Has Vulnerability
HIGHGHSA-27qh-8cxx-2cr5 is a HIGH aws sdk for php has vulnerability (CWE-20: Improper Input Validation) affecting Aws/aws sdk php libraries in the Packagist ecosystem. The issue involves aws sdk for php has cloudfront policy document injection via special characters. Remediation is available by upgrading affected packages to version 3.371.4.
GHSA-27qh-8cxx-2cr5 at a Glance
How to Fix GHSA-27qh-8cxx-2cr5
To remediate this vulnerability, upgrade all affected Aws/aws sdk php dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade aws/aws-sdk-php to 3.371.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for aws/aws-sdk-php
How to Check if You Are Affected
To determine whether your application is affected by GHSA-27qh-8cxx-2cr5, inspect your project dependencies for Aws/aws sdk php:
inspect dependencies for aws/aws-sdk-php
Analyze the terminal output to locate any version of Aws/aws sdk php in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.371.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Aws/aws sdk php, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-27qh-8cxx-2cr5 Affected Aws/aws sdk php Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aws/aws-sdk-php
|
Packagist |
≥ 3.11.7
< 3.371.4
|
3.371.4
|
References
Frequently Asked Questions
What is GHSA-27qh-8cxx-2cr5?
Which Aws/aws sdk php versions are affected?
What version fixes GHSA-27qh-8cxx-2cr5?
Is aws/aws-sdk-php affected?
What CWE is associated with GHSA-27qh-8cxx-2cr5?
How can I check Packagist dependencies for GHSA-27qh-8cxx-2cr5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-27qh-8cxx-2cr5",
"modified" : "2026-03-27T19:54:59Z",
"published" : "2026-03-27T19:54:58Z",
"aliases" : [ ],
"summary" : "AWS SDK for PHP has CloudFront Policy Document Injection via Special Characters",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "aws/aws-sdk-php"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.11.7"
}, {
"fixed" : "3.371.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.371.3"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/aws-sdk-php/security/advisories/GHSA-27qh-8cxx-2cr5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/aws-sdk-php"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-sdk-php/blob/master/src/CloudFront/Signer.php"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-sdk-php/releases/tag/3.371.4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-150", "CWE-20", "CWE-74" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-27T19:54:58Z",
"nvd_published_at" : null
}
}