Audit Your AWS Estate for OpenSearch Snapshot-SSRF in Fifteen Minutes

AWS patched OpenSearch snapshot-repo SSRF as CVE-2026-135414, but estates sit on old service software for months. Here's the fifteen-minute audit you'd actually run — enumerate domains, review snapshot IAM, and confirm the primitive without touching production.

Share
Audit Your AWS Estate for OpenSearch Snapshot-SSRF in Fifteen Minutes

This is a field procedure for a bug class, not a CVE explainer. AWS fixed OpenSearch snapshot-repository SSRF last year as CVE-2026-135414, and estates run months behind — a domain still on pre-R20260720 software is a live pivot for any identity that can register a repository. Here is how you audit one in fifteen minutes, from the red-team seat and from the operator side.

Key takeaways - The primitive: a user with manage_snapshots plus es:ESHttpPut plus iam:PassRole can point a snapshot repo at any destination and have the domain's own nodes fetch it (CWE-918). The three-permission bundle is the shape to chase. - It stays vulnerable by drift, not by intent — service software is not instance launch time; the audit has to check versions, not creation dates. - Three moves clear it: enumerate every domain's service software, review who holds the snapshot IAM triple, then confirm the signal without exfiltrating anything. - The fix is scheduled, not instant — so the software check is your early warning, and the IAM review is your control until the maintenance window lands.

Start from a red team's seat

Think about this as a privilege path, not a vulnerability bulletin. A user carrying manage_snapshots on a domain, the ability to call es:ESHttpPut (the call that registers a repository), and iam:PassRole for the domain's execution role — that bundle can name a repository endpoint. The domain's own service-operated nodes connect to it. An internal service, the metadata address, an external host — whichever they choose.

That's the definition of SSRF: a server making requests to a place the operator never approved (AWS bulletin 2026-201-AWS, CVE-2026-135414). The numbers call it Medium — 5.1 on NVD, 5.5 at Tenable — but Medium undersells a position bug. The primitive gets dangerous in combination, and in a shared-account estate 'authenticated user with snapshot rights' describes a lot of legitimate-looking identities.

None of the three permissions is unusual alone. All three on one identity is the finding.

Fifteen minutes, three moves

Everything here runs under an identity that can list the estate — an AWS account that can reach through to the domains, or a role in the organization your audit covers. Assemble that account list first (AWS Organizations members, or the accounts your assumed role can touch), because the commands below are only as complete as the account and region set you iterate over.

One — every domain's service software

Run this from an operator account; it reads nothing sensitive, and service software is what actually needs to be current. You can't describe what you haven't listed, so the first move is the inventory: pull the domains in each region before you describe any of them.

for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws opensearch list-domain-names --region "$region" --output text
done

Then describe each candidate — the version values that decide the outcome:

aws opensearch describe-domain --domain-name <name> \
  --query "DomainStatus.ServiceSoftwareOptions"

Legacy Elasticsearch domains carry the same value under a different client:

aws es describe-elasticsearch-domain --domain-name <name> \
  --query "DomainStatus.ServiceSoftwareOptions"

Anything returning a CurrentVersion older than R20260720 — or with UpdateStatus stuck on PENDING_UPDATE — is a candidate. Loop it across accounts and regions, because no one's memory of where their domains live is reliable. The domain created in 2023 that never got a maintenance bounce is exactly what this catches.

Two — who can register a repository

An IAM review, three entries: - who holds the manage_snapshots permission policy on each domain, - who can call es:ESHttpPut (the registration call), - who holds iam:PassRole for the domain's execution role.

That review is the tightening AWS ships in the bulletin: shrink who can snapshot, shrink who can put and pass.

Three — confirm the signal without exploiting it

You don't exfiltrate to prove this. You confirm the combination is present and the version is stale, and you stop. If you want positive proof the registration primitive works, point a snapshot repository at a listener you control in a sandbox account — a canary endpoint that logs the fetch. Standing that up is trivial — a spare throwaway VM running nc -l, or a static host that records requests AFFILIATE: a cheap disposable Hetzner VM makes a perfectly good canary listener. Either works, so long as the account holding it has nothing worth protecting. Never point it at the production metadata address, never at internal services. Detection, not exploitation, is the point — a log line saying "the fetch happened" is all the confirmation anyone needs.

The fix and the realistic window

Domains run on service software AWS pushes, and the update lands through the maintenance window. aws opensearch update-domain-config does not take a version flag the way an EC2 patch does; you schedule it, and the service moves it. That is precisely why an unpatched domain is a long-running exposure rather than a one-night problem (version management). Until the update lands, IAM is your control.

Two details worth keeping close. The disclosure credit goes to Hesham Ashraf through AWS's coordinated process — a reminder that the people finding these read the same service docs you do. And the affected surface includes domains still on pre-R20260720 software even when they were created long ago: service software is not instance launch time. An inventory that only checks 'when was this domain created' will miss the ones that matter.

My position: treat any 'Medium' SSRF in a managed service as a high-priority repair once your estate touches it. The cost of that caution is maintenance-window friction — scheduled updates interrupt snapshot flows you are half afraid of already. That trade is worth making; the alternative is leaving a pivot in place until the calendar notices.

What the ones you miss look like

When was the last time you ran describe-domain across every region you own? If the answer is a hedge, the hedge is the finding. This class of bug doesn't knock the week it patches — it waits in a domain nobody bounced, with a role that accumulated manage_snapshots along the way.

Snapshot repositories are how OpenSearch backs up. Auditing them is a fifteen-minute reflex, not an archaeology project. Run the version check, tighten the IAM, and the SSRF stops being your drifted-estate problem — which is where this class of bug dies. It's the same discipline you bring to hardening nginx, the same recon habit that finds exposed managed services, and the same base-server hygiene. Aimed at the managed service most inventory tools never enumerate.


## Convertkit Newsletter