ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
@ 2022-12-03 21:19 Segaja (Andreas Schleifer)
  2022-12-03 21:53 ` [ruby-core:111184] " hsbt (Hiroshi SHIBATA)
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Segaja (Andreas Schleifer) @ 2022-12-03 21:19 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been reported by Segaja (Andreas Schleifer).

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111184] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
@ 2022-12-03 21:53 ` hsbt (Hiroshi SHIBATA)
  2022-12-03 21:55 ` [ruby-core:111185] " Segaja (Andreas Schleifer)
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2022-12-03 21:53 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by hsbt (Hiroshi SHIBATA).


>As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?

The all of stdlibs are maintained CRuby committers includes me. If the vulnerability is found and assign CVEs, We will release the new version of stdlibs at first. After that, we may release the new version of Ruby. 

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100468

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111185] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
  2022-12-03 21:53 ` [ruby-core:111184] " hsbt (Hiroshi SHIBATA)
@ 2022-12-03 21:55 ` Segaja (Andreas Schleifer)
  2022-12-03 22:11 ` [ruby-core:111186] " austin (Austin Ziegler)
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Segaja (Andreas Schleifer) @ 2022-12-03 21:55 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by Segaja (Andreas Schleifer).


hsbt (Hiroshi SHIBATA) wrote in #note-1:
> >As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?
> 
> The all of stdlibs are maintained CRuby committers includes me. If the vulnerability is found and assign CVEs, We will release the new version of stdlibs at first. After that, we may release the new version of Ruby.

"may"? This sounds like sometimes CVEs are not considered "important" enough and do not warrant a new CRuby release. Or do I misunderstand this?

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100469

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111186] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
  2022-12-03 21:53 ` [ruby-core:111184] " hsbt (Hiroshi SHIBATA)
  2022-12-03 21:55 ` [ruby-core:111185] " Segaja (Andreas Schleifer)
@ 2022-12-03 22:11 ` austin (Austin Ziegler)
  2022-12-03 22:14 ` [ruby-core:111187] " Segaja (Andreas Schleifer)
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: austin (Austin Ziegler) @ 2022-12-03 22:11 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by austin (Austin Ziegler).


Segaja (Andreas Schleifer) wrote in #note-2:
> hsbt (Hiroshi SHIBATA) wrote in #note-1:
> > >As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?
> > 
> > The all of stdlibs are maintained CRuby committers includes me. If the vulnerability is found and assign CVEs, We will release the new version of stdlibs at first. After that, we may release the new version of Ruby.
> 
> "may"? This sounds like sometimes CVEs are not considered "important" enough and do not warrant a new CRuby release. Or do I misunderstand this?

Since the stdlib gems are able to be upgraded independently of Ruby, the need for *immediate* CRuby releases (or other Ruby release versions) is reduced.

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100470

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111187] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (2 preceding siblings ...)
  2022-12-03 22:11 ` [ruby-core:111186] " austin (Austin Ziegler)
@ 2022-12-03 22:14 ` Segaja (Andreas Schleifer)
  2022-12-03 22:20 ` [ruby-core:111188] " austin (Austin Ziegler)
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Segaja (Andreas Schleifer) @ 2022-12-03 22:14 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by Segaja (Andreas Schleifer).


austin (Austin Ziegler) wrote in #note-3:
> Segaja (Andreas Schleifer) wrote in #note-2:
> > hsbt (Hiroshi SHIBATA) wrote in #note-1:
> > > >As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?
> > > 
> > > The all of stdlibs are maintained CRuby committers includes me. If the vulnerability is found and assign CVEs, We will release the new version of stdlibs at first. After that, we may release the new version of Ruby.
> > 
> > "may"? This sounds like sometimes CVEs are not considered "important" enough and do not warrant a new CRuby release. Or do I misunderstand this?
> 
> Since the stdlib gems are able to be upgraded independently of Ruby, the need for *immediate* CRuby releases (or other Ruby release versions) is reduced.

I think we have a naming difference here. I'm talking about the "default gems" as listed on https://stdgems.org/3.0.4/ for example for CRuby version 3.0.4. From all I understood these "default gems" are shipped with the main ruby version and can not be updated independently. So my question is how CVEs in those (for example the `json` default gem) will be handled.

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100471

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111188] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (3 preceding siblings ...)
  2022-12-03 22:14 ` [ruby-core:111187] " Segaja (Andreas Schleifer)
@ 2022-12-03 22:20 ` austin (Austin Ziegler)
  2022-12-03 22:55 ` [ruby-core:111189] " hsbt (Hiroshi SHIBATA)
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: austin (Austin Ziegler) @ 2022-12-03 22:20 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by austin (Austin Ziegler).


