# CVE-2026-62270: Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: High; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **CWE:** CWE-1287
- **Published:** 2026-11-24T12:59:00.667Z
- **Modified:** 2026-11-24T19:12:16.707Z

## Who should check

- Anyone running ex-aws ex\_aws\_dynamo \>= 2.0.0, \< 4.3.0
- Anyone running ex-aws ex\_aws\_dynamo \>= a760463986f056937e61f5cd1c14e068c259d336, \< 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413

## Description

Improper Validation of Specified Type of Input in ExAws.Dynamo.Encoder.encode/2 in ex\_aws\_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB AttributeValue.

The encode/2 function in lib/ex\_aws/dynamo/encoder.ex has one clause per DynamoDB type descriptor ("S", "N", "B", "BOOL", "M", "L", "NS", "SS", "BS", "NULL") that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the ExAws.Dynamo.Encodable protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.

An application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an expression\_attribute\_values entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute's declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.

This issue affects ex\_aws\_dynamo: from 2.0.0 before 4.3.0.

## Affected and fixed versions

- ex-aws ex\_aws\_dynamo: \>= 2.0.0, \< 4.3.0 (cvelist)
- ex-aws ex\_aws\_dynamo: \>= a760463986f056937e61f5cd1c14e068c259d336, \< 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413 (cvelist)

## Mitigation

- Upgrade ex\_aws\_dynamo to 4.3.0 or later.
- Upgrade ex\_aws\_dynamo to 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413 or later.
- Vendor workaround: Validate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors ("S", "N", "B", "BOOL", "M", "L", "NS", "SS", "BS", "NULL") before passing it to ExAws.Dynamo.Encoder.encode/2 or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-62270. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-62270.md
Affected: ex-aws ex_aws_dynamo >= 2.0.0, < 4.3.0; ex-aws ex_aws_dynamo >= a760463986f056937e61f5cd1c14e068c259d336, < 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413
Fixed in: ex-aws ex_aws_dynamo 4.3.0, ex-aws ex_aws_dynamo 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413

Steps:
1. Search this machine and project for ex-aws ex_aws_dynamo: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-62270 being exploited?

There is no confirmed exploitation: CVE-2026-62270 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-62270?

Medium: CVSS 5.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-62270?

ex-aws ex\_aws\_dynamo \>= 2.0.0, \< 4.3.0; ex-aws ex\_aws\_dynamo \>= a760463986f056937e61f5cd1c14e068c259d336, \< 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413.

### Is there a fix for CVE-2026-62270?

Yes. Fixed in ex-aws ex\_aws\_dynamo 4.3.0, ex-aws ex\_aws\_dynamo 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413. Upgrade ex\_aws\_dynamo to 4.3.0 or later. Upgrade ex\_aws\_dynamo to 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413 or later. Vendor workaround: Validate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors ("S", "N", "B", "BOOL", "M", "L", "NS", "SS", "BS", "NULL") before passing it to ExAws.Dynamo.Encoder.encode/2 or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values.

### How do I check if I'm affected by CVE-2026-62270?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ex-aws/ex_aws_dynamo/security/advisories/GHSA-9776-rh77-6wp6>
- patch: <https://github.com/ex-aws/ex_aws_dynamo/commit/a760463986f056937e61f5cd1c14e068c259d336>
- patch: <https://github.com/ex-aws/ex_aws_dynamo/commit/8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413>
- other: <https://cna.erlef.org/cves/CVE-2026-62270.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-62270>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-62270>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-62270> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-62270>
