Operator SDK <0.15.2 RCE via insecure user_setup /etc/passwd
CVE-2025-7195 Published on August 7, 2025
Operator-sdk: privilege escalation due to incorrect permissions of /etc/passwd
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.
Vulnerability Analysis
CVE-2025-7195 can be exploited with local system access, and requires user privileges. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Timeline
Reported to Red Hat.
Made public. 34 days later.
Weakness Type
Incorrect Default Permissions
During installation, installed file permissions are set to allow anyone to modify those files.
Products Associated with CVE-2025-7195
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-7195 are published in these products:
Affected Versions
operator-framework operator-sdk:- Before 0.15.2 is affected.
- Version v4.17.39-2 and below * is unaffected.
- Version v4.18.25-3 and below * is unaffected.
- Version v4.20.3-3 and below * is unaffected.
- Version v2.6 and below * is unaffected.
- Version v2.6 and below * is unaffected.
- Version v2.6 and below * is unaffected.
- Version v2.6 and below * is unaffected.
- Version v2.6 and below * is unaffected.
- Version v2.6 and below * is unaffected.
- Version v2.6 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version v2.7 and below * is unaffected.
- Version 1765872406 and below * is unaffected.
- Version 1766360304 and below * is unaffected.
- Version 1765669648 and below * is unaffected.
- Version 1765866268 and below * is unaffected.
- Version 1765872399 and below * is unaffected.
- Version 1765872402 and below * is unaffected.
- Version 1765872398 and below * is unaffected.
- Version 1765872400 and below * is unaffected.
- Version v2.9 and below * is unaffected.
- Version v2.9 and below * is unaffected.
- Version v2.9 and below * is unaffected.
- Version v2.9 and below * is unaffected.
- Version v2.9 and below * is unaffected.
- Version v2.9 and below * is unaffected.
- Version v2.9 and below * is unaffected.
- Version v2.9 and below * is unaffected.
- Version 1.8.0 and below * is unaffected.
- Version 1768172669 and below * is unaffected.
- Version v1.3 and below * is unaffected.
- Version v2.11 and below * is unaffected.
- Version v2.11 and below * is unaffected.
- Version v2.11 and below * is unaffected.
- Version v2.11 and below * is unaffected.
- Version v2.12 and below * is unaffected.
- Version v2.12 and below * is unaffected.
- Version v2.12 and below * is unaffected.
- Version v2.12 and below * is unaffected.
- Version v2.12 and below * is unaffected.
- Version v2.12 and below * is unaffected.
- Version v2.12 and below * is unaffected.
- Version 1773285089 and below * is unaffected.
- Version 1773259164 and below * is unaffected.
- Version 1773259182 and below * is unaffected.
- Version 1773358651 and below * is unaffected.
- Version 1773090513 and below * is unaffected.
- Version 1767569821 and below * is unaffected.
- Version 1767829032 and below * is unaffected.
- Version 1767569821 and below * is unaffected.
- Version 1767656229 and below * is unaffected.
- Version 1767829032 and below * is unaffected.
- Version v2.14 and below * is unaffected.
- Version v2.14 and below * is unaffected.
- Version v2.14 and below * is unaffected.
- Version v2.14 and below * is unaffected.
- Version v2.14 and below * is unaffected.
- Version v2.14 and below * is unaffected.
- Version 1769720041 and below * is unaffected.
- Version 1770343757 and below * is unaffected.
- Version 1769721579 and below * is unaffected.
- Version 1770336554 and below * is unaffected.
- Version v4.14-1764178221 and below * is unaffected.
- Version v4.14-1764178222 and below * is unaffected.
- Version v4.14-1764178236 and below * is unaffected.
- Version v4.14-1764178273 and below * is unaffected.
- Version v4.14-1764178715 and below * is unaffected.
- Version v4.14-1764178261 and below * is unaffected.
- Version v4.14-1764178354 and below * is unaffected.
- Version v4.14-1764178419 and below * is unaffected.
- Version v4.14-1764178768 and below * is unaffected.
- Version v4.14-1764178319 and below * is unaffected.
- Version v4.14-1764178386 and below * is unaffected.
- Version v4.14-1764178406 and below * is unaffected.
- Version v4.14-1764178615 and below * is unaffected.
- Version v4.14-1764178379 and below * is unaffected.
- Version v4.14-1764178329 and below * is unaffected.
- Version v4.14-1764178423 and below * is unaffected.
- Version v4.14-1764178419 and below * is unaffected.
- Version v4.14-1764215448 and below * is unaffected.
- Version v4.15-1764176261 and below * is unaffected.
- Version v4.15-1764176342 and below * is unaffected.
- Version v4.15-1764176372 and below * is unaffected.
- Version v4.15-1764176892 and below * is unaffected.
- Version v4.15-1764176485 and below * is unaffected.
- Version v4.15-1764176698 and below * is unaffected.
- Version v4.15-1764176699 and below * is unaffected.
- Version v4.15-1764176675 and below * is unaffected.
- Version v4.15-1764177101 and below * is unaffected.
- Version v4.15-1764176690 and below * is unaffected.
- Version v4.15-1764221806 and below * is unaffected.
- Version v4.15-1764222436 and below * is unaffected.
- Version v4.15-1764177174 and below * is unaffected.
- Version v4.15-1764177033 and below * is unaffected.
- Version v4.15-1764176958 and below * is unaffected.
- Version v4.15-1764177101 and below * is unaffected.
- Version v4.15-1764177020 and below * is unaffected.
- Version v4.15-1764177029 and below * is unaffected.
- Version v4.16-1764168955 and below * is unaffected.
- Version v4.16-1764169118 and below * is unaffected.
- Version v4.16-1764169242 and below * is unaffected.
- Version v4.16-1764169544 and below * is unaffected.
- Version v4.16-1764169347 and below * is unaffected.
- Version v4.16-1764169479 and below * is unaffected.
- Version v4.16-1764169526 and below * is unaffected.
- Version v4.16-1764169464 and below * is unaffected.
- Version v4.16-1764169687 and below * is unaffected.
- Version v4.16-1764169457 and below * is unaffected.
- Version v4.16-1764169527 and below * is unaffected.
- Version v4.16-1764169577 and below * is unaffected.
- Version v4.16-1764169730 and below * is unaffected.
- Version v4.16-1764169598 and below * is unaffected.
- Version v4.16-1764169623 and below * is unaffected.
- Version v4.16-1764169710 and below * is unaffected.
- Version v4.16-1764170019 and below * is unaffected.
- Version v4.16-1764170021 and below * is unaffected.
- Version v4.17-1764167834 and below * is unaffected.
- Version v4.17-1764167795 and below * is unaffected.
- Version v4.17-1764167826 and below * is unaffected.
- Version v4.17-1764167876 and below * is unaffected.
- Version v4.17-1764168179 and below * is unaffected.
- Version v4.17-1764167987 and below * is unaffected.
- Version v4.17-1764168476 and below * is unaffected.
- Version v4.17-1764168475 and below * is unaffected.
- Version v4.17-1764168431 and below * is unaffected.
- Version v4.17-1764168662 and below * is unaffected.
- Version v4.17-1764168475 and below * is unaffected.
- Version v4.17-1764168536 and below * is unaffected.
- Version v4.17-1764168609 and below * is unaffected.
- Version v4.17-1764168731 and below * is unaffected.
- Version v4.17-1764168699 and below * is unaffected.
- Version v4.17-1764168859 and below * is unaffected.
- Version v4.17-1764169063 and below * is unaffected.
- Version v4.17-1764169125 and below * is unaffected.
- Version v4.17-1764169222 and below * is unaffected.
- Version v4.18-1761854289 and below * is unaffected.
- Version v4.18-1761854280 and below * is unaffected.
- Version v4.18-1761854280 and below * is unaffected.
- Version v4.18-1761854319 and below * is unaffected.
- Version v4.18-1761855549 and below * is unaffected.
- Version v4.18-1761854321 and below * is unaffected.
- Version v4.18-1761854422 and below * is unaffected.
- Version v4.18-1761854430 and below * is unaffected.
- Version v4.18-1761854457 and below * is unaffected.
- Version v4.18-1761854484 and below * is unaffected.
- Version v4.18-1761854398 and below * is unaffected.
- Version v4.18-1761854494 and below * is unaffected.
- Version v4.18-1761854493 and below * is unaffected.
- Version v4.18-1761854504 and below * is unaffected.
- Version v4.18-1761854489 and below * is unaffected.
- Version v4.18-1761855467 and below * is unaffected.
- Version v4.18-1761854524 and below * is unaffected.
- Version v4.18-1762335558 and below * is unaffected.
- Version v4.18-1761855234 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.