Nixpkgs security tracker

Login with GitHub

Details of issue NIXPKGS-2026-2297

NIXPKGS-2026-2297
published 3 hours ago
Megaco flex scanner buffer overflow via oversized property parm name
Permalink CVE-2026-59250
8.3 HIGH
  • CVSS version (CVSS): 4.0
  • Attack Vector (AV): Network (N)
  • Attack Complexity (AC): Low (L)
  • Attack Requirement (AT): Present (P)
  • Privileges Required (PR): None (N)
  • User Interaction (UI): None (N)
  • Vulnerable System Impact Confidentiality (VC): None (N)
  • Vulnerable System Impact Integrity (VI): Low (L)
  • Vulnerable System Impact Availability (VA): High (H)
  • Subsequent System Impact Confidentiality (SC): None (N)
  • Subsequent System Impact Integrity (SI): None (N)
  • Subsequent System Impact Availability (SA): None (N)
  • Modified Attack Vector (MAV): Network (N)
  • Modified Attack Complexity (MAC): Low (L)
  • Modified Attack Requirement (MAT): Present (P)
  • Modified Privileges Required (MPR): None (N)
  • Modified User Interaction (MUI): None (N)
  • Modified Vulnerable System Impact Confidentiality (MVC): None (N)
  • Modified Vulnerable System Impact Integrity (MVI): Low (L)
  • Modified Vulnerable System Impact Availability (MVA): High (H)
  • Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
  • Modified Subsequent System Impact Integrity (MSI): Negligible (N)
  • Modified Subsequent System Impact Availability (MSA): Negligible (N)
  • Safety (S): Not Defined (X)
  • Automatable (AU): Not Defined (X)
  • Recovery (R): Not Defined (X)
  • Value Density (V): Not Defined (X)
  • Vulnerability Response Effort (RE): Not Defined (X)
  • Provider Urgency (U): Not Defined (X)
  • Confidentiality Req. (CR): Not Defined (X)
  • Integrity Req. (IR): Not Defined (X)
  • Availability Req. (AR): Not Defined (X)
  • Exploit Maturity (E): Not Defined (X)
updated 3 hours ago by @erictapen Activity log
  • Created suggestion
  • @erictapen ignored
    43 packages
    • linuxKernel.packages.linux_5_15.can-isotp
    • linuxKernel.packages.linux_5_10.can-isotp
    • python314Packages.django-otp-webauthn
    • python313Packages.django-otp-webauthn
    • python314Packages.awsiotpythonsdk
    • python313Packages.awsiotpythonsdk
    • python314Packages.audio-hotplug
    • python313Packages.audio-hotplug
    • gnomeExtensions.nitrokey-3-otp
    • azure-cli-extensions.footprint
    • python314Packages.django-otp
    • python313Packages.django-otp
    • python314Packages.omegaconf
    • python314Packages.can-isotp
    • python313Packages.omegaconf
    • python313Packages.can-isotp
    • haskellPackages.crypto-totp
    • python314Packages.otpauth
    • python313Packages.otpauth
    • gnomeExtensions.bootpaper
    • python314Packages.plotpy
    • python313Packages.plotpy
    • haskellPackages.dotparse
    • gnomeExtensions.otp-keys
    • tpm2-totp-with-plymouth
    • python314Packages.pyotp
    • python313Packages.pyotp
    • passExtensions.pass-otp
    • arubaotp-seed-extractor
    • gnomeExtensions.totp
    • keepass-keetraytotp
    • keepass-otpkeyprov
    • nitrotpm-tools
    • godotpcktool
    • tpm2-totp
    • otpclient
    • totp-cli
    • hotpatch
    • otpauth
    • mintotp
    • libcotp
    • otpw
    • cotp
  • @erictapen accepted
  • @erictapen published on GitHub
Megaco flex scanner buffer overflow via oversized property parm name

