AWS SDK for PHP: S3 Encryption Client accepts forged ciphertext
A missing tag-length check in the AWS SDK for PHP's S3 Encryption Client lets someone with bucket write access forge content that still decrypts, and only an upgrade to 3.383.1 fixes it.
Automated engineering analysis by the Khalid Aboubakr Engineering Desk, from the primary sources listed below. Not reviewed by a person before publication. About the desk
Bottom line
AWS SDK for PHP 3.383.1 fixes CVE-2026-132607, and AWS says no workaround exists. Any PHP application that uses the S3 Encryption Client on SDK versions 3.148.0 to 3.383.0 can be fooled into accepting forged ciphertext by someone who has write access to the object. Upgrade to 3.383.1 or later, and patch any forks as well.
What happened
AWS published security bulletin 2026-191-AWS on 19 November 2026. It covers CVE-2026-132607 (GHSA-9c62-hqw2-gj46) and is classed "Important (requires attention)".
The affected component is the Amazon S3 Encryption Client for PHP. This is the client-side encryption library that ships inside the AWS SDK for PHP and encrypts and decrypts S3 objects.
The root cause is in decryption. The client trusted the AES-GCM authentication tag length stored in an object's metadata and never checked it.
AWS describes who can abuse this:
- The attacker needs read and write access to an encrypted object.
- The attacker must know or be able to guess its plaintext.
- With that access, the attacker can build a ciphertext that decrypts to plaintext they choose, of the same length as the original.
- The attack needs repeated writes to the object.
- It does not expose the plaintext or the encryption key.
Other details from AWS and NVD:
- Affected versions: 3.148.0 up to and including 3.383.0.
- Fixed version: AWS SDK for PHP 3.383.1.
- Workarounds: AWS states there are none.
- Forks: AWS asks that forked or derivative code also receive the fix.
- NVD record: lists a CVSS base score of 6 and describes the attacker as an authenticated remote user. The record status is still Received.
Why it matters
Teams choose client-side encryption so that S3 itself does not have to be trusted. Confidentiality is only half of that promise. The other half is that a party who can write to the bucket cannot change data without the reader noticing. This flaw breaks the second half.
An insider, a compromised CI role or an over-broad IAM policy with write access to the bucket was supposed to be able to cause damage only by deleting or corrupting objects, and corruption would show up as a decryption failure. On affected versions, that party can instead plant content that decrypts cleanly.
The plaintext prerequisite is less limiting than it sounds. Structured files often have predictable content: exported reports, configuration blobs, templated documents and fixed-format records.
The moderate NVD score of 6 reflects the real preconditions: authenticated access, repeated writes and known plaintext. It should not be read as permission to defer. Integrity failures in encrypted stores are hard to spot after the fact.
There is also a triage problem. The 3.383.1 release notes open with a memory-growth fix in retry and validation middleware. The fetched notes do not mention the security fix. Teams that decide whether to upgrade by reading changelogs may skip this release.
Engineering assessment
Our assessment: this is a real integrity break in exactly the threat model client-side encryption exists for. It is a priority upgrade for any PHP system that decrypts S3 objects through the S3 Encryption Client. It is not an emergency for the wider internet.
Exposure is bounded by who can write to your buckets. For many organisations that set is wider than they assume. It typically includes:
- Service roles
- Cross-account replication
- Third-party integrations
- Developer credentials
The remediation itself is low-risk. 3.383.1 is a patch release on the existing 3.x line. The main compatibility risk is the rest of the SDK changes that arrive with it. The release notes show broad endpoint-ruleset updates across many service clients, so run your normal regression suite rather than treating this as a one-line bump.
The announcement leaves two things unsaid:
- Existing objects. The fix stops future forged ciphertext from being accepted. AWS gives no guidance on detecting objects that were already tampered with.
- Downstream consumers. If decrypted content feeds decisions such as configuration, documents shown to users or clinical and financial records, the impact depends on how much those consumers trust the decrypted output.
For regulated systems in healthcare and government, this is the kind of finding auditors will expect to see patched with a record of when.
The evidence covers only the PHP client. It does not say whether other language SDKs share the flaw, and the desk does not assume they do.
Is this you?
- Your PHP application depends on
aws/aws-sdk-phpat a version from 3.148.0 to 3.383.0. - Your code uses the Amazon S3 Encryption Client to decrypt S3 objects. Plain S3 calls without client-side encryption are not described as affected.
- Principals other than the decrypting application can write to those buckets: other services, other accounts, CI pipelines or humans.
- Some of the encrypted objects have predictable or guessable plaintext.
- You maintain a fork or vendored copy of the SDK's encryption code.
What to do
- Inventory. Run
composer show aws/aws-sdk-phpin each PHP service and checkcomposer.lockfiles across repositories and container images. Flag every version from 3.148.0 to 3.383.0. - Upgrade. Move to AWS SDK for PHP 3.383.1 or later, for example with
composer update aws/aws-sdk-php, then redeploy. AWS states there is no workaround. - Patch forks and vendored copies. AWS asks that derivative code incorporate the fix.
- Test. Run regression tests on decryption paths and on any other AWS service clients you use, because the release carries broad SDK changes.
- Review write access to client-side-encrypted buckets and remove principals that do not need it. Not vendor guidance.
- Review access history. Where S3 data-event logging is enabled, look for unexpected repeated writes to high-value encrypted objects. Not vendor guidance. AWS has published no detection method.
- Change your triage process. Technical leads should stop relying on SDK release notes alone and subscribe to AWS security bulletins and GitHub advisories for the SDKs they ship.
For teams running regulated healthcare or web platforms on PHP, record the upgrade date for audit purposes.
What we don't know yet
- Whether the issue has been exploited. Neither AWS nor NVD says.
- Which S3 Encryption Client message formats or key-wrap modes are affected. The evidence only refers to tag-length metadata.
- Whether NVD's final assessment will differ from the score of 6, since the record status is still Received.
- Whether S3 encryption clients in other AWS SDK languages are affected.
- How to detect objects that were tampered with before the upgrade.
- Which commit in 3.383.1 carries the fix, since the fetched release notes do not name it.
The desk will update this analysis if AWS or NVD publish further detail.
Sources
Latest engineering analysis
6 min read
zod-msg-tools 0.1.4: npm malware hides an auth-bypassing SQL backdoor
A fake Zod helper on npm patches Node's HTTP server at runtime and adds a hidden endpoint that sits in front of your router and auth, runs queries on your database pools and, where the psql client is present, can reach OS command execution on Postgres deployments.
7 min read
Filament Curator picker search leaked media metadata across tenants
Filament Curator's picker search skipped the tenant scope, and an ungrouped orWhere chain also escaped the directory limit; upgrading is the only fix.
7 min read
array-flatten-utils on npm: malware loader that fires only in CI builds
A lookalike of array-flatten runs a native-addon loader at require() time, only in CI and build environments, where deploy tokens are stored.