public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* 'trusted and reasonably structured' regular expressions
@ 2021-02-24  4:53 Siddhesh Poyarekar
  2021-02-24 18:16 ` Paul Eggert
  2021-02-24 22:37 ` Joseph Myers
  0 siblings, 2 replies; 14+ messages in thread
From: Siddhesh Poyarekar @ 2021-02-24  4:53 UTC (permalink / raw)
  To: Siddhesh Poyarekar via Libc-alpha; +Cc: Florian Weimer, Carlos O'Donell

Hi,

The security exceptions[1] wiki page mentions that buffer overflows and 
other similar bugs will be treated as security vulnerabilities provided 
(well it actually says 'assuming' but I interpreted it as 'provided') 
that the offending pattern is 'trusted and reasonably well structured'.

It appears to offload the responsibility of sanitizing regular 
expressions to the caller, which seems like the responsibility of the 
regular expression library.  We have not rejected CVEs on this basis in 
the past[2] but it seems like something we should remedy as a policy. 
It seems unreasonable to me to expect users to parse regular expressions 
to validate them before passing them on to the regular expression parser 
library.

Thoughts?

Siddhesh

[1] https://sourceware.org/glibc/wiki/Security%20Exceptions
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=24114

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

end of thread, other threads:[~2021-03-02 10:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24  4:53 'trusted and reasonably structured' regular expressions Siddhesh Poyarekar
2021-02-24 18:16 ` Paul Eggert
2021-02-24 19:18   ` Florian Weimer
2021-02-24 19:49     ` Paul Eggert
2021-02-24 19:56       ` Florian Weimer
2021-02-24 22:37 ` Joseph Myers
2021-02-25  2:51   ` Siddhesh Poyarekar
2021-02-25  3:03     ` Zack Weinberg
2021-02-25  3:15       ` Siddhesh Poyarekar
2021-02-25  3:26         ` Zack Weinberg
2021-02-25  4:53         ` Paul Eggert
2021-02-25  5:27           ` Siddhesh Poyarekar
2021-02-26 21:12             ` Paul Eggert
2021-03-02 10:58               ` Siddhesh Poyarekar

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).