Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply attacker-influenced database/schema metadata
-
Exploitpwiz _print_table emits unsanitized input into generated code
-
ExecutionDeveloper runs the generated module
-
ImpactArbitrary code executes in developer context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a developer to run peewee's pwiz code-generation utility (the _print_table path in pwiz.py) against attacker-influenced input and then execute the generated model code; this is a developer tooling / dev-time workflow, not a default-exposed network service. Per the CVSS vector, user interaction is required (UI:P) and no privileges are needed (PR:N). Limiting factors: affected versions are peewee up to and including 4.5.3; a patched version could not be determined from available sources (no PR/commit identified despite the GitHub issue being closed 'completed'), so upgrade guidance cannot be pinned to a specific fixed release from this data. |
| Impact | Signals point to a moderate, not urgent, priority. The CVSS 4.0 base vector (AV:N/AC:L/PR:N/UI:P, score 5.3 Medium) carries E:P (PoC) and the vuln.today decision label is 'this_month' - not act_now or emergency. It is NOT in CISA KEV and no EPSS score is provided, so there is no evidence of active or widespread exploitation. The 'AV:N / remote exploitation possible' framing is technically derived from the vector but misleading in practice: pwiz is a developer-run code-generation utility, not an exposed network service, and the vector itself requires UI:P (user interaction), so exploitation depends on a developer running pwiz against attacker-influenced input rather than an attacker reaching a listening service. The PoC signal is weak - the input provides a reference (the GitHub issue) that is not verified as working exploit code. Net: a real but conditional code-injection issue in a developer tooling path, reasonably prioritized for routine patching rather than emergency response. |
| Exploit ScenarioDerived | A developer runs peewee's pwiz model-generator against a database whose schema metadata (e.g. table/column identifiers) is attacker-influenced; the _print_table path emits that input into generated Python without adequate sanitization, so running the generated code executes attacker-controlled code. The CVSS vector requires user interaction (UI:P), consistent with a developer having to invoke the tool and use its output. A public PoC reference exists (the GitHub issue); it is not verified as working exploit code, and the precise trigger is not fully described in the available sources. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
A code injection flaw (CWE-94) in the peewee Python ORM's pwiz.py schema-introspection utility, specifically the _print_table function, affects versions up to and including 4.5.3 and can result in attacker-influenced content being written into generated model source code. Exploitation is not a default network-service attack: per the assessed vector it is remote-reachable but requires user interaction (UI:P) with no privileges (PR:N), meaning a developer must run pwiz against attacker-influenced input and then execute the generated model code - a developer-tooling workflow rather than a production-exposed endpoint. A public PoC reference exists (GitHub issue #3090); it is not verified as working exploit code, and there is no confirmed active exploitation (no CISA KEV listing). Priority is moderate rather than urgent, and the CVSS v4 base score is 5.3.
RemediationAI
No vendor-released patch with an identifiable fixed version was available at time of analysis: the upstream GitHub issue (https://github.com/coleifer/peewee/issues/3090) was closed as "completed", but no pull request or commit could be determined, so upgrade guidance cannot be pinned to a specific release - check the project page https://github.com/coleifer/peewee/ and the VulDB entry https://vuldb.com/vuln/443666 for a version newer than 4.5.3 before assuming one exists. Until a fix is confirmed, the actionable controls are to avoid running pwiz against databases, dumps, or schema metadata that an untrusted party can influence (this removes the injection surface but blocks legitimate use of the tool on shared or third-party data sources), and to treat pwiz output as untrusted code: generate into a staging file, review the emitted model definitions before importing or executing them rather than piping the output directly into a running application. Running pwiz inside a throwaway, low-privilege container or virtual environment limits the blast radius of generated code that is executed, at the cost of extra setup friction in the developer workflow. Restricting database credentials used by pwiz to read-only, minimally scoped accounts reduces what an injected payload can reach if the generated code is run, though it does not prevent the injection itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Peewee is a widely used pure-Python ORM; the bundled pwiz.py is a developer command-line utility that connects to an existing database, introspects its schema, and emits Python model class definitions that developers then import and run. The vulnerable path is the _print_table routine inside that code-generation component, which is classified under CWE-94 (Improper Control of Generation of Code), i.e. the generator does not adequately neutralize input before it is incorporated into the Python source it writes out. The available sources identify the affected function and component but do not describe the precise input field or escaping gap that carries the payload, so the exact trigger is not described in the available evidence. Because the output of pwiz is executable Python that a developer is expected to run, injected content that survives into the generated file is executed in the developer's context - this is why the issue is tagged RCE/Code Injection despite the tooling-only exposure. The affected CPE is cpe:2.3:a:coleifer:peewee:*:*:*:*:*:*:*:* with the vendor report bounding affected versions at 4.5.3 and below; no commit or pull request is identified as the fix, despite the upstream GitHub issue being closed as "completed".
Know when Peewee 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Code injection yields full code execution (C/I/A:H), but it needs a developer to run pwiz and execute attacker-influenced output, so UI:R and AC:H; no privileges on the target, hence PR:N.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was determined in coleifer peewee up to 4.5.3. This affects the function _print_table of the file pwiz.py of the component File Import Handler. This manipulation causes code injection. Remote exploitation of the attack is possible. The exploit has been publicly disclosed and may be utilized. The reported GitHub issue was closed with the reason "completed". However, it was not possible to determine the PR or commit which could have fixed this issue.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-135604
GHSA-rvvm-mv7x-xww8
NVD
CVE.org
EPSS
VulDB
Exploit-DB