Skip to main content

Peewee ORM EUVDEUVD-2026-135604

| CVE-2026-136721 LOW
Code Injection (CWE-94)
2026-11-25 VulDB GHSA-rvvm-mv7x-xww8
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply attacker-influenced database/schema metadata
  2. Exploit
    pwiz _print_table emits unsanitized input into generated code
  3. Execution
    Developer runs the generated module
  4. Impact
    Arbitrary 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

peewee 4.5.2
peewee 4.5.3
peewee 4.5.0
peewee 4.5.1

Affected Packages

euvd peewee no fix

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

Vendor (VulDB) PRIMARY 2.1 MEDIUM
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Nov 25, 2026 - 18:22 NVD
MEDIUM LOW
CVSS changed
Nov 25, 2026 - 18:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Nov 25, 2026 - 17:30 cve.org
MEDIUM 5.3

DescriptionCVE.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

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Medium
popular lightweight Python ORM; vulnerable pwiz is a dev-time tool
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy