CVE-2026-124501
Description
A flaw was found in moto. In the AWS Batch emulation component, improper privilege management occurs when processing container settings for privileged execution and volume mounts. A remote attacker can exploit this issue by submitting manipulated job parameters, potentially allowing containers to run with unauthorized elevated privileges.
Statement
This vulnerability is rated as Important rather than Moderate because unauthenticated remote actors can escape container boundaries and achieve elevated privileges on the underlying host. In Red Hat environments, Moto is primarily utilized within isolated testing and development workflows rather than in production deployments. The threat surfaces when the AWS Batch emulation interface is exposed over a network, permitting untrusted job definitions to mount sensitive host directories or execute with unrestricted privileges.
Mitigation
Restrict access to the mock service to the local host or trusted networks.
1. Configure the service to bind strictly to the loopback interface (127.0.0.1) instead of public interfaces (0.0.0.0).
2. If the service must run on a networked host, block external access to the listening port using firewalld:
firewall-cmd --permanent --remove-port=<PORT>/tcp
firewall-cmd --reload
Warning: Reloading firewalld immediately applies configuration changes and can disrupt active network sessions or alter firewall rules across the system.
3. Restrict host permissions by ensuring the service does not run as root and does not have access to the host Docker daemon socket (/var/run/docker.sock).
Caveat: Restricting network reachability prevents remote test clients and external systems from communicating with the mock AWS Batch API.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.3 | N/A | 7.3 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | Low | N/A | Low |
| Integrity Impact | Low | N/A | Low |
| Availability Impact | Low | N/A | Low |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RC:C
Understanding the Weakness (CWE)
Access Control
Technical Impact: Gain Privileges or Assume Identity
A user can access restricted functionality and/or sensitive information that may include administrative functionality and user accounts.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.