Skip to content

Update omnibus submodule for rack gem cleanup (CVE-2025-61772, CVE-2026-22860, CVE-2026-25500)#4215

Open
lbakerchef wants to merge 3 commits into
mainfrom
rack-gem-cleanup/lbaker
Open

Update omnibus submodule for rack gem cleanup (CVE-2025-61772, CVE-2026-22860, CVE-2026-25500)#4215
lbakerchef wants to merge 3 commits into
mainfrom
rack-gem-cleanup/lbaker

Conversation

@lbakerchef

@lbakerchef lbakerchef commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates the omnibus submodule to pull in the updated ruby_gems_cleanup recipe from chef/chef-server-omnibus-config#23.

See that PR for full details. In short: removes stale rack and rexml gem versions left on disk after chef-server upgrades, which are flagged by CVE scanners even though they are not actively loaded.

CVEs addressed

Jira

CHEF-32453, CHEF-32457, CHEF-32458, CHEF-32459

@lbakerchef lbakerchef requested review from a team as code owners June 19, 2026 03:12
@netlify

netlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

👷 Deploy Preview for chef-server processing.

Name Link
🔨 Latest commit 1fbc8e1
🔍 Latest deploy log https://app.netlify.com/projects/chef-server/deploys/6a4d49063d0a3c0008674d44

@lbakerchef lbakerchef force-pushed the rack-gem-cleanup/lbaker branch from 77beeed to cf1f486 Compare June 19, 2026 03:17
@lbakerchef lbakerchef self-assigned this Jun 19, 2026
…26-22860, CVE-2026-25500)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Lincoln Baker <51833247+lbakerchef@users.noreply.github.com>
@lbakerchef lbakerchef force-pushed the rack-gem-cleanup/lbaker branch from cf1f486 to 46c65f7 Compare June 19, 2026 03:23
@lbakerchef

lbakerchef commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

PRs
#4215
https://github.com/chef/chef-server-omnibus-config/pull/23

omnibus/adhoc
https://buildkite.com/chef/chef-chef-server-main-omnibus-adhoc/builds/8380

$ sudo chef-server-ctl status
 run: bookshelf: (pid 805) 3628s; run: log: (pid 795) 3629s
 run: nginx: (pid 58526) 1619s; run: log: (pid 754) 3630s
 run: oc_bifrost: (pid 778) 3629s; run: log: (pid 777) 3629s
 run: oc_id: (pid 785) 3629s; run: log: (pid 781) 3629s
 run: opensearch: (pid 58481) 1619s; run: log: (pid 771) 3630s
 run: opscode-erchef: (pid 802) 3629s; run: log: (pid 773) 3630s
 run: postgresql: (pid 787) 3629s; run: log: (pid 770) 3630s
 run: redis_lb: (pid 58455) 1621s; run: log: (pid 774) 3630s

$ sudo  chef-server-ctl test
Finished in 3 minutes 40.9 seconds (files took 18.56 seconds to load)
174 examples, 0 failures, 2 pending

# before cleanup
$ find /opt/opscode/embedded -path "*/rack-3*" 2>/dev/null | sort
/opt/opscode/embedded/lib/ruby/gems/3.1.0/gems/rack-3.1.4
/opt/opscode/embedded/lib/ruby/gems/3.1.0/gems/rack-3.2.5
/opt/opscode/embedded/lib/ruby/gems/3.1.0/gems/rack-3.2.6
/opt/opscode/embedded/lib/ruby/gems/3.1.0/specifications/rack-3.1.4.gemspec
/opt/opscode/embedded/lib/ruby/gems/3.1.0/specifications/rack-3.2.5.gemspec
/opt/opscode/embedded/lib/ruby/gems/3.1.0/specifications/rack-3.2.6.gemspec
/opt/opscode/embedded/service/gem/ruby/3.1.0/cache/rack-3.1.4.gem
/opt/opscode/embedded/service/gem/ruby/3.1.0/cache/rack-3.2.6.gem
/opt/opscode/embedded/service/gem/ruby/3.1.0/gems/rack-3.1.4
/opt/opscode/embedded/service/gem/ruby/3.1.0/gems/rack-3.2.6
/opt/opscode/embedded/service/gem/ruby/3.1.0/specifications/rack-3.1.4.gemspec
/opt/opscode/embedded/service/gem/ruby/3.1.0/specifications/rack-3.2.6.gemspec

$ # after cleanup
$ sudo chef-server-ctl reconfigure
...
Infra Phase complete, 44/476 resources updated in 03 minutes 23 seconds
Chef Infra Server Reconfigured!

$ find /opt/opscode/embedded -path "*/rack-3.1.4*" 2>/dev/null | sort
$
$ find /opt/opscode/embedded -path "*/rack-3*" 2>/dev/null | sort
/opt/opscode/embedded/lib/ruby/gems/3.1.0/gems/rack-3.2.5
/opt/opscode/embedded/lib/ruby/gems/3.1.0/gems/rack-3.2.6
/opt/opscode/embedded/lib/ruby/gems/3.1.0/specifications/rack-3.2.5.gemspec
/opt/opscode/embedded/lib/ruby/gems/3.1.0/specifications/rack-3.2.6.gemspec
/opt/opscode/embedded/service/gem/ruby/3.1.0/cache/rack-3.2.6.gem
/opt/opscode/embedded/service/gem/ruby/3.1.0/gems/rack-3.2.6
/opt/opscode/embedded/service/gem/ruby/3.1.0/specifications/rack-3.2.6.gemspec

$ # repo rack versions

$ grep "^    rack " /home/link/chef-server-repos/chef-server/omnibus/Gemfile.lock
   rack (3.2.6)

$ grep "^    rack " /home/link/chef-server-repos/chef-server/src/oc-id/Gemfile.lock
   rack (3.2.6)

$ grep "^    rack " /home/link/chef-server-repos/chef-server/src/chef-server-ctl/Gemfile.lock
   rack (3.2.6)

$ grep "^    rack " /home/link/chef-server-repos/chef-server/oc-chef-pedant/Gemfile.lock
   rack (3.2.6)

$ grep "^    rack " /home/link/chef-server-repos/chef-server-omnibus-config/Gemfile.lock
   rack (3.2.6)

$ gh api "repos/chef/chef/contents/Gemfile.lock?ref=v18.10.17" --jq '.content' | base64 -d | grep "^    rack "
   rack (3.2.5)

$ # running VM rack versions

$ /opt/opscode/embedded/bin/gem list rack
rack (3.2.6, 3.2.5)
rackup (2.3.1)

$ ls /opt/opscode/embedded/service/gem/ruby/3.1.0/gems/ | grep rack
rack-3.2.6
rack-protection-4.2.1
rack-session-2.1.2
rack-test-2.2.0
rackup-2.3.1

lbakerchef and others added 2 commits June 26, 2026 05:44
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Lincoln Baker <51833247+lbakerchef@users.noreply.github.com>
Signed-off-by: Lincoln Baker <51833247+lbakerchef@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant