News for hackers. Stuff that matters.
Re:Multiple vulnerabilities in Regexp and String case conver... by lousken on Wednesday November 18, 2026 @07:40PM (#50554474)
I need a vacation
Re:Multiple vulnerabilities in Regexp and String case conver... by donkey_brains on Wednesday November 18, 2026 @07:44PM (#50554506)
We all do, but we don’t know if our companies will still be there when we get back.
Re:Multiple vulnerabilities in Regexp and String case conver... by _pdp_ on Wednesday November 18, 2026 @08:08PM (#50554719)
Book it for 18 months from now. Oh, also bring your laptop.
Re:Multiple vulnerabilities in Regexp and String case conver... by cwmoore on Wednesday November 18, 2026 @08:15PM (#50554782)
I hear Java is nice
Re:Multiple vulnerabilities in Regexp and String case conver... by layer8 on Wednesday November 18, 2026 @08:17PM (#50554807)
You can find nice shells on the beaches.
Re:Multiple vulnerabilities in Regexp and String case conver... by NooneAtAll5 on Wednesday November 18, 2026 @08:20PM (#50554844)
java had vulnerability in base64 decode asm

https://calif.io/java4shell/

Re:Multiple vulnerabilities in Regexp and String case conver... by saghm on Wednesday November 18, 2026 @09:18PM (#50555251)
A full day ago! Practically ancient
Re:Multiple vulnerabilities in Regexp and String case conver... by koolba on Wednesday November 18, 2026 @09:42PM (#50555413)
We’re all fools for thinking something as inherently dangerous as converting a decoding a base64 string or converting it to upper case should be performed in a non-airgapped environment.
Re:Multiple vulnerabilities in Regexp and String case conver... by cheeze on Wednesday November 18, 2026 @10:22PM (#50555670)
> Java RCE/Memory Corruption

> OpenJDK13

Serves those cutting edge technology adopters right. I'm sitting on JDK8 baby!

Re:Multiple vulnerabilities in Regexp and String case conver... by dboreham on Wednesday November 18, 2026 @10:47PM (#50555839)
Right with you.
Re:Multiple vulnerabilities in Regexp and String case conver... by vbezhenar on Thursday November 19, 2026 @12:19AM (#50556355)
Thankfully my servers are too old for this vulnerability to work.
Re:Multiple vulnerabilities in Regexp and String case conver... by TZubiri on Wednesday November 18, 2026 @08:07PM (#50554702)
It should be pretty straightforward to replace regexes with good ole ifs, array acceses, and comparision operators, whether manually or with an LLM. Pretty low hanging fruit to shave off some kilobytes of attack vector
Re:Multiple vulnerabilities in Regexp and String case conver... by preinheimer on Wednesday November 18, 2026 @08:49PM (#50555081)
I think you’re underestimating the complexity of a lot of regular expressions.
Re:Multiple vulnerabilities in Regexp and String case conver... by marcus_holmes on Wednesday November 18, 2026 @08:53PM (#50555107)
Also that a lot of the regexes will be inside Rails code that we can't touch, Gems that need maintaining, etc.
Re:Multiple vulnerabilities in Regexp and String case conver... by TZubiri on Thursday November 19, 2026 @12:13AM (#50556311)
dependencies that themselves are targets for deletion
Re:Multiple vulnerabilities in Regexp and String case conver... by Spivak on Wednesday November 18, 2026 @11:59PM (#50556238)
What you're describing is using a parser generator build to take a regex and turn it into code you can embed into your project. This already exists and you can use it now. https://re2c.org/
Re:Multiple vulnerabilities in Regexp and String case conver... by tptacek on Wednesday November 18, 2026 @08:18PM (#50554822)
There's what I think is probably an awesome bug here.

Windows-1252 encoding has a representation for lowercase German sharp 's' (ß), but not one for the uppercase. If you upcase a string containing a sharp 's', it gets normalized to "SS", which increases the length of the string by one character. The 1252 case conversion code doesn't handle this; it looks like it checks for headroom in the buffer one character at a time. So if the last character of a string you upcase is ß, it looks like you get a one-byte overflow (of 'S').

If that's really the bug (there's a claimed RCE POC), the heap grooming for it must be really fussy! I couldn't find any other character pairs that expand like this.

You can feed strings in 1252 to a Rails program through multipart POSTs, which get to pick their encodings.

The great thing about this bug, apart from how it illustrates how doomed we all are (if I'm right), is that it should by rights have the best vulnerability name of the year, because you get to work 'ß' into it.

Re:Multiple vulnerabilities in Regexp and String case conver... by cowlevel on Wednesday November 18, 2026 @08:23PM (#50554871)
Unicode also has this feature because SS is the correct uppercase form of ß
Re:Multiple vulnerabilities in Regexp and String case conver... by p-e-w on Wednesday November 18, 2026 @09:27PM (#50555314)
It’s not. There are multiple uppercase forms, including “SS”, “SZ”, and the uppercase ß character, all of which are well-established, which makes all of them correct according to the principle of linguistic descriptivism.
Re:Multiple vulnerabilities in Regexp and String case conver... by Georgelemental on Wednesday November 18, 2026 @10:18PM (#50555620)
But according to the "principle" of blindly following the Unicode standard with no tailoring, the "correct" form is SS. (And Unicode's stability guarantees preclude ever changing it to ẞ)
Re:Multiple vulnerabilities in Regexp and String case conver... by edflsafoiewq on Wednesday November 18, 2026 @10:32PM (#50555736)
>And Unicode's stability guarantees preclude ever changing it to ẞ

This seems like a bad property for a system that encodes human writing systems.

Re:Multiple vulnerabilities in Regexp and String case conver... by pmontra on Wednesday November 18, 2026 @11:02PM (#50555935)
Human writing systems themselves have that very same property. The stability of written language prevents them to adapt swiftly to changes to spoken language.

Knight / night is an example for English. That k should be gone, right? Or all those silent -ment and e in French.

Enter the computer and I'm not surprised that German speakers end up mostly with SS because that's what computers do when automatically upcasing words.

A lot of spelling changes are dictated by what's available on keyboards. In Italian we accept E' as È because we don't have that upper case character on our keyboard. Automatic uppercase on start of sentences fixed it where it's available and mobile keywords show an È as an option of you long press a shifted e. But what if you are writing Italian in an English locale form field with a hardware keyboard (here with an OS with English locale) or you have to write È in the middle of a sentence or, go back 30 or 40 years, you have to use a typing machine?

I'm am sure that every language that had to go through a phase of adapting to ASCII and to the limits on the layout of keyboards has similar stories to tell.

Re:Multiple vulnerabilities in Regexp and String case conver... by eviks on Wednesday November 18, 2026 @10:54PM (#50555883)
What stops you from blindly following the standard with tailoring?
Re:Multiple vulnerabilities in Regexp and String case conver... by ben-schaaf on Wednesday November 18, 2026 @11:41PM (#50556150)
And according to linguistic perscriptivism, the upper case of ß is ẞ since 2017.
Re:Multiple vulnerabilities in Regexp and String case conver... by frangonf on Wednesday November 18, 2026 @09:29PM (#50555324)
Or so the Germans would have us believe...
Re:Multiple vulnerabilities in Regexp and String case conver... by sscaryterry on Wednesday November 18, 2026 @09:41PM (#50555400)
Who cares, I use ASCII :)
Re:Multiple vulnerabilities in Regexp and String case conver... by SoftTalker on Thursday November 19, 2026 @12:48AM (#50556493)
I've been saying that for years.
Re:Multiple vulnerabilities in Regexp and String case conver... by eviks on Wednesday November 18, 2026 @10:57PM (#50555898)
Not only that, when you uppercase 1 char with precomposed diacritics, but uppercase doesn't have precomposed diacritics, so they expand into separate chars (max is 1 to 3 chars)

Both fixable, but as with a lot of Unicode stuff, might take a long while

Re:Multiple vulnerabilities in Regexp and String case conver... by xp84 on Wednesday November 18, 2026 @08:35PM (#50554981)
Should we call it #upcaße2Shell?
Re:Multiple vulnerabilities in Regexp and String case conver... by tptacek on Wednesday November 18, 2026 @08:39PM (#50555012)
One of the discoverers suggested, on Twitter, Ruby2ßhell. My wife, who speaks and writes German, refused to entertain this.
Re:Multiple vulnerabilities in Regexp and String case conver... by testplzignore on Wednesday November 18, 2026 @08:44PM (#50555044)
I wonder if there is a similar bug for U+0130 which (I think) expands to two characters when lowercased.
Re:Multiple vulnerabilities in Regexp and String case conver... by tptacek on Wednesday November 18, 2026 @08:46PM (#50555057)
Maybe somewhere! But that character isn't in Windows-1252 at all, so it can't trip this string counting bug.
Re:Multiple vulnerabilities in Regexp and String case conver... by bee_rider on Wednesday November 18, 2026 @09:00PM (#50555152)
Haha, that exact character caused problems in a programming class I tutored for. Got to throw the first year students some curveballs.
Re:Multiple vulnerabilities in Regexp and String case conver... by watersb on Wednesday November 18, 2026 @10:32PM (#50555741)
> it should by rights have the best vulnerability name of the year, because you get to work 'ß' into it.

Holy sh!t

Re:Multiple vulnerabilities in Regexp and String case conver... by juliusdavies on Wednesday November 18, 2026 @11:12PM (#50555990)
Holy Scheiße
Re:Multiple vulnerabilities in Regexp and String case conver... by kps on Wednesday November 18, 2026 @11:07PM (#50555966)
values of ß will give rise to dom
Re:Multiple vulnerabilities in Regexp and String case conver... by dwattttt on Wednesday November 18, 2026 @11:33PM (#50556114)
As is tradition, Raymond Chen has had something to say about this. The windows-1252 code page was introduced with Windows 1.0, and according to Wikipedia its final version shipped with Win98. String operations are just plain too hard.

https://devblogs.microsoft.com/oldnewthing/20200804-00/?p=10...

https://devblogs.microsoft.com/oldnewthing/20241007-00/?p=11...

Re:Multiple vulnerabilities in Regexp and String case conver... by tptacek on Thursday November 19, 2026 @12:22AM (#50556367)
There is no good reason for really any Rails app to accept Windows-1252! This is reminiscent of the YAML vulnerability, which surprised most Rails users with the fact that Rails endpoints all accepted YAML to begin with.
Re:Multiple vulnerabilities in Regexp and String case conver... by slopinthebag on Wednesday November 18, 2026 @10:11PM (#50555581)
oh boy. if only we had a language that could prevent this from happening. oh well, i guess there is nothing we can do but patch these things once they're discovered.
Re:Multiple vulnerabilities in Regexp and String case conver... by Gigachad on Wednesday November 18, 2026 @10:16PM (#50555611)
"There's no way this could be prevented", says users of only programming language where it regularly happens
Re:Multiple vulnerabilities in Regexp and String case conver... by slopinthebag on Wednesday November 18, 2026 @10:19PM (#50555631)
good developers simply would not have written these bugs.
Re:Multiple vulnerabilities in Regexp and String case conver... by Spivak on Wednesday November 18, 2026 @11:36PM (#50556134)
Just completely rewrite CRuby which includes a JIT and has to maintain ABI compatibility for compiled extensions. I mean I'm certainly not volunteering for that project.
Re:Multiple vulnerabilities in Regexp and String case conver... by ethin on Wednesday November 18, 2026 @10:49PM (#50555850)
Oh boy if you could develop a solution that would port C code over with completely safe rust semantics where feasible and without people having to clean up the disaster of a result, that would be nice, instead of you guys trying to demonstrate how superior you and your favorite language are. Because that is the only way you are going to port the world to Rust. Oh, and you have to support COBOL too. Probably a bunch of other old languages that have been around for longer than a lot of us have been alive.

Seriously, all these snarky posts about Rust being the god language really comes off as "look how utterly superior we are as Rust programmers and look how superior the Rust language is, this would never ever happen in Rust the god language". Yes, I'm annoyed by stuff like this.

Re:Multiple vulnerabilities in Regexp and String case conver... by slopinthebag on Wednesday November 18, 2026 @11:13PM (#50556002)
actually rust devs are humble enough to understand their limitations and let the compiler help them out.

as for porting, well, llm go burrrrrr

Re:Multiple vulnerabilities in Regexp and String case conver... by baggy_trough on Wednesday November 18, 2026 @10:51PM (#50555861)
exactly, which is why I use ruby.
Re:Multiple vulnerabilities in Regexp and String case conver... by rvz on Wednesday November 18, 2026 @10:22PM (#50555667)
These are all C-based memory corruption vulnerabilities.

The reality of these type of bugs being found by autonomous AI models on established software should tell you by now that memory-unsafe languages are completely exposed.

This is who maintainers you are up against:

"Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue."

Imagine attackers using abliterated models at scale who don't disclose these issues.

[0] https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m...

Re:Multiple vulnerabilities in Regexp and String case conver... by userbinator on Wednesday November 18, 2026 @11:35PM (#50556131)
Imagine developers using abliterated models and fixing these issues before releasing any more code.
Re:Multiple vulnerabilities in Regexp and String case conver... by Gigachad on Wednesday November 18, 2026 @11:36PM (#50556135)
We have been screaming this for years before AI showed up. But instead of removing C wherever possible it was decided fine to just patch the bugs as they showed up.
Re:Multiple vulnerabilities in Regexp and String case conver... by skybrian on Thursday November 19, 2026 @12:40AM (#50556448)
I imagine Ruby programmers thought they were working in a memory-safe language, but apparently that's not enough?
Re:Multiple vulnerabilities in Regexp and String case conver... by pentestercrab on Wednesday November 18, 2026 @10:30PM (#50555722)

  str = ("\x82\xA0" + ("A" * (2**32 + 4))).force_encoding(Encoding::Shift_JIS)
  
  puts "str.bytesize: #{str.bytesize}"
  puts "str.encoding: #{str.encoding}"
  puts "str.valid_encoding?: #{str.valid_encoding?}"
  
  new_str = str.downcase
  
  puts "new_str.bytesize: #{new_str.bytesize}"
  puts "new_str.bytes:    #{new_str.bytes}"
  puts "new_str.encoding: #{new_str.encoding}"
outputs on an unfixed version:

  str.bytesize: 4294967302
  str.encoding: Shift_JIS
  str.valid_encoding?: true
  new_str.bytesize: 6
  new_str.bytes:    [130, 160, 97, 97, 97, 97]
  new_str.encoding: Shift_JIS
also I'd suggest you check out CVE-2026-128084 (GHSA-4fqr-96q8-xrfx) if you are interested in C bugs impacting Ruby on Rails