CVE-2026-105963 json
Secret key base exposed in stack trace arguments on wrong-typed Plug.Crypto arguments
published 2026-10-23 16 d ago modified 2026-10-23 16 d ago also EEF-CVE-2026-105963 , GHSA-ffw9-w85g-f2vh , EUVD-2026-108666
- cvss
- 5.1
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 43%
- public exploits
- 0
- none known
Summary
Externally-Generated Error Message Containing Sensitive Information vulnerability in plug_crypto in elixir-plug plug_crypto allows an unauthenticated remote attacker to expose the secret key base through application logs via a wrong-typed argument. Every public function in Plug.Crypto validates argument types in a function-head guard. A failed guard makes the Erlang VM raise FunctionClauseError with the actual argument values in the top stack frame, so the secret key base, a derived key, or the value an API key is compared against lands in that frame. The library's rescue blocks and Plug.Crypto.prune_args_from_stacktrace/1 only reach exceptions raised inside a function body, so they never see a guard failure. Plug.Cowboy and Bandit write the frame to the error log and attach it as crash_reason Logger metadata, which error trackers forward.
Two entry points take request data. Plug.Crypto.verify/4 exposes the secret key base when the token is neither a binary nor nil, which Phoenix.Token.verify/4 reaches because it forwards the token unguarded. Plug.Crypto.secure_compare/2 exposes the other operand when one side is not a binary, as happens when a missing request header yields nil. Reading the leaked value needs separate access to the logs or the error tracker, so the request alone does not disclose the secret to the attacker.
This issue affects plug: from 1.6.3 before 1.7.0; plug_crypto: from 1.0.0 before 2.2.1.
Patch / fix
- hex plug 1.7.0
- hex plug_crypto 2.2.1
- elixir-plug plug 1.7.0
- elixir-plug plug_crypto 2.2.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-105963 updated cvss 4.9
plug_crypto: plug: plug_crypto: Information disclosure via invalid request argument types
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 16 d ago
Exploit prediction
0.51% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| hex | plug | >=1.6.3, <1.7.0 |
1.7.0 |
| hex | plug_crypto | >=1.0.0, <2.2.1 |
2.2.1 |
Affected products
- elixir-plug plug
- elixir-plug plug_crypto
Classification
- Weakness
-
- CWE-532 Insertion of Sensitive Information into Log File
References
-
github.com
/elixir-plug/plug/commit/56000c33d8a0a2fbac491f8be06b9c5112bc2276
related, web
-
github.com
/elixir-plug/plug/commit/aeaa90e76b73ea90c3ecca9aae16fce71bd2a8d4
patch
-
github.com
/elixir-plug/plug_crypto/commit/2d078b7b8264c565f0ff71235c515f4f46882dcf
related, web
-
github.com
/elixir-plug/plug_crypto/commit/981887493dada0fce7003c61861c00dfbb0fc8c5
patch
-
github.com
/elixir-plug/plug/security/advisories/GHSA-ffw9-w85g-f2vh
vendor-advisory, related, advisory
-
cna.erlef.org
/cves/CVE-2026-105963.html
related, web
-
osv.dev
/vulnerability/EEF-CVE-2026-105963
related
-
hex.pm
/packages/plug
package
-
hex.pm
/packages/plug_crypto
package
Sources
- CVE List CVE-2026-105963
- NVD CVE-2026-105963
- OSV EEF-CVE-2026-105963
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.