Segaja (Andreas Schleifer) wrote in #note-4:
> austin (Austin Ziegler) wrote in #note-3:
> > > "may"? This sounds like sometimes CVEs are not considered "important" enough and do not warrant a new CRuby release. Or do I misunderstand this?
> > 
> > Since the stdlib gems are able to be upgraded independently of Ruby, the need for *immediate* CRuby releases (or other Ruby release versions) is reduced.
> 
> I think we have a naming difference here. I'm talking about the "default gems" as listed on https://stdgems.org/3.0.4/ for example for CRuby version 3.0.4. From all I understood these "default gems" are shipped with the main ruby version and can not be updated independently. So my question is how CVEs in those (for example the `json` default gem) will be handled.

No, they can be upgraded independently.

```console
$ ruby -rjson -e 'puts "JSON: #{JSON::VERSION}"'
JSON: 2.6.1
$ gem search '^json$'
*** REMOTE GEMS ***

json (2.6.2 ruby java, 1.1.5 x86-linux, 1.1.1 mswin32)
$ gem install json
Fetching json-2.6.2.gem
Building native extensions. This could take a while...
Successfully installed json-2.6.2
Parsing documentation for json-2.6.2
Installing ri documentation for json-2.6.2
Done installing documentation for json after 0 seconds
1 gem installed
$ ruby -rjson -e 'puts "JSON: #{JSON::VERSION}"'
JSON: 2.6.2
```

I’m currently using Ruby 3.1.

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100472

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111189] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (4 preceding siblings ...)
  2022-12-03 22:20 ` [ruby-core:111188] " austin (Austin Ziegler)
@ 2022-12-03 22:55 ` hsbt (Hiroshi SHIBATA)
  2022-12-03 23:03 ` [ruby-core:111190] " Segaja (Andreas Schleifer)
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2022-12-03 22:55 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by hsbt (Hiroshi SHIBATA).


Austin, Thanks for your explanation for details. 

We will update the all of bundled stdlibs(=default gems) at the release time of Ruby.



----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100473

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111190] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (5 preceding siblings ...)
  2022-12-03 22:55 ` [ruby-core:111189] " hsbt (Hiroshi SHIBATA)
@ 2022-12-03 23:03 ` Segaja (Andreas Schleifer)
  2022-12-03 23:08 ` [ruby-core:111191] " hsbt (Hiroshi SHIBATA)
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Segaja (Andreas Schleifer) @ 2022-12-03 23:03 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by Segaja (Andreas Schleifer).


austin (Austin Ziegler) wrote in #note-5:
> No, they can be upgraded independently.

That is interesting. The second sentence from https://rubyreferences.github.io/rubyref/stdlib/bundled.html says "Unlike standard library, these gems can be updated independently from Ruby itself."

But your way of updating "json" as a normal gem over the default gem means that whenever ruby is used with `--disable-gems` then the updated version is not used and thus a CVE could still be exposed.

Also doing such updates with a major version could break a lot of software which for example breaks with `psych` version 4.x as far as I know.


But I think my question remains: If I (as Arch maintainer) don't update (package the gem as new package) the gem, then how long will it take for a CVE to be fixed in the default ruby release?

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100474

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111191] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (6 preceding siblings ...)
  2022-12-03 23:03 ` [ruby-core:111190] " Segaja (Andreas Schleifer)
@ 2022-12-03 23:08 ` hsbt (Hiroshi SHIBATA)
  2022-12-04  0:03 ` [ruby-core:111192] " ioquatix (Samuel Williams)
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2022-12-03 23:08 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by hsbt (Hiroshi SHIBATA).


>But your way of updating "json" as a normal gem over the default gem means that whenever ruby is used with --disable-gems then the updated version is not used and thus a CVE could still be exposed.

`--disable-gems` is only development option for debugging the Ruby binary. Do not use it for application or software development.


----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100475

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111192] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (7 preceding siblings ...)
  2022-12-03 23:08 ` [ruby-core:111191] " hsbt (Hiroshi SHIBATA)
@ 2022-12-04  0:03 ` ioquatix (Samuel Williams)
  2022-12-04 15:10 ` [ruby-core:111200] " graywolf (Gray Wolf)
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ioquatix (Samuel Williams) @ 2022-12-04  0:03 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by ioquatix (Samuel Williams).


I've created an initial document, trying to distill some of the discussions here into a single place that downstream package maintainers can use as guidance.

https://github.com/ruby/ruby/pull/6856

