Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105165 Overview
CVE-2026-105165 affects the devopspolis secrets-replicator project up to version 0.4.0. The vulnerability resides in the process_single_secret function within src/handler.py, part of the AssumeRole Handler component. Manipulation of the external_id argument leads to incorrect permission assignment [CWE-275], exposing cross-account AWS Secrets Manager operations to confused-deputy conditions. The issue is remotely exploitable and requires low-level authenticated privileges. Upgrading to version 0.5.0, which includes patch b42239405fbf4fae3c3f0048fc0b4225112edceb, remediates the flaw.
Critical Impact
The AssumeRole flow omits propagation of the ExternalId parameter to AWS Security Token Service (STS), weakening cross-account trust boundaries and enabling confused-deputy attacks against replicated secrets.
Affected Products
- devopspolis secrets-replicator version 0.4.0
- devopspolis secrets-replicator prior releases up to 0.4.0
- Deployments relying on the AssumeRole Handler for cross-account AWS secret replication
Discovery Timeline
- 2026-10-04 - CVE-2026-105165 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105165
Vulnerability Analysis
The secrets-replicator tool replicates AWS Secrets Manager entries across accounts and regions. For cross-account destinations, the handler calls sts:AssumeRole to obtain temporary credentials. In vulnerable releases, the client factory accepts a role_arn but ignores the external_id configured on the destination. As a result, the STS AssumeRole request is issued without the ExternalId parameter, defeating the confused-deputy protection that AWS trust policies rely on. An actor with the ability to influence the destination configuration or trigger replication can cause the handler to assume a target role in a path that does not match the destination owner's expectations. The CWE-275 classification reflects an incorrect permission assignment arising from the dropped parameter rather than a direct access-control bypass in the destination role itself.
Root Cause
The AccountDestination dataclass in src/config.py did not expose an external_id field, and src/handler.py constructed its destination client without passing one. Any external_id value configured by operators was silently discarded before reaching boto3's STS call. The patch adds the field and propagates it through the client factory.
Attack Vector
Exploitation occurs over the network against a running replicator with low privileges and no user interaction. An attacker who can submit or alter replication destination parameters, or who controls a role ARN whose trust policy is misconfigured to accept callers without an ExternalId check, can obtain temporary credentials in the target account. The scope is limited to the confidentiality, integrity, and availability of secrets reachable by the assumed role.
# Patch: src/config.py — add ExternalId to destination model
region: str # Destination AWS region
account_role_arn: Optional[str] = None # Role ARN for cross-account (if different account)
+ external_id: Optional[str] = None # External ID for sts:AssumeRole (confused-deputy protection)
secret_names: Optional[str] = None # Comma-separated list of name mapping secret names
secret_names_cache_ttl: int = 300 # Cache TTL for name mappings (seconds)
kms_key_id: Optional[str] = None # KMS key ID for encryption (optional)
# Patch: src/handler.py — propagate external_id to STS AssumeRole
dest_client = create_secrets_manager_client(
- region=destination.region, role_arn=destination.account_role_arn
+ region=destination.region,
+ role_arn=destination.account_role_arn,
+ external_id=destination.external_id,
)
Source: GitHub Commit b4223940
Detection Methods for CVE-2026-105165
Indicators of Compromise
- CloudTrail AssumeRole events targeting replication destination roles that lack an externalId request parameter.
- Unexpected GetSecretValue, CreateSecret, or PutSecretValue activity in destination accounts originating from the replicator's role chain.
- Deployed secrets-replicator container or Lambda images pinned to versions 0.4.0 or earlier.
Detection Strategies
- Inventory CI/CD and runtime environments to identify secrets-replicator releases and compare against the fixed version 0.5.0.
- Query AWS CloudTrail for sts:AssumeRole calls to replication roles and alert when requestParameters.externalId is absent.
- Review IAM trust policies on destination roles to confirm an sts:ExternalId condition is enforced.
Monitoring Recommendations
- Forward CloudTrail and Secrets Manager data events into a central analytics pipeline for correlation across accounts.
- Baseline normal replicator activity (source account, role ARN, destination regions) and alert on deviations.
- Monitor configuration changes to AccountDestination entries, especially additions or removals of external_id values.
How to Mitigate CVE-2026-105165
Immediate Actions Required
- Upgrade secrets-replicator to version 0.5.0 or later, which includes commit b42239405fbf4fae3c3f0048fc0b4225112edceb.
- Add an sts:ExternalId condition to the trust policy of every cross-account role used by the replicator.
- Rotate secrets replicated through the vulnerable version if destination roles lacked ExternalId enforcement.
Patch Information
The fix is published in GitHub Release v0.5.0. The relevant source changes are tracked in GitHub Commit b4223940. Additional advisory metadata is available at VulDB CVE-2026-105165 and the upstream GitHub Secrets Replicator repository.
Workarounds
- Restrict who can modify replication destination configuration to a small, audited set of operators.
- Enforce sts:ExternalId conditions in destination role trust policies so AssumeRole without the parameter is denied by AWS.
- Scope destination roles to the minimum Secrets Manager actions and resources required for replication.
# Example destination role trust policy enforcing ExternalId
cat <<'EOF' > trust-policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::<SOURCE_ACCOUNT_ID>:role/secrets-replicator" },
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": { "sts:ExternalId": "<UNIQUE_EXTERNAL_ID>" }
}
}
]
}
EOF
aws iam update-assume-role-policy \
--role-name secrets-replicator-dest \
--policy-document file://trust-policy.json
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

