Bug 1217156

Summary: VUL-0: CVE-2023-47630: kyverno: Attacker can cause Kyverno user to unintentionally consume insecure image
Product: [openSUSE] openSUSE Distribution Reporter: SMASH SMASH <smash_bz>
Component: SecurityAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Major    
Priority: P5 - None CC: gabriele.sonnu
Version: Leap 15.6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/385158/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-47630:7.1:(AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1217155    

Description SMASH SMASH 2023-11-15 08:37:50 UTC
An issue was found in Kyverno that allowed an attacker to control the digest of images used by Kyverno users. The issue would require the attacker to compromise the registry that the Kyverno fetch their images from. The attacker could then return a vulnerable image to the the user and leverage that to further escalate their position. As such, the attacker would need to know which images the Kyverno user consumes and know of one of multiple exploitable vulnerabilities in previous digests of the images. Alternatively, if the attacker has compromised the registry, they could craft a malicious image with a different digest with intentionally placed vulnerabilities and deliver the image to the user.

An attacker was not be able to control other parameters of the image than the digest by exploiting this vulnerability.

Users pulling their images from trusted registries are not impacted by this vulnerability. There is no evidence of this being exploited in the wild.

The issue has been patched in 1.11.0.

The vulnerability was found during an ongoing security audit of Kyverno conducted by Ada Logics, facilitated by OSTIF and funded by the CNCF.

References:
https://github.com/kyverno/kyverno/security/advisories/GHSA-3hfq-cx9j-923w
Comment 1 Gabriele Sonnu 2023-11-15 08:45:18 UTC
According to the advisory [0], this is fixed in version 1.10.5 and 1.11.0. We already ship the former in factory, so nothing to do.