Skip to main content

Biopython Bio.Entrez CVE-2025-68463

MEDIUM
Improper Restriction of XML External Entity Reference (CWE-611)
2025-12-18 cve@mitre.org
4.9
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to application
  2. Delivery
    Craft XML with DOCTYPE XXE payload
  3. Exploit
    Submit to Bio.Entrez parser
  4. Execution
    Parser resolves external entity
  5. Impact
    Read file or DoS

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML external entity prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) authenticated access to the application (PR:L), (2) ability to influence or intercept Bio.Entrez XML parsing (either by providing malicious XML input or via network position in specific deployment), (3) an XML parser configuration that permits DOCTYPE and external entity resolution. The XXE vulnerability is NOT exploitable against default Entrez queries from NCBI servers unless NCBI itself is compromised. Limiting factors: authentication mandatory (unauthenticated users cannot trigger), high attack complexity suggests non-trivial prerequisites such as specific XML structure or application configuration, parser defaults may disable external entities in newer Python versions (mitigating factor not confirmed in CVE description).

Impact

CVSS 4.9 with AV:N/AC:H/PR:L indicates network-accessible but significantly constrained exploitation: authenticated users only, high attack complexity, and limited impact (confidentiality and availability only, no integrity). EPSS 0.07% (20th percentile) strongly signals low exploitation probability in real environments, contradicting typical XXE severity expectations. The high-complexity requirement (AC:H) aligns with EPSS assessment-this is not an easy-to-exploit vulnerability. KEV status (not listed) confirms no active exploitation at time of analysis. The Scope:Changed (S:C) flag indicates potential impact across trust boundaries in multi-tenant scenarios, but the PR:L (low privilege) requirement severely restricts the threat model. Real-world risk is LOW: this affects only authenticated users capable of influencing Entrez query handling, and the XXE attack surface depends on parser behavior not independently verified from available data. For most users, this is a lower-priority fix unless the application parses untrusted XML from Entrez or similar sources in a sensitive context.

Exploit ScenarioDerived

An authenticated user with access to a Biopython application crafts a malicious Entrez query response containing a DOCTYPE with external entity references. When Bio.Entrez parses the response, the XXE injection causes the XML parser to resolve the external entity, potentially reading local files (e.g., /etc/passwd) or triggering a billion-laughs denial-of-service attack. Due to AC:H requirement, the attack likely requires specific conditions such as custom XML formatting or manipulation of the Entrez request-response cycle that the attacker controls.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 23, 2026

Biopython's Bio.Entrez module through version 1.86 is vulnerable to XML external entity (XXE) injection in doctype parsing, allowing authenticated remote attackers to read arbitrary files or cause denial of service. The vulnerability requires authenticated access and high attack complexity, resulting in a CVSS score of 4.9 with low confidentiality and availability impact across trust boundaries. Exploitation is not currently tracked in CISA KEV and has extremely low EPSS probability (0.07%, 20th percentile), indicating limited real-world risk despite the XXE vector.

RemediationAI

Upgrade Biopython to version 1.87 or later immediately via pip install --upgrade biopython. No workarounds are documented for users unable to upgrade. For development environments, verify the fix commit (736c96f37b190732ecca9da80ad0cb9d4967214d) has been applied if building from source. Restrict Bio.Entrez module usage to trusted NCBI endpoints only; if parsing XML from external sources, implement input validation and disable DOCTYPE processing at the parser level (if supported by the underlying XML library). Organizations should prioritize patching in systems where Bio.Entrez directly processes user-controlled XML input.

Affected Packages

pypi biopython fix: 1.87

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Bio.Entrez is a Biopython module for querying NCBI Entrez databases via HTTP requests and parsing XML responses. The vulnerability stems from improper handling of DOCTYPE declarations in XML parsing (CWE-611: Improper Restriction of XML External Entity Reference). When Bio.Entrez processes XML responses from Entrez servers or user-supplied XML input, it does not adequately restrict external entity resolution in the XML parser, allowing DOCTYPE-based XXE attacks. The attack requires an authenticated context and high complexity (likely requiring specific XML structure or NCBI service conditions), limiting practical exploitability compared to traditional XXE vulnerabilities.

Know when the next one hits your stack

  • 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 (mitre) PRIMARY 4.9 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:L
SUSE MEDIUM
Red Hat 7.1 MEDIUM

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
Low

DescriptionCVE.org

Bio.Entrez in Biopython through 186 allows doctype XXE.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed

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