CVE-2026-62270
published medium CVSS 4.0 · 5.9Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ex-aws | — | ex_aws_dynamo2.0.0 to < 4.3.0 · Other versions: unaffected | Affected | Not stated | EEF |
| ex-aws | — | ex-aws/ex_aws_dynamoex_aws_dynamo · a760463986f056937e61f5cd1c14e068c259d336 to < 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ex-aws | ex_aws_dynamo | 2.0.0 to < 4.3.0 (affected · semver)Default: unaffected | EEF · cna |
| ex-aws | ex_aws_dynamo | a760463986f056937e61f5cd1c14e068c259d336 to < 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-1287 CWE-1287 Improper Validation of Specified Type of Input
References
5- EEF CNA record for CVE-2026-62270 https://cna.erlef.org/cves/CVE-2026-62270.html
- Fix commit 8d1f1d8 in ex-aws/ex_aws_dynamo https://github.com/ex-aws/ex_aws_dynamo/commit/8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413
- Introducing commit a760463 in ex-aws/ex_aws_dynamo https://github.com/ex-aws/ex_aws_dynamo/commit/a760463986f056937e61f5cd1c14e068c259d336
- https://github.com/ex-aws/ex_aws_dynamo/security/advisories/GHSA-9776-rh77-6wp6
- OSV record EEF-CVE-2026-62270 https://osv.dev/vulnerability/EEF-CVE-2026-62270
Provider assertions
2EEF · cna
Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2da05831f54a8cd20ccab213bf0f420b75bf6f8501253a48628351f04a8e0cff
- Ingested
- 01 Dec 2026, 19:45:58 UTC
- Source record
- Official CVE record