Please help expand this document to clarify various points about how Ruby itself should be distributed and the process around it.

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100476

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111200] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (8 preceding siblings ...)
  2022-12-04  0:03 ` [ruby-core:111192] " ioquatix (Samuel Williams)
@ 2022-12-04 15:10 ` graywolf (Gray Wolf)
  2022-12-13  4:35 ` [ruby-core:111266] " hsbt (Hiroshi SHIBATA)
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: graywolf (Gray Wolf) @ 2022-12-04 15:10 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by graywolf (Gray Wolf).


hsbt (Hiroshi SHIBATA) wrote in #note-8:
> >But your way of updating "json" as a normal gem over the default gem means that whenever ruby is used with --disable-gems then the updated version is not used and thus a CVE could still be exposed.
> 
> `--disable-gems` is only development option for debugging the Ruby binary. Do not use it for application or software development.

That is interesting. I know that I do use it in few places, usually for startup time reduction:

```
+$ time -p ruby -e 'puts 1'
1
real 0.06
user 0.04
sys 0.01
+$ time -p ruby --disable-all -e 'puts 1'
1
real 0.01
user 0.00
sys 0.01
```

Since that (based on you comment) does not seems like a right thing to do, are there other options to make ruby start up faster that are actually supported?

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100485

* Author: Segaja (Andreas Schleifer)
* Status: Open
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111266] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (9 preceding siblings ...)
  2022-12-04 15:10 ` [ruby-core:111200] " graywolf (Gray Wolf)
@ 2022-12-13  4:35 ` hsbt (Hiroshi SHIBATA)
  2022-12-13  4:35 ` [ruby-core:111267] " hsbt (Hiroshi SHIBATA)
  2022-12-13  4:36 ` [ruby-core:111268] " nobu (Nobuyoshi Nakada)
  12 siblings, 0 replies; 14+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2022-12-13  4:35 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Closed

@Segaja I'll close this because your first question was resolved now. 

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100614

* Author: Segaja (Andreas Schleifer)
* Status: Closed
* Priority: Normal
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111267] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (10 preceding siblings ...)
  2022-12-13  4:35 ` [ruby-core:111266] " hsbt (Hiroshi SHIBATA)
@ 2022-12-13  4:35 ` hsbt (Hiroshi SHIBATA)
  2022-12-13  4:36 ` [ruby-core:111268] " nobu (Nobuyoshi Nakada)
  12 siblings, 0 replies; 14+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2022-12-13  4:35 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by hsbt (Hiroshi SHIBATA).

Assignee set to hsbt (Hiroshi SHIBATA)

----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100615

* Author: Segaja (Andreas Schleifer)
* Status: Closed
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ruby-core:111268] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched?
  2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
                   ` (11 preceding siblings ...)
  2022-12-13  4:35 ` [ruby-core:111267] " hsbt (Hiroshi SHIBATA)
@ 2022-12-13  4:36 ` nobu (Nobuyoshi Nakada)
  12 siblings, 0 replies; 14+ messages in thread
From: nobu (Nobuyoshi Nakada) @ 2022-12-13  4:36 UTC (permalink / raw)
  To: ruby-core

Issue #19178 has been updated by nobu (Nobuyoshi Nakada).


Segaja (Andreas Schleifer) wrote in #note-7:
> That is interesting. The second sentence from https://rubyreferences.github.io/rubyref/stdlib/bundled.html says "Unlike standard library, these gems can be updated independently from Ruby itself."

This site seems pretty outdated.


----------------------------------------
Misc #19178: How does CRuby handle CVE issues in stdlib gems which get patched?
https://bugs.ruby-lang.org/issues/19178#change-100616

* Author: Segaja (Andreas Schleifer)
* Status: Closed
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
If there is a CVE issue in one of the stdlibs ( https://stdgems.org/ ) which gets patched, what is CRubys approach on how to push this critical fix to the users?

As far as I know stdlibs get only updated for the users if CRuby releases a new version. So will CRuby always release a new version if there is a critical fix an stdlib "needs" to be updated?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-12-13  4:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-03 21:19 [ruby-core:111183] [Ruby master Misc#19178] How does CRuby handle CVE issues in stdlib gems which get patched? Segaja (Andreas Schleifer)
2022-12-03 21:53 ` [ruby-core:111184] " hsbt (Hiroshi SHIBATA)
2022-12-03 21:55 ` [ruby-core:111185] " Segaja (Andreas Schleifer)
2022-12-03 22:11 ` [ruby-core:111186] " austin (Austin Ziegler)
2022-12-03 22:14 ` [ruby-core:111187] " Segaja (Andreas Schleifer)
2022-12-03 22:20 ` [ruby-core:111188] " austin (Austin Ziegler)
2022-12-03 22:55 ` [ruby-core:111189] " hsbt (Hiroshi SHIBATA)
2022-12-03 23:03 ` [ruby-core:111190] " Segaja (Andreas Schleifer)
2022-12-03 23:08 ` [ruby-core:111191] " hsbt (Hiroshi SHIBATA)
2022-12-04  0:03 ` [ruby-core:111192] " ioquatix (Samuel Williams)
2022-12-04 15:10 ` [ruby-core:111200] " graywolf (Gray Wolf)
2022-12-13  4:35 ` [ruby-core:111266] " hsbt (Hiroshi SHIBATA)
2022-12-13  4:35 ` [ruby-core:111267] " hsbt (Hiroshi SHIBATA)
2022-12-13  4:36 ` [ruby-core:111268] " nobu (Nobuyoshi Nakada)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).