Skip to main content

tac_plus-ng EUVDEUVD-2026-127376

| CVE-2026-130875 HIGH
Operator Precedence Logic Error (CWE-783)
2026-11-17 VulnCheck GHSA-j8j8-frcr-8f56
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach TACACS+ port holding shared key
  2. Delivery
    Send crafted AUTHOR/ACCT packet with oversized arg-length table
  3. Exploit
    Bypass length check via operator-precedence bug
  4. Execution
    eval_args reads past packet, memcpy overflows stack cmdline
  5. Impact
    Crash daemon or execute code as root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Operator precedence logic error
Exploitation Conditions

Exploitation requires: (1) network reachability to the tac_plus-ng listener from a source address matching a configured host entry; (2) possession of that host entry's TACACS+ shared key - or no key at all when the host entry has key = "" or no key configured (no user password is needed); and (3) knowledge of one username whose profile permits service=shell, since the cmd=/cmd*/cmd-arg= parsing path in eval_args() is the overflow sink. The specific trigger is an authorization packet (type 2, body length 267) or accounting packet (type 3, datalength 268) carrying an argument-size table that sums to more than the payload, exploiting the exact condition where len reaches datalength while argument sizes remain unread. Limiting factors that reduce real-world risk: the single-packet trigger reliably crashes only under AddressSanitizer - on a default build the short trigger leaves the daemon running, so weaponization to a reliable crash or to RCE requires the documented five-connection heap-grooming chain (reflected as AC:H and AT:P). This is not a default-configuration, unauthenticated flaw: the shared key and a shell-permitted username are prerequisites.

Impact

Signals are moderately-high but gated. The CVSS 4.0 base score is 7.7 (High) with AV:N/AC:H/AT:P/PR:L and full VC:H/VI:H/VA:H, meaning network-reachable but conditioned on both elevated attack complexity (AC:H) and specific attack requirements (AT:P) plus low privileges (PR:L). Those three metrics are the honest brake on this bug: successful exploitation requires the attacker to already hold the TACACS+ shared key (or reach a host entry with no key), know a username whose profile permits service=shell, and - for code execution rather than a mere out-of-bounds read - arrange heap contents in advance across multiple connections. No CISA KEV entry is present in the input, so this is not confirmed actively exploited; no EPSS score was provided, so statistical exploitation probability cannot be stated. The vuln.today Decision label is 'this_week' (not act_now/emergency), which aligns with a serious, patch-this-cycle issue rather than a drop-everything emergency. The offsetting escalator is exploit maturity: the VulnCheck/GHSA advisory documents a working, reproduced PoC that was confirmed to achieve root (uid=0) code execution via a five-connection heap-grooming chain, so technical impact is maximal where the preconditions are met. Net: a real priority for anyone running an internet- or multi-tenant-exposed tac_plus-ng instance, but the shared-key/known-username/heap-groom prerequisites make it targeted rather than spray-and-pray; it is not a high-CVSS-but-hollow finding, yet neither is it unauthenticated mass-exploitable. Missing data to note explicitly: no EPSS and no KEV status were supplied, so widespread-versus-targeted exploitation likelihood is inferred from preconditions, not measured.

Exploit ScenarioDerived

An attacker who can reach the TACACS+ port from an address matching a configured host entry, and who knows that entry's shared key plus one username whose profile permits service=shell, sends a crafted authorization (or accounting) packet whose argument-length table sums to more than the payload. The operator-precedence bug in author_pak_looks_bogus()/accounting_pak_looks_bogus() accepts the packet, eval_args() then reads adjacent heap memory and memcpy()s oversized cmd values into the fixed stack buffer cmdline, crashing the worker or - with the documented multi-connection heap groom - executing code as root. A detailed, reproduced public PoC achieving root RCE is published in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Crafted TACACS+ authorization or accounting packets can overflow a stack buffer in tac_plus-ng, allowing a client that knows a configured host entry's shared key - or reaches a host entry configured without a key - to crash the daemon or, using the advisory's five-connection heap-grooming chain, execute code, though exploitation is gated by reachability from a configured host entry and knowledge of a username whose profile permits service=shell. Builds up to commit e20ac825b915492eb4bf5713340a2b0441f01f84 are affected, and commit d8493e0d6420b91737fa34c2cd7bbd365d023b5b contains the fix. No CISA KEV entry is reported; the advisory documents a proof-of-concept that reliably triggers the out-of-bounds read under AddressSanitizer, while the short trigger does not reliably crash a default build.

