GCVE-1-2026-20191

Vulnerability from gna-1 – Published: 2026-11-20 10:10 – Updated: 2026-11-20 10:10
VLAI
Title
flowintel Alert Configuration Corruption via Unescaped Backslash Sequences in Regex Replacement
Summary
flowintel contains a vulnerability in its alert configuration update mechanism. When an administrator updates alert configuration values, the serialized values are passed to a regular expression substitution function as a replacement template. This function interprets backslash escape sequences within the replacement string, meaning administrator-supplied values containing backslash characters (such as \n, \t, or \g<name>) are silently transformed into different characters or sequences. The corrupted value is then written to the configuration file on disk. If the resulting Python source is syntactically invalid, the application fails to import or start, causing a denial of service. Because the corrupted file persists on disk, the application remains non-functional until the configuration is manually repaired. Preconditions: - Attacker must have administrator-level access to the alert configuration update interface. - The attacker must supply a configuration value containing backslash sequences that, when interpreted as regex replacement escapes, produce invalid Python source. Security impact: - Denial of service: the application fails to start or import after a corrupted configuration is written. - Persistent disruption: the invalid configuration remains on disk until manually corrected. Affected versions: flowintel prior to 4.1.0.
SSVC
Exploitation: none Automatable: yes Technical Impact: total
Supplier · CNA (v2.0.3)
Decision recorded 2026-11-20 10:07 UTC
CWE
  • CWE-74 - Improper Handling of External Input
  • CWE-20 - Improper Input Validation
Assigner
CIRCL GNA GNA-1
GNA scorecard A 92/100 over 319 records in the last 180 days details
References
Impacted products
Vendor Product Version CPE status
flowintel flowintel Affected: 0 , < 4.1.0 (semver)
    cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*
Create a notification for this product.
GCVE extensions
bcp-05-x-01
AI-assisted vulnerability information annotation
GCVE-BCP-05-X-01
Whole record AI-generated Human-reviewed GNA-1

Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.

ai-computer-assisted:llm-generatedai-computer-assisted:classification
Model Source Identifier
qwen3.8:27b ollama qwen3.8:27b
bcp-05-x-02
Patch-to-vulnerability generation provenance
GCVE-BCP-05-X-02
Generator
patch2vuln.py on 2026-11-20 10:07
Model
qwen3.8:27b
Input
https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f.patch 8f404a3f9abf…
Confidence
medium
Commit Subject Patch SHA-256
1ae715affcbe fix: [security] Preserve alert configuration values without 8f404a3f9abf…
Fix summary

The fix addresses two issues. First, the replacement string passed to the regex substitution is now inserted via a callable (lambda) so that backslash sequences in administrator-supplied values are treated as literal characters rather than regex replacement escapes. Second, a compile check is performed on the complete proposed configuration content before it is written to disk. If the proposed source contains a syntax error, the write is aborted and an error response is returned, preserving the existing valid configuration file.

Patch summary

In app/alerts/alerts.py, the update_config() function was modified in two ways. The re.sub() call that previously used a string replacement (which interprets backslash escapes) was changed to use a lambda callable (lambda _m: replacement), ensuring the serialized value is inserted literally. Additionally, a compile(content, CONFIG_MODULE_PATH, "exec") check was added before the file write; if a SyntaxError is raised, the function returns a 400 JSON error response and does not write the file, leaving the existing configuration intact.

CVSS rationale

AV:N - the alert configuration update is exposed via a network-accessible web interface (Flask jsonify responses). AC:L - exploitation requires only supplying a value with backslash sequences; no race conditions or special timing needed. AT:N - no attack target manipulation required. PR:L - requires administrator-level access to the configuration update endpoint. UI:N - no user interaction needed beyond the API call. VC:N - no confidentiality impact. VI:N - while the config file is corrupted, the primary security impact is availability rather than meaningful data integrity compromise. VA:H - the corrupted configuration causes the application to fail to start, resulting in complete denial of service until manual repair. SC/SI/SA:N - no secondary scope impact.

Weakness rationale
  • CWE-74 Administrator-supplied configuration values containing backslash sequences are passed to re.sub() as a replacement template without neutralizing the special meaning of backslashes in that context. The input is not properly handled, leading to unintended transformation of the data and corruption of the configuration file.
  • CWE-20 The configuration values are not validated or checked for syntactic correctness before being written to the Python configuration file. The absence of a pre-write validation step allows invalid Python source to be persisted, causing application failure.
Attack pattern rationale
  • CAPEC-1 The closest matching attack pattern is Improper Input Validation. The application accepts administrator-supplied configuration values and uses them in a regex replacement context without validating or escaping backslash sequences that have special meaning in that context. The attacker (or even an unwitting administrator) supplies a value with backslash characters, and the application's failure to validate/neutralize the input leads to data corruption and denial of service. This is the best available CAPEC match; no more specific CAPEC for regex replacement escape injection exists in the CAPEC catalog.
Assumptions to verify
  • The affected version range is inferred from the explicit context (affected_version: 0, fixed_version: 4.1.0); the patch itself does not enumerate all affected versions.
  • PR:L assumes the configuration update endpoint requires administrator authentication; the commit message references 'administrator-supplied settings' but the patch does not show the authentication mechanism.
  • CAPEC-1 is selected as the closest plausible attack pattern; no CAPEC specifically covers regex replacement escape injection, so this is the best available match.
  • The CVSS vector assumes the application is deployed as a network-accessible web service; if deployed locally or behind additional access controls, AV and PR metrics may differ.
  • The patch does not indicate whether the vulnerability is exploitable for code execution; the observed impact is limited to configuration corruption and denial of service.
Model comparison

Selected qwen3.8:27b by deterministic-consensus-v1
The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required.

Model Score Agreement Confidence Assumptions
qwen3.8:27b 7 11 medium 5
bcp-05-x-03
Vulnerability handling and disclosure timeline
GCVE-BCP-05-X-03
  1. 2026-11-03 06:41 UTC Fix developed Corrective change authored (1ae715affcbeb5044b9c2396bd4a459f337d723f): fix: [security] Preserve alert configuration values without https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f.patch
  2. 2026-11-20 10:06 UTC Fix available Patch retrieved from the supplied URL; retrieval time is used as the default availability time. https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f.patch

{
  "containers": {
    "cna": {
      "affected": [
        {
          "cpes": [
            "cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "app/alerts/alerts.py"
          ],
          "product": "flowintel",
          "programFiles": [
            "app/alerts/alerts.py"
          ],
          "repo": "https://github.com/flowintel/flowintel",
          "vendor": "flowintel",
          "versions": [
            {
              "lessThan": "4.1.0",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "reporter",
          "value": "elhoim"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "David Cruciani"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "flowintel contains a vulnerability in its alert configuration update mechanism. When an administrator updates alert configuration values, the serialized values are passed to a regular expression substitution function as a replacement template. This function interprets backslash escape sequences within the replacement string, meaning administrator-supplied values containing backslash characters (such as \\n, \\t, or \\g\u003cname\u003e) are silently transformed into different characters or sequences.\n\nThe corrupted value is then written to the configuration file on disk. If the resulting Python source is syntactically invalid, the application fails to import or start, causing a denial of service. Because the corrupted file persists on disk, the application remains non-functional until the configuration is manually repaired.\n\nPreconditions:\n- Attacker must have administrator-level access to the alert configuration update interface.\n- The attacker must supply a configuration value containing backslash sequences that, when interpreted as regex replacement escapes, produce invalid Python source.\n\nSecurity impact:\n- Denial of service: the application fails to start or import after a corrupted configuration is written.\n- Persistent disruption: the invalid configuration remains on disk until manually corrected.\n\nAffected versions: flowintel prior to 4.1.0."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-1",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-1 Improper Input Validation"
            }
          ]
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "attackVector": "NETWORK",
            "baseScore": 7.1,
            "baseSeverity": "HIGH",
            "privilegesRequired": "LOW",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
            "version": "4.0",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        },
        {
          "format": "SSVC",
          "other": {
            "content": {
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "yes"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "role": "Supplier",
              "timestamp": "2026-11-20T10:07:00Z",
              "version": "2.0.3"
            },
            "type": "SSVC"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-74",
              "description": "CWE-74 Improper Handling of External Input",
              "lang": "en",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "cweId": "CWE-20",
              "description": "CWE-20 Improper Input Validation",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "00000000-0000-4000-8000-000000000000"
      },
      "references": [
        {
          "name": "Security patch",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "The fix addresses two issues. First, the replacement string passed to the regex substitution is now inserted via a callable (lambda) so that backslash sequences in administrator-supplied values are treated as literal characters rather than regex replacement escapes. Second, a compile check is performed on the complete proposed configuration content before it is written to disk. If the proposed source contains a syntax error, the write is aborted and an error response is returned, preserving the existing valid configuration file."
        }
      ],
      "title": "flowintel Alert Configuration Corruption via Unescaped Backslash Sequences in Regex Replacement",
      "x_gcve": [
        {
          "extensions": {
            "bcp-05-x-01": {
              "ai_annotations": [
                {
                  "ai_level": "generated",
                  "description": "Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.",
                  "gna_source": 1,
                  "models": [
                    {
                      "gna_source": 1,
                      "identifier": "qwen3.8:27b",
                      "name": "qwen3.8:27b",
                      "source": "ollama"
                    }
                  ],
                  "review_status": "full",
                  "scope": "record",
                  "tags": [
                    "ai-computer-assisted:llm-generated",
                    "ai-computer-assisted:classification"
                  ]
                }
              ]
            },
            "bcp-05-x-02": {
              "x_patch2vuln": {
                "assumptions": [
                  "The affected version range is inferred from the explicit context (affected_version: 0, fixed_version: 4.1.0); the patch itself does not enumerate all affected versions.",
                  "PR:L assumes the configuration update endpoint requires administrator authentication; the commit message references \u0027administrator-supplied settings\u0027 but the patch does not show the authentication mechanism.",
                  "CAPEC-1 is selected as the closest plausible attack pattern; no CAPEC specifically covers regex replacement escape injection, so this is the best available match.",
                  "The CVSS vector assumes the application is deployed as a network-accessible web service; if deployed locally or behind additional access controls, AV and PR metrics may differ.",
                  "The patch does not indicate whether the vulnerability is exploitable for code execution; the observed impact is limited to configuration corruption and denial of service."
                ],
                "capecRationale": [
                  {
                    "capecId": "CAPEC-1",
                    "rationale": "The closest matching attack pattern is Improper Input Validation. The application accepts administrator-supplied configuration values and uses them in a regex replacement context without validating or escaping backslash sequences that have special meaning in that context. The attacker (or even an unwitting administrator) supplies a value with backslash characters, and the application\u0027s failure to validate/neutralize the input leads to data corruption and denial of service. This is the best available CAPEC match; no more specific CAPEC for regex replacement escape injection exists in the CAPEC catalog."
                  }
                ],
                "commit": "1ae715affcbeb5044b9c2396bd4a459f337d723f",
                "confidence": "medium",
                "credits": [
                  {
                    "lang": "en",
                    "type": "reporter",
                    "value": "elhoim"
                  },
                  {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "David Cruciani"
                  }
                ],
                "cvssRationale": "AV:N - the alert configuration update is exposed via a network-accessible web interface (Flask jsonify responses). AC:L - exploitation requires only supplying a value with backslash sequences; no race conditions or special timing needed. AT:N - no attack target manipulation required. PR:L - requires administrator-level access to the configuration update endpoint. UI:N - no user interaction needed beyond the API call. VC:N - no confidentiality impact. VI:N - while the config file is corrupted, the primary security impact is availability rather than meaningful data integrity compromise. VA:H - the corrupted configuration causes the application to fail to start, resulting in complete denial of service until manual repair. SC/SI/SA:N - no secondary scope impact.",
                "fixSummary": "The fix addresses two issues. First, the replacement string passed to the regex substitution is now inserted via a callable (lambda) so that backslash sequences in administrator-supplied values are treated as literal characters rather than regex replacement escapes. Second, a compile check is performed on the complete proposed configuration content before it is written to disk. If the proposed source contains a syntax error, the write is aborted and an error response is returned, preserving the existing valid configuration file.",
                "generatedAt": "2026-11-20T10:07:00.369602Z",
                "generator": "patch2vuln.py",
                "model": "qwen3.8:27b",
                "modelComparison": {
                  "potentialErrors": [],
                  "rankings": [
                    {
                      "agreementScore": 11,
                      "assumptionCount": 5,
                      "confidence": "medium",
                      "model": "qwen3.8:27b",
                      "score": 7
                    }
                  ],
                  "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."
                },
                "patchSha256": "8f404a3f9abf564281f97a89a3f394127bcbf4e951122f05919ea6d105c4396c",
                "patchSummary": "In app/alerts/alerts.py, the update_config() function was modified in two ways. The re.sub() call that previously used a string replacement (which interprets backslash escapes) was changed to use a lambda callable (lambda _m: replacement), ensuring the serialized value is inserted literally. Additionally, a compile(content, CONFIG_MODULE_PATH, \"exec\") check was added before the file write; if a SyntaxError is raised, the function returns a 400 JSON error response and does not write the file, leaving the existing configuration intact.",
                "patchTruncated": false,
                "patches": [
                  {
                    "commit": "1ae715affcbeb5044b9c2396bd4a459f337d723f",
                    "date": "Tue, 3 Nov 2026 07:41:25 +0100",
                    "patchSha256": "8f404a3f9abf564281f97a89a3f394127bcbf4e951122f05919ea6d105c4396c",
                    "retrievedAt": "2026-11-20T10:06:29.718443Z",
                    "source": "https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f.patch",
                    "sourceUrl": "https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f.patch",
                    "subject": "fix: [security] Preserve alert configuration values without"
                  }
                ],
                "source": "https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f.patch",
                "ssvc": {
                  "options": [
                    {
                      "Exploitation": "none"
                    },
                    {
                      "Automatable": "yes"
                    },
                    {
                      "Technical Impact": "total"
                    }
                  ],
                  "role": "Supplier",
                  "timestamp": "2026-11-20T10:07:00Z",
                  "version": "2.0.3"
                },
                "subject": "fix: [security] Preserve alert configuration values without",
                "weaknessRationale": [
                  {
                    "cweId": "CWE-74",
                    "rationale": "Administrator-supplied configuration values containing backslash sequences are passed to re.sub() as a replacement template without neutralizing the special meaning of backslashes in that context. The input is not properly handled, leading to unintended transformation of the data and corruption of the configuration file."
                  },
                  {
                    "cweId": "CWE-20",
                    "rationale": "The configuration values are not validated or checked for syntactic correctness before being written to the Python configuration file. The absence of a pre-write validation step allows invalid Python source to be persisted, causing application failure."
                  }
                ]
              }
            },
            "bcp-05-x-03": {
              "x_timeline": {
                "events": [
                  {
                    "description": "Corrective change authored (1ae715affcbeb5044b9c2396bd4a459f337d723f): fix: [security] Preserve alert configuration values without",
                    "id": "evt-fix-developed-1",
                    "references": [
                      "https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f.patch"
                    ],
                    "timestamp": "2026-11-03T06:41:25Z",
                    "type": "fix-developed"
                  },
                  {
                    "description": "Patch retrieved from the supplied URL; retrieval time is used as the default availability time.",
                    "id": "evt-fix-available-1",
                    "references": [
                      "https://github.com/flowintel/flowintel/commit/1ae715affcbeb5044b9c2396bd4a459f337d723f.patch"
                    ],
                    "timestamp": "2026-11-20T10:06:29.718443Z",
                    "type": "fix-available"
                  }
                ]
              }
            }
          },
          "recordType": "advisory",
          "vulnId": "GCVE-1-2026-20191"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "00000000-0000-4000-8000-000000000000",
    "datePublished": "2026-11-20T10:10:35.471125Z",
    "dateUpdated": "2026-11-20T10:10:35.471125Z",
    "state": "PUBLISHED",
    "vulnId": "GCVE-1-2026-20191"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Solutions

CNA
The fix addresses two issues. First, the replacement string passed to the regex substitution is now inserted via a callable (lambda) so that backslash sequences in administrator-supplied values are treated as literal characters rather than regex replacement escapes. Second, a compile check is performed on the complete proposed configuration content before it is written to disk. If the proposed source contains a syntax error, the write is aborted and an error response is returned, preserving the existing valid configuration file.

Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.