Description Preview
Overview
This vulnerability (CVE-2023-27561) affects runc, a CLI tool for spawning and running containers according to the OCI specification. The issue is classified as CWE-706 (Incorrect Access Control), allowing attackers to potentially escalate privileges under specific conditions. The vulnerability occurs in the rootfs_linux.go component of libcontainer and represents a regression of a previously fixed vulnerability (CVE-2019-19921).
To successfully exploit this vulnerability, an attacker needs to have the ability to:
- Spawn two containers with custom volume-mount configurations
- Run custom container images
When these conditions are met, the attacker could potentially gain elevated privileges, compromising the security of the host system.
Remediation
To mitigate this vulnerability, users should:
- Update runc to a version newer than 1.1.4 that contains the fix for this vulnerability.
- If immediate updating is not possible, restrict the ability to create containers with custom volume mounts.
- Monitor container activities for suspicious behaviors, especially those involving volume mounts.
- Apply the principle of least privilege when configuring container permissions.
- Consider implementing additional container security measures such as seccomp profiles, AppArmor, or SELinux to add defense-in-depth.
For Debian users, a security update is available as mentioned in the Debian LTS announcement (DLA 3369-1). Fedora users should apply the security updates mentioned in the referenced Fedora package announcements.
References
- Exploit and analysis: https://gist.github.com/LiveOverflow/c937820b688922eb127fb760ce06dab9
- Issue tracking: https://github.com/opencontainers/runc/issues/3751
- Original issue with regression comment: https://github.com/opencontainers/runc/issues/2197#issuecomment-1437617334
- Debian LTS security announcement: https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html
- Fedora security updates:
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ANUGDBJ7NBUMSUFZUSKU3ZMQYZ2Z3STN/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DHGVGGMKGZSJ7YO67TGGPFEHBYMS63VF/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNB2UEDIIJCRQW4WJLZOPQJZXCVSXMLD/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FYVE3GB4OG3BNT5DLQHYO4M5SXX33AQ5/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I6BF24VCZRFTYBTT3T7HDZUOTKOTNPLZ/
- NetApp security advisory: https://security.netapp.com/advisory/ntap-20241206-0004/
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Health Care & Social AssistanceHealth Care & Social Assistance
- Finance and InsuranceFinance and Insurance
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Public AdministrationPublic Administration
- Retail TradeRetail Trade
- Transportation & WarehousingTransportation & Warehousing
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- Educational ServicesEducational Services
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Other Services (except Public Administration)Other Services (except Public Administration)
- UtilitiesUtilities
- InformationInformation
- Wholesale TradeWholesale Trade
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- ConstructionConstruction
- MiningMining
- Real Estate Rental & LeasingReal Estate Rental & Leasing