RemediationAI

Upgrade tac_plus-ng to commit d8493e0d6420b91737fa34c2cd7bbd365d023b5b or later; this commit adds the missing parentheses in author_pak_looks_bogus() and accounting_pak_looks_bogus(). A tagged release containing the fix is not independently confirmed in the supplied data, so verify the built binary includes the commit. The vendor advisory is https://github.com/tacplus-ng/event-driven-servers/security/advisories/GHSA-v384-f7x8-f7c7. Until patched, the supplied data does not describe a vendor workaround beyond the fix; exposure is gated by network reachability from a configured host entry and by the host entry's shared key (or lack of one when key = ""), and a client also needs a username whose profile permits service=shell. Limiting listener reachability to trusted management sources and ensuring host entries use non-empty keys can reduce exposure but do not fix the overflow for clients that satisfy the prerequisites.

Affected VersionsENISA

tac_plus-ng 0 <d8493e0d6420b91737fa34c2cd7bbd365d023b5b

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

tac_plus-ng is a TACACS+ daemon used for AAA of network devices. In author_pak_looks_bogus() and accounting_pak_looks_bogus() (tac_plus-ng/packet.c), the length-validation expression is missing parentheses: because ?: binds less tightly than ||, (i != pak->arg_cnt) || (flag) ? (len > datalength) : (len != datalength) evaluates as ((i != pak->arg_cnt) || flag) ? ..., so a packet whose argument-size table sums past the payload is accepted when the loop's running total reaches datalength exactly while argument sizes remain unread. eval_args() (author.c:66-84, called from author.c:141 and acct.c:119) then walks every argument using those sizes, reading beyond the packet into adjacent heap memory; arguments beginning with cmd=, cmd*, or cmd-arg= are copied via memcpy() into cmdline, a stack array sized 12 + datalength. Because mem_alloc() uses calloc() and freed large buffers can be reused for smaller ones, the heap memory read past the packet can contain attacker-controlled data from a prior large packet. CWE-783 (operator precedence error) is the root cause class, and the fixing commit adds the missing parentheses around the conditional; CPE cpe:2.3:a:marcjhuber:tac_plus-ng:*:*:*:*:*:*:*:* identifies the affected package, and the CVSS PR:L rating reflects the shared-key and shell-permitted-username prerequisites rather than a user password.

Know when Tac Plus Ng gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.7 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-reachable but requires the shared key (PR:L) and a precise length-edge plus heap grooming for RCE (AC:H); confirmed root code execution gives C/I/A:H with no scope change.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

tac_plus-ng before commit d8493e0 contains a stack-based buffer overflow vulnerability that allows clients holding the TACACS+ shared key to overflow a stack buffer due to an operator precedence error in author_pak_looks_bogus() and accounting_pak_looks_bogus(). Attackers can send packets whose argument-length table exceeds the payload, causing eval_args() to read past the packet and memcpy() oversized cmd values into cmdline, crashing the daemon or executing code.

Technical POC Analysis

CWE-783, operator precedence logic error, in the TACACS+ server tacplus-ng.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A stack buffer overflow vulnerability in tac_plus-ng, a TACACS+ daemon used for network device authentication, could allow an attacker with knowledge of a shared key and a valid username to crash the service or potentially execute code. This puts organizations relying on tac_plus-ng for AAA services at risk of network device authentication outages and potential lateral movement. Leadership should prioritize patching because the flaw is remotely reachable from configured hosts and a public proof-of-concept exists.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 53% exploitable
Prevalence
Low
niche open-source TACACS+ daemon, limited enterprise footprint versus commercial AAA
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy