Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby and rubygem-rexml: patch CVE-2024-49761 #10935

Conversation

Redent0r
Copy link
Contributor

@Redent0r Redent0r commented Nov 5, 2024

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

What does the PR accomplish, why was it needed?

Change Log
Does this affect the toolchain?

NO

Links to CVEs
Test Methodology

buddy build:

Patch adapted from ruby/rexml@ce59f2e
which fixes CVE-2024-49761 per https://nvd.nist.gov/vuln/detail/CVE-2024-49761

Needed for rubygem-rexml versions < 3.3.9

Signed-off-by: Saul Paredes <[email protected]>
@Redent0r Redent0r changed the title Saulparedes/3.0/CVE 2024 49761 ruby and rubygem-rexml: patch CVE-2024-49761 Nov 5, 2024
@Redent0r Redent0r force-pushed the saulparedes/3.0/CVE-2024-49761 branch from d52bf59 to d067f79 Compare November 5, 2024 20:08
@Redent0r
Copy link
Contributor Author

Redent0r commented Nov 5, 2024

Able to install both on 3.0 container
image

image

@Redent0r
Copy link
Contributor Author

Redent0r commented Nov 6, 2024

@Redent0r Redent0r marked this pull request as ready for review November 6, 2024 00:18
@Redent0r Redent0r requested a review from a team as a code owner November 6, 2024 00:18
Patch adapted from ruby/rexml@ce59f2e
which fixes CVE-2024-49761 per https://nvd.nist.gov/vuln/detail/CVE-2024-49761

Needed for rubygem-rexml versions < 3.3.9

Signed-off-by: Saul Paredes <[email protected]>
@Redent0r Redent0r force-pushed the saulparedes/3.0/CVE-2024-49761 branch from d067f79 to 11af426 Compare November 7, 2024 17:09
@jslobodzian jslobodzian requested a review from a team as a code owner November 11, 2024 16:51
@@ -408,6 +410,9 @@ sudo -u test make test TESTS="-v"
%{_rpmconfigdir}/rubygems.con

%changelog
* Tue Nov 05 2024 Saul Paredes <[email protected]> - 3.1.4-3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this version should be 3.3.3-3

License: BSD
Vendor: Microsoft Corporation
Distribution: Azure Linux
Group: Development/Languages
URL: https://github.com/ruby/rexml
Source0: https://github.com/ruby/rexml/archive/refs/tags/v%{version}.tar.gz#/%{gem_name}-%{version}.tar.gz
Patch0: CVE-2024-49761.patch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the indentation here?

@@ -34,6 +35,9 @@ gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{gem_name}-
%{gemdir}

%changelog
* Tue Nov 05 2024 Saul Paredes <[email protected]> - 3.2.7-2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version looks wrong - shouldn't it be 3.3.4-2?

@Redent0r
Copy link
Contributor Author

Closing as I'm including this patch fix in #10988 now to avoid conflicts

@Redent0r Redent0r closed this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants