Nixpkgs Security Tracker

Login with GitHub

Details of issue NIXPKGS-2025-0013

NIXPKGS-2025-0013
published on 14 Dec 2025
updated 1 month, 4 weeks ago by @mweinelt Activity log
  • Created automatic suggestion
  • @mweinelt removed package sambamba
  • @mweinelt accepted
  • @mweinelt published on GitHub
Samba: command injection in wins server hook script

A flaw was found in Samba, in the front-end WINS hook handling: NetBIOS names from registration packets are passed to a shell without proper validation or escaping. Unsanitized NetBIOS name data from WINS registration packets are inserted into a shell command and executed by the Samba Active Directory Domain Controller’s wins hook, allowing an unauthenticated network attacker to achieve remote command execution as the Samba process.

Affected products

rhcos
samba
  • <4.23.2
  • <4.21.5
  • <4.21.9
samba4

Matching in nixpkgs

pkgs.samba

Standard Windows interoperability suite of programs for Linux and Unix

Package maintainers

Fixed in:
https://github.com/NixOS/nixpkgs/pull/433796
https://github.com/NixOS/nixpkgs/pull/452396