Security Vulnerability Report
中文
CVE-2026-6967 CVSS 5.9 MEDIUM

CVE-2026-6967

Published: 2026-04-24 20:16:29
Last Modified: 2026-05-06 15:32:38
Source: ff89ba41-3aa1-4d27-914a-91399e9639e5

Description

Missing expiration, hash, and length enforcement in delegated metadata validation in awslabs/tough before tough-v0.22.0 allows remote authenticated users with delegated signing authority to bypass TUF specification integrity checks for delegated targets metadata and poison the local metadata cache, because load_delegations does not apply the same validation checks as the top-level targets metadata path. We recommend you upgrade to tough-v0.22.0 / tuftool-v0.15.0.

CVSS Details

CVSS Score
5.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L

Configurations (Affected Products)

cpe:2.3:a:amazon:tough:*:*:*:*:*:rust:*:* - VULNERABLE
cpe:2.3:a:amazon:tuftool:*:*:*:*:*:rust:*:* - VULNERABLE
awslabs/tough < tough-v0.22.0
awslabs/tuftool < tuftool-v0.15.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// Conceptual PoC for CVE-2026-6967 // This demonstrates the logic flaw in load_delegations where expiration and hashes are not checked. // Vulnerable function simulation (simplified) fn load_delegations_vulnerable(metadata: &DelegatedMetadata) -> Result<(), Error> { // 1. Check signature (Present in vulnerable code) if !verify_signature(&metadata.signature) { return Err(Error::InvalidSignature); } // VULNERABILITY: The following checks are MISSING in versions < tough-v0.22.0 // if metadata.expires < now() { return Err(Error::Expired); } // if !verify_hashes(&metadata.files) { return Err(Error::HashMismatch); } // if !verify_lengths(&metadata.files) { return Err(Error::LengthMismatch); } // 2. Poison local cache cache_metadata(metadata)?; Ok(()) } // Attacker usage fn main() { let malicious_metadata = DelegatedMetadata { signature: generate_valid_signature(), // Attacker has delegated authority expires: Timestamp::past(), // Expired, but not checked! files: vec![tampered_file()], // Wrong hash, but not checked! }; // This would succeed in the vulnerable version let _ = load_delegations_vulnerable(&malicious_metadata); }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6967", "sourceIdentifier": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "published": "2026-04-24T20:16:29.020", "lastModified": "2026-05-06T15:32:38.257", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Missing expiration, hash, and length enforcement in delegated metadata validation in awslabs/tough before tough-v0.22.0 allows remote authenticated users with delegated signing authority to bypass TUF specification integrity checks for delegated targets metadata and poison the local metadata cache, because load_delegations does not apply the same validation checks as the top-level targets metadata path.\n\nWe recommend you upgrade to tough-v0.22.0 / tuftool-v0.15.0."}], "metrics": {"cvssMetricV40": [{"source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "LOW", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.6, "impactScore": 4.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-345"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:amazon:tough:*:*:*:*:*:rust:*:*", "versionStartIncluding": "0.9.0", "versionEndExcluding": "0.22.0", "matchCriteriaId": "51AC1B2A-ACBA-4ABE-9A31-1132436EEF0F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:amazon:tuftool:*:*:*:*:*:rust:*:*", "versionEndExcluding": "0.15.0", "matchCriteriaId": "E83215AA-4B4B-44C1-A062-B7212CF33EF5"}]}]}], "references": [{"url": "https://aws.amazon.com/security/security-bulletins/2026-019-aws/", "source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "tags": ["Vendor Advisory"]}, {"url": "https://crates.io/crates/tough/0.22.0", "source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "tags": ["Product"]}, {"url": "https://crates.io/crates/tuftool/0.15.0", "source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "tags": ["Product"]}, {"url": "https://github.com/awslabs/tough/releases/tag/tough-v0.22.0", "source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "tags": ["Release Notes"]}, {"url": "https://github.com/awslabs/tough/releases/tag/tuftool-v0.15.0", "source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "tags": ["Release Notes"]}, {"url": "https://github.com/awslabs/tough/security/advisories/GHSA-4v58-8p28-2rq3", "source": "ff89ba41-3aa1-4d27-914a-91399e9639e5", "tags": ["Vendor Advisory"]}]}}