SEVERITY NOT PROVIDED · CVSS 4.0 EPSS 0.2% · 8th percentile CWE-23

CVE-2026-62272: ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths

Published 2026-11-26 · Updated 2026-11-26 · Also known as EEF-CVE-2026-62272, GHSA-rxg9-76jv-f68p

Summary

The ex_aws_lambda library for Elixir allows attackers to inject path traversal sequences into AWS Lambda request identifiers, potentially redirecting operations like delete or invoke to unintended functions. Applications using this library with user-supplied identifiers between versions 2.0.1 and 2.2.0 should be updated immediately.

Who is affected

Applications using ex_aws_lambda versions 2.0.1 through 2.2.0 that pass user-controlled function names, ARNs, UUIDs, or statement IDs to Lambda operations such as delete_function, invoke, or update_function are at risk. An attacker can manipulate the request path to target sibling functions in the same AWS account, enabling unauthorized deletion, invocation, or configuration changes. The vulnerability requires that user-supplied or untrusted identifiers reach Lambda operations without sanitization. Hardcoded or fully validated identifiers are not affected.

Exploitability

The CVSS 4.0 vector rates this as low severity for privileges required and low for attack scope, reflecting that exploitation requires local or specific conditions. Attack complexity is low, as only simple path injection (e.g., '../') is needed. No public exploits or CISA KEV listing are documented, and EPSS data is not yet available.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Hex ex_aws_lambda >= 2.0.1, < 2.2.0 2.2.0 mix deps.update ex_aws_lambda

CVSS 4.0 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

Attack vectorLocal
Attack complexityLow
Attack requirementsPresent
Privileges requiredLow
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)Low
Availability (vulnerable system)Low
Confidentiality (subsequent systems)None
Integrity (subsequent systems)Low
Availability (subsequent systems)Low

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What is CVE-2026-62272?

It is a path traversal vulnerability in the ex_aws_lambda library where user-supplied identifiers in AWS Lambda API requests are not sanitized, allowing attackers to manipulate request paths and affect unintended Lambda functions.

Which versions are affected?

Versions 2.0.1 through 2.1.x of ex_aws_lambda, with the issue resolved in version 2.2.0.

Can this be exploited remotely?

Remote exploitation is possible if an attacker can influence the identifiers passed to ExAws.Lambda operations, but it requires the application to accept untrusted input and not sanitize it before making requests.

Original advisory description
## Summary 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. ## Details **1. Path construction.** Every operation in `lib/ex_aws/lambda.ex` builds its request path by interpolating a caller-supplied identifier (`function_name`, `function_arn`, `uuid`, `source_mapping_uuid` or `statement_id`) into a string, for example `"/2015-03-31/functions/#{function_name}"` in `delete_function/1`. **2. No encoding.** The shared `request/6` helper encodes only the query parameters and passes the path through to the operation verbatim, and no identifier is checked against Lambda's name and ARN character set. Path metacharacters such as `/`, `..`, `?` and `#` reach the wire unchanged. **3. Redirected request.** A `..` segment climbs out of the intended `/2015-03-31/functions/<name>` slot. Once the HTTP client or the AWS endpoint normalizes it, the request addresses a sibling resource. The HTTP method and the signed credentials are unchanged, so the delete, invoke, configuration update or permission change succeeds against the wrong function in the same account. ## Proof of concept 1. An application lets a user delete their own Lambda function by name and passes the name to `ExAws.Lambda.delete_function/1 |> ExAws.request()`. 2. The application intends to delete `tenant-a-fn`; the attacker supplies the name `tenant-a-fn/../victim-fn`. 3. `delete_function/1` interpolates it into `/2015-03-31/functions/tenant-a-fn/../victim-fn`, and `request/6` leaves the path untouched. 4. The signed `DELETE` request goes out with the literal `/../` in its path. 5. Once the `..` is normalized, the request addresses `/2015-03-31/functions/victim-fn` and deletes a function other than the intended one. ## Impact This is an input-validation / path-injection issue in request construction. It affects any application using `ex_aws_lambda` that passes user- or tenant-supplied identifiers (`function_name`, `function_arn`, `uuid`, `source_mapping_uuid`, `statement_id`) into `ExAws.Lambda` operations without sanitizing them first, typically apps that expose Lambda management behind an HTTP boundary. The consequence is cross-resource action: a control-plane call (delete, invoke, update configuration, add/remove permission) executed against a Lambda function other than the intended one, within the same account and credentials. Applications that only ever pass hardcoded or strictly validated names are unaffected. ## Workarounds 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. ## Configurations The affected application must pass an untrusted or user-influenced identifier (function name, ARN, UUID, source mapping UUID, or statement ID) into an `ExAws.Lambda` operation without first validating it against the AWS Lambda name and ARN character set. Exploitation additionally depends on the configured HTTP client or the AWS endpoint normalizing `..` path segments before routing. Applications that only ever pass hardcoded or strictly validated identifiers are not affected.

References

Source records: EEF-CVE-2026-62272 (OSV.dev) · EPSS by FIRST, 2026-11-28.