{"id":"CVE-2026-133157","state":"PUBLISHED","title":"CSV Formula Injection in Audit Log CSV Exports in flowintel","description":"flowintel contains a CSV injection vulnerability in its audit log CSV export functionality. Attacker-influenced text recorded in audit logs could be interpreted as spreadsheet formulas when an administrator opened the exported CSV file in a spreadsheet application.\n\nThe vulnerable behavior allowed an attacker who could influence audit log content (for example by generating network traffic that is captured and logged) to embed formula-like strings (such as =CMD() or =HYPERLINK()) into audit entries. When the resulting CSV export was opened in a spreadsheet application, these strings could be executed as formulas, potentially leading to data exfiltration, data manipulation, or execution of further malicious actions within the spreadsheet context.\n\nPreconditions:\n- An attacker must be able to influence content that is recorded in flowintel audit logs.\n- An administrator or user must export the audit logs to CSV and open the file in a spreadsheet application that interprets formulas.\n\nSecurity impact:\n- Potential information disclosure from the spreadsheet or linked resources.\n- Potential integrity impact on data within the spreadsheet application.\n- No direct compromise of the flowintel application itself.\n\nAffected version: <4.1.0","publishedAt":"2026-11-19T13:42:58.758Z","updatedAt":"2026-11-19T14:25:55.135Z","severity":{"score":5.1,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","source":"CIRCL"},"assigner":"CIRCL","products":["flowintel flowintel"],"affected":[{"vendor":"flowintel","product":"flowintel","versions":[{"version":"0","status":"affected","lessThanOrEqual":"4.0.0","versionType":"semver"}],"cpes":["cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*"],"modules":["app/tools/audit_logs_core.py"],"programFiles":["app/tools/audit_logs_core.py"],"repo":"https://github.com/flowintel/flowintel"}],"references":["https://github.com/flowintel/flowintel/commit/25ad65000e62ee68a1a3444aeec73bd258189951"],"weaknesses":["CWE-1236","CWE-74"],"ingestedAt":"2026-11-19T14:32:06.342Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/133xxx/CVE-2026-133157.json","commit":"14022dca035c4894bf89a896d0435ff9f3d41bea","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133157","state":"PUBLISHED","datePublished":"2026-11-19T13:42:58.758Z","dateUpdated":"2026-11-19T14:25:55.135Z","assignerShortName":"CIRCL","assignerOrgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","dateReserved":"2026-11-19T13:42:50.926Z"},"containers":{"cna":{"title":"CSV Formula Injection in Audit Log CSV Exports in flowintel","descriptions":[{"lang":"en","value":"flowintel contains a CSV injection vulnerability in its audit log CSV export functionality. Attacker-influenced text recorded in audit logs could be interpreted as spreadsheet formulas when an administrator opened the exported CSV file in a spreadsheet application.\n\nThe vulnerable behavior allowed an attacker who could influence audit log content (for example by generating network traffic that is captured and logged) to embed formula-like strings (such as =CMD() or =HYPERLINK()) into audit entries. When the resulting CSV export was opened in a spreadsheet application, these strings could be executed as formulas, potentially leading to data exfiltration, data manipulation, or execution of further malicious actions within the spreadsheet context.\n\nPreconditions:\n- An attacker must be able to influence content that is recorded in flowintel audit logs.\n- An administrator or user must export the audit logs to CSV and open the file in a spreadsheet application that interprets formulas.\n\nSecurity impact:\n- Potential information disclosure from the spreadsheet or linked resources.\n- Potential integrity impact on data within the spreadsheet application.\n- No direct compromise of the flowintel application itself.\n\nAffected version: <4.1.0"}],"affected":[{"vendor":"flowintel","product":"flowintel","versions":[{"version":"0","status":"affected","lessThanOrEqual":"4.0.0","versionType":"semver"}],"cpes":["cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*"],"modules":["app/tools/audit_logs_core.py"],"programFiles":["app/tools/audit_logs_core.py"],"repo":"https://github.com/flowintel/flowintel"}],"references":[{"url":"https://github.com/flowintel/flowintel/commit/25ad65000e62ee68a1a3444aeec73bd258189951","name":"Security patch","tags":["patch"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","baseScore":5.1,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}},{"format":"SSVC","scenarios":[{"lang":"en","value":"GENERAL"}],"other":{"type":"SSVC","content":{"version":"2.0.3","role":"Supplier","timestamp":"2026-11-18T14:21:08Z","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}]}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1236","lang":"en","description":"CWE-1236 Formula Injection","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-74","lang":"en","description":"CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component","type":"CWE"}]}],"providerMetadata":{"shortName":"CIRCL","orgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","dateUpdated":"2026-11-19T13:42:58.758Z"},"solutions":[{"lang":"en","value":"The audit log CSV export now routes all cell values through a shared literal-text formatter (csv_safe_cell) that neutralises formula-like content by prefixing it with an apostrophe, ensuring the text is treated as inert data when opened in a spreadsheet application. Typed numeric values and JSON exports remain unaffected."}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*"}]}]}],"credits":[{"lang":"en","value":"elhoim","type":"reporter"},{"lang":"en","value":"David Cruciani","type":"remediation developer"}],"impacts":[{"capecId":"CAPEC-119","descriptions":[{"lang":"en","value":"CAPEC-119 CSV Injection"}]}],"x_gcve":[{"vulnId":"gcve-1-2026-20314","recordType":"advisory","extensions":{"bcp-05-x-01":{"ai_annotations":[{"scope":"record","gna_source":1,"tags":["ai-computer-assisted:llm-generated","ai-computer-assisted:classification"],"description":"Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.","ai_level":"generated","review_status":"full","models":[{"name":"qwen3.8:27b","gna_source":1,"source":"ollama","identifier":"qwen3.8:27b"}]}]},"bcp-05-x-02":{"x_patch2vuln":{"generator":"patch2vuln.py","generatedAt":"2026-11-18T14:21:08.189351Z","model":"qwen3.8:27b","source":"https://github.com/flowintel/flowintel/commit/25ad65000e62ee68a1a3444aeec73bd258189951.patch","patchSha256":"985a4b0d9641681ef352721b0b961fbf7910ea60989bc6e6d422ca72ea285a6c","patchTruncated":false,"commit":"25ad65000e62ee68a1a3444aeec73bd258189951","subject":"fix: [security] Neutralise formulas in audit log CSV exports","patches":[{"source":"https://github.com/flowintel/flowintel/commit/25ad65000e62ee68a1a3444aeec73bd258189951.patch","sourceUrl":"https://github.com/flowintel/flowintel/commit/25ad65000e62ee68a1a3444aeec73bd258189951.patch","patchSha256":"985a4b0d9641681ef352721b0b961fbf7910ea60989bc6e6d422ca72ea285a6c","commit":"25ad65000e62ee68a1a3444aeec73bd258189951","subject":"fix: [security] Neutralise formulas in audit log CSV exports","date":"Fri, 6 Nov 2026 10:54:28 +0100","retrievedAt":"2026-11-18T14:20:43.501372Z"}],"confidence":"high","assumptions":["The affected version is recorded as '0' from the explicit context; no specific version range or fixed version is provided in the patch metadata.","The assumption that the attacker can influence audit log content via network traffic is inferred from the commit message stating 'Attacker-influenced audit text'; the exact mechanism of influence is not detailed in the patch.","CVSS impact on adjacent components (SC:L, SI:L) assumes the spreadsheet formula could read or modify data; the patch does not specify the exact capabilities of the injected formulas.","The csv_safe_cell utility was introduced for a prior finding (F142) and is assumed to correctly neutralise all formula-triggering characters (=, +, -, @, tab, newline).","CAPEC-119 mapping is considered high-confidence; no uncertainty noted."],"fixSummary":"The audit log CSV export now routes all cell values through a shared literal-text formatter (csv_safe_cell) that neutralises formula-like content by prefixing it with an apostrophe, ensuring the text is treated as inert data when opened in a spreadsheet application. Typed numeric values and JSON exports remain unaffected.","patchSummary":"In app/tools/audit_logs_core.py, the rows_to_csv function was modified to import and apply csv_safe_cell from ..utils/csv_utils to every cell value before writing to the CSV writer, replacing the previous raw value pass-through. The user manual (doc/user-manual.md) was updated to explicitly state that the formula-protection behaviour also applies to audit-log CSV exports.","credits":[{"lang":"en","value":"elhoim","type":"reporter"},{"lang":"en","value":"David Cruciani","type":"remediation developer"}],"cvssRationale":"AV:N because the attacker-influenced content enters via network traffic captured by flowintel. AC:L because crafting a formula-like string in logged data is straightforward. AT:N because no special race or timing conditions are required. PR:N because the attacker does not need an account in flowintel to generate traffic that is logged. UI:A because an administrator must actively open the CSV in a spreadsheet application for the formula to execute. VC/VI/VA are N because the flowintel application itself is not compromised. SC:L and SI:L reflect the potential for a spreadsheet formula to read or modify data in the adjacent spreadsheet context. SA:N because there is no evidence of availability impact on the adjacent component.","ssvc":{"version":"2.0.3","role":"Supplier","timestamp":"2026-11-18T14:21:08Z","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}]},"weaknessRationale":[{"cweId":"CWE-1236","rationale":"The vulnerability allows attacker-controlled text to be written into a CSV file without neutralisation, so that spreadsheet applications interpret the text as executable formulas. This is the precise definition of formula injection."},{"cweId":"CWE-74","rationale":"The CSV output is consumed by a downstream component (spreadsheet application) that interprets special characters (leading =, +, -, @) as formula delimiters. The product failed to neutralise these special elements before output."}],"capecRationale":[{"capecId":"CAPEC-119","rationale":"CAPEC-119 directly describes the technique of injecting malicious formulas or commands into CSV files that are later opened in spreadsheet applications. The patch evidence (attacker-influenced audit text becoming spreadsheet formulas in a CSV export) is a textbook instance of this attack pattern. No uncertainty in this mapping."}],"modelComparison":{"selectedModel":"qwen3.8:27b","selectionMethod":"deterministic-consensus-v1","selectionNotice":"The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required.","rankings":[{"model":"qwen3.8:27b","score":8,"agreementScore":11,"confidence":"high","assumptionCount":5}],"potentialErrors":[]}}},"bcp-05-x-03":{"x_timeline":{"events":[{"type":"fix-developed","timestamp":"2026-11-06T09:54:28Z","description":"Corrective change authored (25ad65000e62ee68a1a3444aeec73bd258189951): fix: [security] Neutralise formulas in audit log CSV exports","references":["https://github.com/flowintel/flowintel/commit/25ad65000e62ee68a1a3444aeec73bd258189951.patch"],"id":"evt-fix-developed-1"},{"id":"evt-fix-available-1","type":"fix-available","timestamp":"2026-11-18T14:20:43.501372Z","description":"Patch retrieved from the supplied URL; retrieval time is used as the default availability time.","references":["https://github.com/flowintel/flowintel/commit/25ad65000e62ee68a1a3444aeec73bd258189951.patch"]}]}}}}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T14:25:45.666859Z","id":"CVE-2026-133157","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-19T14:25:55.135Z"}}]}}}