CVE-2026-62272 in ex_aws_lambdainfo

Summary

by MITRE • 11/26/2026

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.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified in the ExAws.Lambda module of the ex-aws library represents a critical Relative Path Traversal flaw that compromises the integrity and confidentiality of AWS Lambda control-plane operations. This security defect arises from an improper handling of user-supplied input within URL path construction, specifically affecting functions such as 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. The root cause lies in the library's approach to building HTTP request paths for AWS Lambda API calls. Instead of utilizing robust encoding mechanisms or validation routines, the code relies on plain string interpolation to embed caller-supplied identifiers directly into the URL path structure. These identifiers typically include function names, Amazon Resource Names (ARNs), UUIDs, and statement IDs. Because the shared request helper only applies percent-encoding to query parameters and neglects the path component entirely, special characters such as forward slashes (/) and double dots (..) are transmitted over the wire without modification. This lack of sanitization allows an attacker who can influence these identifiers to inject relative path traversal sequences that alter the intended destination of the HTTP request.

From a technical perspective, this vulnerability exploits the way HTTP clients and AWS endpoints normalize URL paths. When a malicious actor supplies a function name or identifier containing segments like ../, the resulting URL path deviates from the expected structure defined by the AWS Lambda API specification. For instance, an operation intended to target /2015-03-31/functions/<name> can be redirected if <name> contains traversal sequences that climb out of the designated directory slot. Once normalized by the underlying HTTP client or the AWS endpoint infrastructure, these requests are directed toward sibling resources within the same AWS account rather than the intended function. Crucially, because the vulnerability affects only the path component and not the query parameters or headers, the pre-signed credentials generated by the ex-aws library remain valid for the original service context. Consequently, the forged request is authenticated successfully against the unintended resource. This means that an attacker does not need to bypass authentication mechanisms; they simply redirect a legitimate, signed request to a different target within the same AWS account boundary.

The operational impact of this vulnerability is severe and multifaceted, encompassing data exfiltration, unauthorized configuration changes, denial of service, and privilege escalation risks depending on the specific operation targeted. If an attacker can control the input for functions like get_function or get_policy, they may retrieve sensitive metadata, environment variables, or IAM policies associated with other Lambda functions in the account. For destructive operations such as delete_function or remove_permission, an attacker could inadvertently cause service disruption by deleting critical infrastructure components belonging to different teams or applications within the same AWS account. Furthermore, invoking update_function_code or invoke_async on unintended targets allows for potential remote code execution or data injection into systems that were not intended to receive those payloads. The scope of impact is limited to scenarios where untrusted or user-influenced identifiers are passed directly into these API calls; applications that utilize hardcoded values or implement strict validation before calling the library remain unaffected, highlighting the importance of input sanitization at the application layer as a compensating control.

This vulnerability aligns with Common Weakness Enumeration (CWE) category CWE-22: Improper Limitation of a Pathname to a Restricted Directory, specifically manifesting as relative path traversal in an API client context. It also maps to MITRE ATT&CK techniques related to Resource Hijacking and Defense Evasion, where attackers leverage legitimate credentials to access unauthorized resources or manipulate system configurations without triggering immediate security alerts due to the validity of the authentication tokens. The flaw is present in versions of ex_aws_lambda from 2.0.1 up to but not including version 2.2.0. To mitigate this risk, organizations must upgrade to version 2.2.0 or later where the path encoding logic has been corrected to properly sanitize and encode path segments. In environments where upgrading is not immediately feasible, developers should implement strict input validation on all identifiers passed to ExAws.Lambda functions, ensuring that only alphanumeric characters and safe delimiters are accepted, thereby preventing the injection of traversal sequences before they reach the library's request construction logic.

Responsible

EEF

Reservation

07/13/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00232

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!