Skip to content

CVE-2025-7195 Operator-sdk: privilege escalation due to incorrect permissions of /etc/passwd

MediumCVSS 6.4 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Red Hat

Description

Early versions of Operator-SDK provided an insecure method to allow operator containers to run in environments that used a random UID. Operator-SDK before 0.15.2 provided a script, user_setup, which modifies the permissions of the /etc/passwd file to 664 during build time. Developers who used Operator-SDK before 0.15.2 to scaffold their operator may still be impacted by this if the insecure user_setup script is still being used to build new container images.

In affected images, the /etc/passwd file is created during build time with group-writable permissions and a group ownership of root (gid=0). An attacker who can execute commands within an affected container, even as a non-root user, may be able to leverage their membership in the root group to modify the /etc/passwd file. This could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container.

Upgrade path

15 packages: 6 fixed, 2 partially fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
redhat jboss fuse All versions No fix listed No fix yet
redhat multicluster globalhub All versions No fix listed No fix yet
redhat openshift = 4; All versions No fix listed No fix yet
redhat container native virtualization < v4.17.39-2; < v4.18.25-3; < v4.20.3-3; = 4 +1 more v4.17.39-2, v4.18.25-3, v4.20.3-3 Partially fixed
redhat multicluster engine < 1765669648; < 1765866268; < 1765872398; < 1765872399 +8 more 1765669648, 1765866268, 1765872398, 1765872399, 1765872400, 1765872402, 1765872406, 1766360304, v2.6, v2.7, v2.9 Partially fixed
operator-framework github.com/operator-framework/operator-sdk < 0.15.2 0.15.2 Fixed
operator-framework github.com/operator-framework/operator-sdk(Go) < 0.15.2 0.15.2 Fixed
redhat acm < 1767569821; < 1767656229; < 1767829032; < 1769720041 +12 more 1767569821, 1767656229, 1767829032, 1769720041, 1769721579, 1770336554, 1770343757, 1773090513, 1773259164, 1773259182, 1773285089, 1773358651, v2.11, v2.12, v2.14 Fixed
redhat openshift compliance operator < 1.8.0; < 1768172669 1.8.0, 1768172669 Fixed
redhat openshift data foundation < v4.14-1764178221; < v4.14-1764178222; < v4.14-1764178236; < v4.14-1764178261 +84 more v4.14-1764178221, v4.14-1764178222, v4.14-1764178236, v4.14-1764178261, v4.14-1764178273, v4.14-1764178319, v4.14-1764178329, v4.14-1764178354, v4.14-1764178379, v4.14-1764178386, v4.14-1764178406, v4.14-1764178419, v4.14-1764178423, v4.14-1764178615, v4.14-1764178715, v4.14-1764178768, v4.14-1764215448, v4.15-1764176261, v4.15-1764176342, v4.15-1764176372, v4.15-1764176485, v4.15-1764176675, v4.15-1764176690, v4.15-1764176698, v4.15-1764176699, v4.15-1764176892, v4.15-1764176958, v4.15-1764177020, v4.15-1764177029, v4.15-1764177033, v4.15-1764177101, v4.15-1764177174, v4.15-1764221806, v4.15-1764222436, v4.16-1764168955, v4.16-1764169118, v4.16-1764169242, v4.16-1764169347, v4.16-1764169457, v4.16-1764169464, v4.16-1764169479, v4.16-1764169526, v4.16-1764169527, v4.16-1764169544, v4.16-1764169577, v4.16-1764169598, v4.16-1764169623, v4.16-1764169687, v4.16-1764169710, v4.16-1764169730, v4.16-1764170019, v4.16-1764170021, v4.17-1764167795, v4.17-1764167826, v4.17-1764167834, v4.17-1764167876, v4.17-1764167987, v4.17-1764168179, v4.17-1764168431, v4.17-1764168475, v4.17-1764168476, v4.17-1764168536, v4.17-1764168609, v4.17-1764168662, v4.17-1764168699, v4.17-1764168731, v4.17-1764168859, v4.17-1764169063, v4.17-1764169125, v4.17-1764169222, v4.18-1761854280, v4.18-1761854289, v4.18-1761854319, v4.18-1761854321, v4.18-1761854398, v4.18-1761854422, v4.18-1761854430, v4.18-1761854457, v4.18-1761854484, v4.18-1761854489, v4.18-1761854493, v4.18-1761854494, v4.18-1761854504, v4.18-1761854524, v4.18-1761855234, v4.18-1761855467, v4.18-1761855549, v4.18-1762335558 Fixed
redhat openshift file integrity operator < v1.3 v1.3 Fixed
redhat advanced cluster security = 4 No fix listed Versions listed
redhat apicurio registry = 3 No fix listed Versions listed
redhat service registry = 2 No fix listed Versions listed
redhat webterminal = 1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
operator-framework github.com/operator-framework/operator-sdk(Go) < 0.15.2 0.15.2
operator-framework github.com/operator-framework/operator-sdk < 0.15.2 0.15.2
redhat container native virtualization < v4.17.39-2 v4.17.39-2
redhat container native virtualization < v4.18.25-3 v4.18.25-3
redhat container native virtualization < v4.20.3-3 v4.20.3-3
redhat multicluster engine < v2.6 v2.6
redhat multicluster engine < v2.7 v2.7
redhat multicluster engine < 1765872406 1765872406
redhat multicluster engine < 1766360304 1766360304
redhat multicluster engine < 1765669648 1765669648
redhat multicluster engine < 1765866268 1765866268
redhat multicluster engine < 1765872399 1765872399
redhat multicluster engine < 1765872402 1765872402
redhat multicluster engine < 1765872398 1765872398
redhat multicluster engine < 1765872400 1765872400
redhat multicluster engine < v2.9 v2.9
redhat openshift compliance operator < 1.8.0 1.8.0
redhat openshift compliance operator < 1768172669 1768172669
redhat openshift file integrity operator < v1.3 v1.3
redhat acm < v2.11 v2.11
redhat acm < v2.12 v2.12
redhat acm < 1773285089 1773285089
redhat acm < 1773259164 1773259164
redhat acm < 1773259182 1773259182
redhat acm < 1773358651 1773358651
Show 109 more
ProductAffected versionsFixed in
redhat acm < 1773090513 1773090513
redhat acm < 1767569821 1767569821
redhat acm < 1767829032 1767829032
redhat acm < 1767656229 1767656229
redhat acm < v2.14 v2.14
redhat acm < 1769720041 1769720041
redhat acm < 1770343757 1770343757
redhat acm < 1769721579 1769721579
redhat acm < 1770336554 1770336554
redhat openshift data foundation < v4.14-1764178221 v4.14-1764178221
redhat openshift data foundation < v4.14-1764178222 v4.14-1764178222
redhat openshift data foundation < v4.14-1764178236 v4.14-1764178236
redhat openshift data foundation < v4.14-1764178273 v4.14-1764178273
redhat openshift data foundation < v4.14-1764178715 v4.14-1764178715
redhat openshift data foundation < v4.14-1764178261 v4.14-1764178261
redhat openshift data foundation < v4.14-1764178354 v4.14-1764178354
redhat openshift data foundation < v4.14-1764178419 v4.14-1764178419
redhat openshift data foundation < v4.14-1764178768 v4.14-1764178768
redhat openshift data foundation < v4.14-1764178319 v4.14-1764178319
redhat openshift data foundation < v4.14-1764178386 v4.14-1764178386
redhat openshift data foundation < v4.14-1764178406 v4.14-1764178406
redhat openshift data foundation < v4.14-1764178615 v4.14-1764178615
redhat openshift data foundation < v4.14-1764178379 v4.14-1764178379
redhat openshift data foundation < v4.14-1764178329 v4.14-1764178329
redhat openshift data foundation < v4.14-1764178423 v4.14-1764178423
redhat openshift data foundation < v4.14-1764215448 v4.14-1764215448
redhat openshift data foundation < v4.15-1764176261 v4.15-1764176261
redhat openshift data foundation < v4.15-1764176342 v4.15-1764176342
redhat openshift data foundation < v4.15-1764176372 v4.15-1764176372
redhat openshift data foundation < v4.15-1764176892 v4.15-1764176892
redhat openshift data foundation < v4.15-1764176485 v4.15-1764176485
redhat openshift data foundation < v4.15-1764176698 v4.15-1764176698
redhat openshift data foundation < v4.15-1764176699 v4.15-1764176699
redhat openshift data foundation < v4.15-1764176675 v4.15-1764176675
redhat openshift data foundation < v4.15-1764177101 v4.15-1764177101
redhat openshift data foundation < v4.15-1764176690 v4.15-1764176690
redhat openshift data foundation < v4.15-1764221806 v4.15-1764221806
redhat openshift data foundation < v4.15-1764222436 v4.15-1764222436
redhat openshift data foundation < v4.15-1764177174 v4.15-1764177174
redhat openshift data foundation < v4.15-1764177033 v4.15-1764177033
redhat openshift data foundation < v4.15-1764176958 v4.15-1764176958
redhat openshift data foundation < v4.15-1764177020 v4.15-1764177020
redhat openshift data foundation < v4.15-1764177029 v4.15-1764177029
redhat openshift data foundation < v4.16-1764168955 v4.16-1764168955
redhat openshift data foundation < v4.16-1764169118 v4.16-1764169118
redhat openshift data foundation < v4.16-1764169242 v4.16-1764169242
redhat openshift data foundation < v4.16-1764169544 v4.16-1764169544
redhat openshift data foundation < v4.16-1764169347 v4.16-1764169347
redhat openshift data foundation < v4.16-1764169479 v4.16-1764169479
redhat openshift data foundation < v4.16-1764169526 v4.16-1764169526
redhat openshift data foundation < v4.16-1764169464 v4.16-1764169464
redhat openshift data foundation < v4.16-1764169687 v4.16-1764169687
redhat openshift data foundation < v4.16-1764169457 v4.16-1764169457
redhat openshift data foundation < v4.16-1764169527 v4.16-1764169527
redhat openshift data foundation < v4.16-1764169577 v4.16-1764169577
redhat openshift data foundation < v4.16-1764169730 v4.16-1764169730
redhat openshift data foundation < v4.16-1764169598 v4.16-1764169598
redhat openshift data foundation < v4.16-1764169623 v4.16-1764169623
redhat openshift data foundation < v4.16-1764169710 v4.16-1764169710
redhat openshift data foundation < v4.16-1764170019 v4.16-1764170019
redhat openshift data foundation < v4.16-1764170021 v4.16-1764170021
redhat openshift data foundation < v4.17-1764167834 v4.17-1764167834
redhat openshift data foundation < v4.17-1764167795 v4.17-1764167795
redhat openshift data foundation < v4.17-1764167826 v4.17-1764167826
redhat openshift data foundation < v4.17-1764167876 v4.17-1764167876
redhat openshift data foundation < v4.17-1764168179 v4.17-1764168179
redhat openshift data foundation < v4.17-1764167987 v4.17-1764167987
redhat openshift data foundation < v4.17-1764168476 v4.17-1764168476
redhat openshift data foundation < v4.17-1764168475 v4.17-1764168475
redhat openshift data foundation < v4.17-1764168431 v4.17-1764168431
redhat openshift data foundation < v4.17-1764168662 v4.17-1764168662
redhat openshift data foundation < v4.17-1764168536 v4.17-1764168536
redhat openshift data foundation < v4.17-1764168609 v4.17-1764168609
redhat openshift data foundation < v4.17-1764168731 v4.17-1764168731
redhat openshift data foundation < v4.17-1764168699 v4.17-1764168699
redhat openshift data foundation < v4.17-1764168859 v4.17-1764168859
redhat openshift data foundation < v4.17-1764169063 v4.17-1764169063
redhat openshift data foundation < v4.17-1764169125 v4.17-1764169125
redhat openshift data foundation < v4.17-1764169222 v4.17-1764169222
redhat openshift data foundation < v4.18-1761854289 v4.18-1761854289
redhat openshift data foundation < v4.18-1761854280 v4.18-1761854280
redhat openshift data foundation < v4.18-1761854319 v4.18-1761854319
redhat openshift data foundation < v4.18-1761855549 v4.18-1761855549
redhat openshift data foundation < v4.18-1761854321 v4.18-1761854321
redhat openshift data foundation < v4.18-1761854422 v4.18-1761854422
redhat openshift data foundation < v4.18-1761854430 v4.18-1761854430
redhat openshift data foundation < v4.18-1761854457 v4.18-1761854457
redhat openshift data foundation < v4.18-1761854484 v4.18-1761854484
redhat openshift data foundation < v4.18-1761854398 v4.18-1761854398
redhat openshift data foundation < v4.18-1761854494 v4.18-1761854494
redhat openshift data foundation < v4.18-1761854493 v4.18-1761854493
redhat openshift data foundation < v4.18-1761854504 v4.18-1761854504
redhat openshift data foundation < v4.18-1761854489 v4.18-1761854489
redhat openshift data foundation < v4.18-1761855467 v4.18-1761855467
redhat openshift data foundation < v4.18-1761854524 v4.18-1761854524
redhat openshift data foundation < v4.18-1762335558 v4.18-1762335558
redhat openshift data foundation < v4.18-1761855234 v4.18-1761855234
redhat multicluster engine All versions No fix listed
redhat multicluster globalhub All versions No fix listed
redhat acm = 2 No fix listed
redhat advanced cluster security = 4 No fix listed
redhat service registry = 2 No fix listed
redhat apicurio registry = 3 No fix listed
redhat jboss fuse All versions No fix listed
redhat openshift All versions No fix listed
redhat openshift = 4 No fix listed
redhat container native virtualization All versions No fix listed
redhat container native virtualization = 4 No fix listed
redhat webterminal = 1 No fix listed

References