Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
snaggen ( snaggen@programming.dev )  to Rust@programming.dev · 3 years ago

Security advisory for the standard library (CVE-2024-24576)

blog.rust-lang.org

external-link
message-square
4
link
fedilink
32
external-link

Security advisory for the standard library (CVE-2024-24576)

blog.rust-lang.org

snaggen ( snaggen@programming.dev )  to Rust@programming.dev · 3 years ago
message-square
4
link
fedilink
Security advisory for the standard library (CVE-2024-24576) | Rust Blog
blog.rust-lang.org
external-link
Empowering everyone to build reliable and efficient software.
alert-triangle
You must log in or # to comment.
  • Ich, einfach anders ( myotherself@lemmings.world ) 
    link
    fedilink
    arrow-up
    11
    ·
    3 years ago

    Tl;dr: std::process::Command is vulnerable to shell injection if you invoke cmd.exe or *.{cmd,bat} on Windows.

  • BB_C ( BB_C@programming.dev ) 
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    3 years ago

    Were there actually any real-world use-cases affected by this? Do any of them not deserve to be named and shamed irregardless of this vulnerability?

    If it was up to me, I would nuke the cmd custom implementation, leave some helpful compile error messages behind, and direct users to some 3rd party crates to choose from.

    • BatmanAoD ( BatmanAoD@programming.dev ) 
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      3 years ago

      What custom implementation? The escaping logic?

      Edit: to be clear, there is no “custom implementation” of cmd itself, nor is the problem exclusive to Rust. This is a problem with the Windows cmd itself.

    • Moussx ( Moussx@programming.dev ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      Doing such a regression on a Tier 1 target would be a really big blow to the language’s reputation imo

Rust@programming.dev

rust@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !rust@programming.dev

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 4 users / day
  • 46 users / week
  • 269 users / month
  • 764 users / 6 months
  • 118 local subscribers
  • 8.32K subscribers
  • 1.27K Posts
  • 3.76K Comments
  • Modlog
  • mods:
  • snowe ( snowe@programming.dev ) 
  • Ategon ( Ategon@programming.dev ) 
  • EdTheLegendary ( EdTheLegendary@programming.dev ) 
  • torcherist ( torcherist@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code