CVE-2026-62272

ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths

Published Nov 26, 2026 CVSS 4.0 · 2 Low EPSS n/a KEV · Not listed
Description
Relative Path Traversal vulnerability in ex-aws ex_aws_lambda (ExAws.Lambda module) allows an attacker to redirect an AWS Lambda control-plane request at an unintended resource by injecting path traversal sequences into a caller-supplied identifier.

This vulnerability is associated with program file lib/ex_aws/lambda.ex and program routines ExAws.Lambda.add_permission/5, ExAws.Lambda.delete_event_source_mapping/1, ExAws.Lambda.delete_function/1, ExAws.Lambda.get_event_source_mapping/1, ExAws.Lambda.get_function/1, ExAws.Lambda.get_function_configuration/1, ExAws.Lambda.get_policy/1, ExAws.Lambda.invoke/4, ExAws.Lambda.invoke_async/2, ExAws.Lambda.remove_permission/2, ExAws.Lambda.update_event_source_mapping/2, ExAws.Lambda.update_function_code/2, ExAws.Lambda.update_function_configuration/2.

ExAws.Lambda builds every request path by interpolating caller-supplied identifiers (function names, ARNs, UUIDs, statement IDs) directly into the URL with plain string interpolation, without percent-encoding or validation. The shared request helper only encodes query parameters, never the path, so path metacharacters such as / and .. reach the wire unchanged. An application that passes an untrusted or user-influenced identifier into an ExAws.Lambda operation can therefore have its request steered at a different Lambda resource: a ../ segment climbs out of the intended /2015-03-31/functions/<name> slot and, once the .. is normalized by the HTTP client or the AWS endpoint, addresses a sibling function in the same account. The signed credentials and the HTTP method are unchanged, so the request still succeeds against the wrong resource. Affected operations include function deletion, invocation, configuration updates, and permission changes. Applications that only pass hardcoded or strictly validated identifiers are not affected.

This issue affects ex_aws_lambda: from 2.0.1 before 2.2.0.

Analysis

AI-generated

Technical impact

A relative path traversal flaw exists in the ExAws.Lambda module because caller‑supplied identifiers such as function names, ARNs, or UUIDs are interpolated directly into the request URL without percent‑encoding or validation. By inserting traversal sequences like ../, an attacker can redirect a Lambda control‑plane API request to an unintended sibling resource. The signed AWS credentials and HTTP method remain unchanged, so the request succeeds against the wrong Lambda function, enabling actions such as deletion, invocation, configuration changes, or permission updates on that function. The weakness is a classic CWE‑23 path traversal, potentially compromising the confidentiality, integrity, and availability of Lambda resources.

Affected Systems

The vulnerability affects the ex‑aws ExAws.Lambda library, version 2.0.1 through versions prior to 2.2.0. All operations that incorporate caller‑supplied identifiers—add_permission, delete_event_source_mapping, delete_function, get_event_source_mapping, get_function, get_function_configuration, get_policy, invoke, invoke_async, remove_permission, update_event_source_mapping, update_function_code, and update_function_configuration—are susceptible. Applications using this library with untrusted or dynamically supplied identifiers are exposed.

Risk and Exploitability

The CVSS score of 2 indicates low intrinsic severity, and the EPSS score is not available. The vulnerability is not listed in CISA KEV. Exploitation requires that an application forwards untrusted identifiers to ExAws.Lambda operations, which is common in injection‑prone code or poorly validated API endpoints. Once exploited, the attacker gains the ability to manipulate Lambda functions in the same AWS account, but does not obtain remote code execution on the client or service side. The risk is mitigated by applying the patch or by guarding inputs, but the potential impact warrants prompt remediation.

Remediation

Vendor Workaround

Validate each caller-supplied identifier against AWS Lambda's permitted name and ARN character set before passing it to an ExAws.Lambda operation, or percent-encode each identifier segment (for example URI.encode(segment, &URI.char_unreserved?/1)) so that path metacharacters cannot alter the request path.


OpenCVE Recommended Actions

  • Upgrade ex_aws_lambda to version 2.2.0 or later to apply the fix
  • Validate or percent‑encode any caller‑supplied identifiers against AWS Lambda's allowed character set before invoking ExAws.Lambda operations
  • Review application code to ensure only trusted identifiers are sent to Lambda operations and apply least‑privilege IAM policies

Generated by OpenCVE AI on November 26, 2026 at 15:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Relative Path Traversal vulnerability in ex-aws ex_aws_lambda (ExAws.Lambda module) allows an attacker to redirect an AWS Lambda control-plane request at an unintended resource by injecting path traversal sequences into a caller-supplied identifier. This vulnerability is associated with program file lib/ex_aws/lambda.ex and program routines ExAws.Lambda.add_permission/5, ExAws.Lambda.delete_event_source_mapping/1, ExAws.Lambda.delete_function/1, ExAws.Lambda.get_event_source_mapping/1, ExAws.Lambda.get_function/1, ExAws.Lambda.get_function_configuration/1, ExAws.Lambda.get_policy/1, ExAws.Lambda.invoke/4, ExAws.Lambda.invoke_async/2, ExAws.Lambda.remove_permission/2, ExAws.Lambda.update_event_source_mapping/2, ExAws.Lambda.update_function_code/2, ExAws.Lambda.update_function_configuration/2. ExAws.Lambda builds every request path by interpolating caller-supplied identifiers (function names, ARNs, UUIDs, statement IDs) directly into the URL with plain string interpolation, without percent-encoding or validation. The shared request helper only encodes query parameters, never the path, so path metacharacters such as / and .. reach the wire unchanged. An application that passes an untrusted or user-influenced identifier into an ExAws.Lambda operation can therefore have its request steered at a different Lambda resource: a ../ segment climbs out of the intended /2015-03-31/functions/<name> slot and, once the .. is normalized by the HTTP client or the AWS endpoint, addresses a sibling function in the same account. The signed credentials and the HTTP method are unchanged, so the request still succeeds against the wrong resource. Affected operations include function deletion, invocation, configuration updates, and permission changes. Applications that only pass hardcoded or strictly validated identifiers are not affected. This issue affects ex_aws_lambda: from 2.0.1 before 2.2.0.
Title ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths
First Time appeared Ex-aws
Ex-aws ex Aws Lambda
Weaknesses CWE-23
CPEs cpe:2.3:a:ex-aws:ex_aws_lambda:*:*:*:*:*:*:*:*
Vendors & Products Ex-aws
Ex-aws ex Aws Lambda
References
Metrics cvssV4_0

{'score': 2, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L'}

Weaknesses
  • CWE-23

    Relative Path Traversal

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 26, 2026, 1:10 PM
Reserved
Jul 13, 2026, 6:06 PM
Status
Received
Published
Nov 26, 2026, 1:16 PM
Modified
Nov 26, 2026, 1:16 PM