CVE-2026-12566: Docker Registry Credential Leak via Unsafe realm Parameter in bbot
CVE-2026-12566 is a vulnerability in bbot's docker_pull module where an attacker positioned between bbot and a Docker registry can intercept and modify the authentication redirect instructions sent by the registry. By tampering with the WWW-Authenticate response header, an attacker could trick bbot into sending authentication tokens to a malicious server under their control instead of the legitimate Docker registry, resulting in credential theft.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 3.1 LOW · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- Weaknesses (CWE)
- CWE-918
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-17 / 2026-06-22
NVD description (verbatim)
The docker_pull module uses the realm parameter from a Docker registry's WWW-Authenticate response header as the authentication endpoint without validation. An attacker in a man-in-the-middle position between bbot and a Docker registry could modify this header to redirect the authentication request to an arbitrary endpoint, potentially leaking authentication tokens.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The docker_pull module fails to validate the realm parameter extracted from a Docker registry's WWW-Authenticate HTTP response header before using it as an authentication endpoint URL. This implements a form of Server-Side Request Forgery (CWE-918) where attacker-controlled input from a registry response is used to determine where authentication credentials are sent. An attacker in a network-layer MITM position can modify the WWW-Authenticate header to specify an attacker-controlled realm URL, causing bbot to leak authentication tokens to that endpoint.
Business impact
Successful exploitation could expose Docker registry credentials used by bbot instances, potentially granting attackers unauthorized access to private container images and registries. In environments where bbot is used for reconnaissance or container scanning, compromise of registry credentials could allow attackers to inject malicious images, modify scanning workflows, or pivot into downstream systems that consume those container images. The practical impact depends on the sensitivity of registries accessed and the scope of bbot's deployment.
Affected systems
bbot instances using the docker_pull module to authenticate against Docker registries are affected. The vulnerability requires user interaction (triggering a docker_pull operation) and a network-layer MITM attack capability, limiting the attack surface to environments where bbot communicates with registries over unencrypted or poorly validated TLS connections. No specific version information is provided in source data; verify the affected version range and patch availability against the vendor advisory.
Exploitability
Exploitation requires an attacker to occupy a man-in-the-middle network position between a bbot instance and a Docker registry, and additionally requires user interaction to trigger the docker_pull operation. These constraints—combined with the need for the victim to use an unprotected or poorly validated registry connection—place this in the LOW severity category. However, in targeted scenarios or penetration testing exercises, an attacker with network access (e.g., on a shared network segment or compromised proxy) could reliably execute this attack.
Remediation
Implement validation of the realm parameter before using it as an authentication endpoint. The realm value should be parsed and validated to ensure it matches the expected registry hostname or is on an approved list. Additionally, ensure all Docker registry communication uses proper TLS validation and certificate pinning where feasible. Review bbot's Docker authentication flow to confirm realm parameters cannot be exploited for SSRF attacks.
Patch guidance
Consult the official bbot security advisory and release notes for the specific patched version that addresses realm parameter validation in the docker_pull module. Apply patches in a test environment first to confirm no regression in docker_pull functionality. Verify that the patch does not break legitimate multi-realm authentication scenarios if your environment uses complex Docker registry setups.
Detection guidance
Monitor bbot logs and network traffic for unexpected authentication attempts to non-standard or unusual hostnames when docker_pull operations are performed. Alert on deviations in the hostname target of Docker authentication requests, particularly if they differ from configured registry endpoints. Network-layer detection is challenging without TLS interception, but HSTS and certificate transparency logs may reveal suspicious realm redirects. Consider requiring explicit TLS validation enforcement and logging of all realm values encountered during registry authentication.
Why prioritize this
Although marked LOW severity, organizations running bbot in threat-intel or container-scanning pipelines should prioritize this patch because compromised Docker registry credentials can have outsized downstream impact. The barrier to exploitation (MITM + user interaction) is non-trivial but achievable in specific network architectures. Prioritize if bbot accesses private or sensitive registries or if your network lacks robust TLS validation controls.
Risk score, explained
CVSS 3.1 score of 3.1 (LOW) reflects the attack vector (network), high complexity (MITM required), lack of privileges needed, requirement for user interaction, unchanged scope, and only low confidentiality impact (token leakage). The score appropriately accounts for the need to position an attacker between bbot and the registry. However, contextual risk depends on the sensitivity of credentials in use and registry access scope.
Frequently asked questions
What exactly happens if an attacker exploits this vulnerability?
An attacker can intercept the Docker registry's authentication response, modify the realm parameter to point to an attacker-controlled server, and cause bbot to send its Docker authentication tokens (e.g., credentials or OAuth tokens) to that malicious server. The attacker then has the leaked credentials and can access Docker registries without bbot's knowledge.
Do I need to be running a specific version of bbot for this to affect me?
The source data does not specify affected versions. You should consult the official bbot security advisory to determine which versions contain this vulnerability and which versions include the fix. Verify your bbot version against that guidance.
Is this vulnerability exploitable over the public Internet?
Exploitation requires the attacker to be positioned between bbot and the Docker registry (MITM), so it is not directly exploitable remotely without network access or control of infrastructure in the communication path. However, shared networks, compromised proxies, or DNS hijacking could enable MITM. The user interaction requirement also adds friction.
What should I do if bbot is only used in air-gapped or internal networks?
Air-gapped or highly isolated networks reduce exposure to MITM attacks. However, internal network access and supply-chain compromises can still pose risk. Apply the patch when available to eliminate the vulnerability entirely, rather than relying on network isolation as the sole control.
This analysis is based on publicly available vulnerability data as of the publication date. Affected version numbers and patch details should be verified against the official bbot vendor security advisory before deployment. No exploit code or proof-of-concept is provided. Organizations should perform their own risk assessment based on their specific use of bbot and Docker registry infrastructure. SEC.co makes no warranty regarding the completeness or accuracy of this analysis. Source: NVD (public-domain), retrieved 2026-07-27. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-53607LOWApostropheCMS prettyUrls SSRF Vulnerability – Network Topology Mapping Risk
- CVE-2025-58175MEDIUMGeoServer SSRF Vulnerability in Proxy Configuration
- CVE-2026-10052MEDIUMQuay SSRF in LDAP/SMTP Validation—Internal Network Reconnaissance Risk
- CVE-2026-10068HIGHSSRF in Shibby Tomato 1.28 miniupnpd (Unmaintained)
- CVE-2026-10107HIGHMoviePilot v2 SSRF in Image Proxy Allows Internal Network Access
- CVE-2026-10177MEDIUMSSRF in Aider-AI Aider 0.86.3 AWS Metadata Endpoint
- CVE-2026-10239MEDIUMJeecgBoot Server-Side Request Forgery (SSRF) in Word Editing Module
- CVE-2026-10240MEDIUMJeecgBoot SSRF Vulnerability in /airag/airagModel/test Endpoint