CVE-2026-62270
Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2
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.
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
Vulnerability facts
- 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
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- 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:NOpen in CVSS calculator
Show all 11 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
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 11, 2026-11-28)
- CWE
- CWE-1287
- Modified
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
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
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.
More ex-aws vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| LOW 2.0 | CVE-2026-62272 ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths | ex-aws | EPSS 8% | |
| MEDIUM 5.9 | CVE-2026-65622 ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs | ex-aws | EPSS 10% | |
| LOW 2.1 | CVE-2026-62273 XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging | ex-aws | PoCEPSS 31% | |
| MEDIUM 6.9 | CVE-2026-63581 ex_aws_s3 XML injection in bucket-configuration builders | ex-aws | PoCEPSS 31% | |
| LOW 2.1 | CVE-2026-63584 Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key | ex-aws | EPSS 13% |