High

AWS SDK for PHP has CloudFront Policy Document Injection via Special Characters

  • Disclosed: 27.03.2026
  • Updated: 11.10.2026 10:22

Summary

This notification is related to the CloudFront signing utilities 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.

Impact

The 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.

Impacted versions: 3.11.7 - 3.371.3

Patches

On 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.

Workarounds

No workarounds are needed, but customers should ensure that the application is following security best practices:

  • Implement proper input validation in application code before passing values to CloudFront signing utilities
  • Update to the latest AWS SDK release on a regular basis
  • Follow AWS security best practices for SDK configuration

References

For any questions or comments about this advisory, it is recommended to contact AWS Security via the vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

Acknowledgement

The Amazon Inspector Security Research team is thanked for identifying this issue and working through the coordinated process.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package aws/aws-sdk-php >= 3.11.7, < 3.371.4 3.371.4

References

CVSS score -
CVSS vector
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
Weakness (CWE)
CWE-150, CWE-20, CWE-74
Platform
Composer
Package
aws/aws-sdk-php
Disclosed
27.03.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-27qh-8cxx-2cr5 - CC BY 4.0

Vulnerability history: aws/aws-sdk-php

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
05.2022 03.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 2

Disclosures per year

  1. 2022: 1
  2. 2023: 1
  3. 2024: 0
  4. 2025: 1
  5. 2026: 1
  1. AWS SDK for PHP has CloudFront Policy Document Injection via Special Characters this entry
    High ghsa-27qh-8cxx-2cr5 >= 3.11.7, < 3.371.4 3.371.4
  2. Medium · 5.3 CVE-2025-14761 < 3.368.0 3.368.0
  3. Medium · 6.0 CVE-2023-51651 < 3.288.1 3.288.1
  4. High · 7.8 CVE-2015-5723 >= 3.0.0, < 3.2.1 3.2.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.