Classic buffer overflow in the Erlang/OTP megaco flex scanner C driver allows a remote unauthenticated attacker to corrupt the driver's memory (and potentially achieve remote code execution or a denial-of-service crash) by sending a single text-encoded H.248/Megaco message containing an oversized property parm name. When tokenizing a Local/Remote descriptor, mfs_load_property_groups extracts the attacker-controlled property name (bounded only by the message length) and, when no value follows, formats it into a fixed 512-byte error_msg field of the MfsErlDrvData struct using an unchecked sprintf call. Names longer than roughly 452 bytes overflow into the immediately following struct fields (text_buf, text_ptr, term_spec, term_spec_size, term_spec_index), overwriting live pointers and counters with attacker-chosen bytes. Subsequent scanner code writes and frees through the corrupted pointers, producing arbitrary write and arbitrary free primitives inside the BEAM VM process, which can be leveraged for remote code execution. On builds compiled with _FORTIFY_SOURCE the overflow is detected at runtime and terminates the process with SIGABRT, resulting in denial of service. The overflow occurs in the flex scanner before any grammar or Megaco-level authentication processing, so exploitation requires only network reachability to the megaco transport port on a node configured with {scanner, flex}. This vulnerability is associated with program files lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src and program routines mfs_load_property_groups. This issue affects OTP from OTP 17.0 before OTP 29.0.4, OTP 28.5.0.4 and OTP 27.3.4.15, corresponding to megaco from 3.17.1 before 4.9.1, 4.8.3.1 and 4.7.2.2. Versions prior to OTP 17.0 are also affected but are not listed because the OTP version scheme is only defined from OTP 17.0 onwards.

Affected products

megaco
  • *
erlang/otp
  • *
  • <8704c8f550a11ed5f825e3c011ecb03565b79c4f
Ignored packages (43)

pkgs.cotp

Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality

pkgs.otpw

One-time password login package

  • nixos-unstable 1.5
    • nixpkgs-unstable 1.5
    • nixos-unstable-small 1.5
  • nixos-26.05 1.5
    • nixos-26.05-small 1.5
    • nixpkgs-26.05-darwin 1.5

pkgs.libcotp

C library that generates TOTP and HOTP

pkgs.otpauth

Google Authenticator migration decoder

pkgs.hotpatch

Hot patching executables on Linux using .so file injection

  • nixos-unstable 0.2
    • nixpkgs-unstable 0.2
    • nixos-unstable-small 0.2
  • nixos-26.05 0.2
    • nixos-26.05-small 0.2
    • nixpkgs-26.05-darwin 0.2

pkgs.totp-cli

Authy/Google Authenticator like TOTP CLI tool written in Go

pkgs.otpclient

Highly secure and easy to use OTP client written in C/GTK that supports both TOTP and HOTP

pkgs.tpm2-totp

Attest the trustworthiness of a device against a human using time-based one-time passwords

pkgs.godotpcktool

Standalone tool for extracting and creating Godot .pck files

  • nixos-unstable 2.2
    • nixpkgs-unstable 2.2
    • nixos-unstable-small 2.3
  • nixos-26.05 2.2
    • nixos-26.05-small 2.2
    • nixpkgs-26.05-darwin 2.2

pkgs.nitrotpm-tools

Collection of utilities for working with NitroTPM attestation

pkgs.gnomeExtensions.totp

Generate One-Time Passwords (aka OTP, both TOTP and HOTP) for websites that use Two-Factor Authentication (2FA) like Google, Facebook, Discord, Amazon, Steam, etc.

  • nixos-unstable 54
    • nixpkgs-unstable 54
    • nixos-unstable-small 54
  • nixos-26.05 54
    • nixos-26.05-small 54
    • nixpkgs-26.05-darwin 54

pkgs.gnomeExtensions.bootpaper

Randomly selects a new wallpaper on startup from local folder

  • nixos-unstable 6
    • nixpkgs-unstable 6
    • nixos-unstable-small 6
  • nixos-26.05 6
    • nixos-26.05-small 6
    • nixpkgs-26.05-darwin 6
Nixpkgs has OTP/Erlang, but it wasn't suggested