ID CVE-2022-29162
Summary runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. A bug was found in runc prior to version 1.1.2 where `runc exec --cap` created processes with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set. This bug has been fixed in runc 1.1.2. This fix changes `runc exec --cap` behavior such that the additional capabilities granted to the process being executed (as specified via `--cap` arguments) do not include inheritable capabilities. In addition, `runc spec` is changed to not set any inheritable capabilities in the created example OCI spec (`config.json`) file.
References
Vulnerable Configurations
  • cpe:2.3:a:linuxfoundation:runc:-:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:-:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.5:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.6:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.7:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.8:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.8:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.0.9:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.0.9:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:0.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:0.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc10:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc10:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc2:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc2:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc3:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc3:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc4:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc4:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc5:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc5:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc6:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc6:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc7:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc7:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc8:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc8:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc9:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc9:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc90:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc90:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc91:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc91:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc92:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc92:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc93:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc93:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc94:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc94:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.0:rc95:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.0:rc95:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.1.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.1.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:linuxfoundation:runc:1.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:linuxfoundation:runc:1.1.1:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
CVSS
Base: 4.6 (as of 27-03-2023 - 18:15)
Impact:
Exploitability:
CWE CWE-276
CAPEC
  • Web Logs Tampering
    Web Logs Tampering attacks involve an attacker injecting, deleting or otherwise tampering with the contents of web logs typically for the purposes of masking other malicious behavior. Additionally, writing malicious data to log files may target jobs, filters, reports, and other agents that process the logs in an asynchronous attack pattern. This pattern of attack is similar to "Log Injection-Tampering-Forging" except that in this case, the attack is targeting the logs of the web server and not the application.
  • Accessing Functionality Not Properly Constrained by ACLs
    In applications, particularly web applications, access to functionality is mitigated by an authorization framework. This framework maps Access Control Lists (ACLs) to elements of the application's functionality; particularly URL's for web apps. In the case that the administrator failed to specify an ACL for a particular element, an attacker may be able to access it with impunity. An attacker with the ability to access functionality not properly constrained by ACLs can obtain sensitive information and possibly compromise the entire application. Such an attacker can access resources that must be available only to users at a higher privilege level, can access management sections of the application, or can run queries for data that they otherwise not supposed to.
  • Directory Indexing
    An adversary crafts a request to a target that results in the target listing/indexing the content of a directory as output. One common method of triggering directory contents as output is to construct a request containing a path that terminates in a directory name rather than a file name since many applications are configured to provide a list of the directory's contents when such a request is received. An adversary can use this to explore the directory tree on a target as well as learn the names of files. This can often end up revealing test files, backup files, temporary files, hidden files, configuration files, user accounts, script contents, as well as naming conventions, all of which can be used by an attacker to mount additional attacks.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:L/AC:L/Au:N/C:P/I:P/A:P
Last major update 27-03-2023 - 18:15
Published 17-05-2022 - 21:15
Last modified 27-03-2023 - 18:15
Back to Top