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

- Severity: Medium 5.9 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-11-24T12:59:00.667Z
- Modified: 2026-12-01T20:19:12.757Z
- Also known as: EEF-CVE-2026-62270, GHSA-9776-rh77-6wp6
- Weaknesses: CWE-1287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

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

(As written by CVE List.)

## Affected

- ex_aws_dynamo: from 2.0.0 before 4.3.0
- ex-aws/ex_aws_dynamo: from a760463986f056937e61f5cd1c14e068c259d336 before 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413
- ex_aws_dynamo (Hex): from 2.0.0 before 4.3.0
- https://github.com/ex-aws/ex_aws_dynamo: from a760463986f056937e61f5cd1c14e068c259d336 before 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413

## Every score

- EEF: CVSS:4.0 5.9 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/ex-aws/ex_aws_dynamo/security/advisories/GHSA-9776-rh77-6wp6> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-62270.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-62270> (related)
- <https://github.com/ex-aws/ex_aws_dynamo/commit/a760463986f056937e61f5cd1c14e068c259d336> (related, web)
- <https://github.com/ex-aws/ex_aws_dynamo/commit/8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413> (fix, patch)
- <https://hex.pm/packages/ex_aws_dynamo> (package)

## Sources

- CVE List: [CVE-2026-62270](https://www.cve.org/CVERecord?id=CVE-2026-62270), CVE Terms of Use, modified 2026-12-01
- Erlang Ecosystem Foundation: [EEF-CVE-2026-62270](https://osv.dev/vulnerability/EEF-CVE-2026-62270), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-62270](https://nvd.nist.gov/vuln/detail/CVE-2026-62270), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-62270 · Whole record: https://cve.day/CVE-2026-62270.json · Rebuilt by cve.day 2026-12-01T20:32:20.029Z
