Read the docs

Improper type validation in ex_aws_dynamo lets input set stored types

Priority LOW 26CWE-1287Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
Low · High · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

ex_aws_dynamo from 2.0.0 before 4.3.0 by ex-aws is affected. The encode/2 function in ExAws.Dynamo.Encoder treats any map containing a DynamoDB type key such as S or M as already encoded and returns it unchanged (CWE-1287). An attacker who controls map data passed into a DynamoDB call can therefore choose the stored attribute's type, bytes and structure, corrupting data or breaking reads of the affected item.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Description from the CNA

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.

Why it matters now

EPSS 0.00264 11th percentileScored 2026-11-30
Fix Fixed ex_aws_dynamo (ex-aws): 4.3.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
ex-awsex_aws_dynamo2.0.0 to before 4.3.04.3.0Patch availableCNA
  • ex_aws_dynamo Vendorex-aws Affected 2.0.0 to before 4.3.0 Fixed in 4.3.0 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*———
  • cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:* Versions — — ·—

Remediation

Upgrade ex_aws_dynamo to 4.3.0, the fixed version.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

  • Fix · CNA ex_aws_dynamo (ex-aws) Fixed in 4.3.0

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-62270
  2. 2026-11-24 Alias added: GHSA-7fgj-xwfv-2vg2

References

  • TI-2026-97430 XML injection in ex_aws_s3 bucket configuration builders CVSS 4.0MEDIUM 6.9
  • TI-2026-97439 XML injection in ExAws S3 batch delete lets attackers remove extra objects CVSS 4.0MEDIUM 5.9
  • TI-2026-97429 XML injection in ex_aws_s3 object and bucket tagging CVSS 4.0LOW 2.1
  • TI-2026-34676 ex_aws_sns SigningCertURL not validated in verify_message/1 CVSS 4.0HIGH 8.7
  • TI-2026-97227 ex_aws IMDSv2 token request follows HTTP redirects (SSRF) CVSS 4.0HIGH 7.6
  • TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape CVSS 4.0HIGH 7.4
See all 16 →

Sources