You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the upstream author has ignored these issues for so long, some realism is in order: R can no longer rely on upstream to maintain this important dependency. I think it's time to either fork the library properly and fix all of these issues, or adopt another regex library (preferably one where --with-system- works).
The path of least resistance in the second direction is probably musl's regex library,
Can you describe the attack vector for this? i.e. what would an attacker have to do to successfully compromise an R user? That might help folks make a decision as to the need to remove or alternatively update this package.
Can you describe the attack vector for this? i.e. what would an attacker
have to do to successfully compromise an R user? That might help folks make
a decision as to the need to remove or alternatively update this package.
I'm not actually an R user (I work on packaging in Gentoo linux and SageMath), so anything I try to make up here will probably sound ridiculous. Maybe I can answer the question with a question: what do people use TRE regular expressions for in R? If any of those uses involve untrusted data (like parsing files from the internet), then someone could probably feed you data that triggers one of these bugs. Not the end of the world, but not nice to have in the back of your mind if you're running "grep" on a CSV file, either.
(In reply to Bob Rudis from comment #1)
> Can you describe the attack vector for this? i.e. what would an attacker
> have to do to successfully compromise an R user? That might help folks make
> a decision as to the need to remove or alternatively update this package.
I'm not actually an R user (I work on packaging in Gentoo linux and
SageMath), so anything I try to make up here will probably sound ridiculous.
Maybe I can answer the question with a question: what do people use TRE
regular expressions for in R? If any of those uses involve untrusted data
(like parsing files from the internet), then someone could probably feed you
data that triggers one of these bugs. Not the end of the world, but not nice
to have in the back of your mind if you're running "grep" on a CSV file,
either.
(I asked the q primarily to set some minimum standard for future security reports, and am very [very] thankful for your thoughtful response — which was perfect!)
Let me see if this is still an issue in the 4.0.0 source tree and I'll ping R Core if so.
R bundles a copy of the TRE regex library in src/extra/tre. There are a number of security issues reported against the upstream library,
that likely also affect R.
Since the upstream author has ignored these issues for so long, some realism is in order: R can no longer rely on upstream to maintain this important dependency. I think it's time to either fork the library properly and fix all of these issues, or adopt another regex library (preferably one where --with-system- works).
The path of least resistance in the second direction is probably musl's regex library,
http://git.musl-libc.org/cgit/musl/log/src/regex
that is itself based on TRE. But as the git log shows, musl's copy of it is actively maintained.
METADATA
The text was updated successfully, but these errors were encountered: