Skip to main content

Apache Lucene.Net EUVDEUVD-2026-41517

| CVE-2026-47898 MEDIUM
Improper Restriction of XML External Entity Reference (CWE-611)
4.0
CVSS 4.0 · Vendor
View

Attack ChainAIDerived

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

  1. Access
    Supply malicious XML with external entity
  2. Exploit
    PatternParser resolves entity reference
  3. Execution
    Access local filesystem via file:// URI
  4. Impact
    Exfiltrate file contents through application response

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 that attacker-controlled or attacker-influenced XML content reaches a PatternParser instance within the application. The specific limiting factors are: (1) the application must use the Lucene.Net.Analysis.Common library version 4.8.0-beta00005 through 4.8.0-beta00017; (2) the XML supplied to PatternParser must originate from or be influenced by untrusted input - if only administrators supply pattern XML from static files, exploitation requires at minimum administrative access or compromise of configuration storage; (3) outbound SSRF impact is bounded by network egress controls on the application host. What limits exploitation: applications that treat pattern XML as static administrative configuration, firewall rules blocking unexpected outbound connections, and the beta/pre-release status of Lucene.Net reducing the total installed base. What enables exploitation: the well-understood and easily weaponized nature of XXE, and .NET's default XML parser behavior of resolving external entities unless explicitly disabled.

Impact

No NVD CVSS vector or score was provided with this CVE, requiring independent assessment. Based on the description and CWE-611, exploitation requires the attacker to supply malicious XML content to a PatternParser instance. If the application passes user-controlled data to PatternParser, attack complexity is low and privilege requirements may be minimal; if PatternParser only processes administrator-supplied configuration files, the effective privilege requirement is elevated. XXE vulnerabilities are broadly understood and exploitation tooling is readily available, lowering practical attack complexity. There is no EPSS score available, no KEV listing, and no known POC at time of analysis - all three signals suggest this has not seen opportunistic exploitation yet. The risk is real but context-dependent: applications where XML pattern definitions derive from untrusted user input face meaningfully higher exposure than those where only administrators configure analyzers. The absence of NVD CVSS data is noted explicitly - security teams should independently evaluate their deployment context against these conditions.

Exploit ScenarioDerived

An attacker who can submit XML-formatted pattern definitions to an application that passes them to PatternParser constructs a document containing an external entity referencing a sensitive file (e.g., /etc/passwd, web.config, or an internal cloud metadata endpoint). When PatternParser processes the document without entity resolution restrictions, the parser fetches and includes the file content, which the attacker can then observe via application output or error messages. No public POC has been identified, but the attack class is well-documented and trivially reproducible by any practitioner familiar with XXE techniques.

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 – Jul 03, 2026

XML External Entity injection in Apache Lucene.Net's PatternParser component (Lucene.Net.Analysis.Common library) allows attackers who can supply XML input to the parser to read arbitrary files from the host filesystem or trigger server-side request forgery. Affected deployments span versions 4.8.0-beta00005 through 4.8.0-beta00017. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in CISA KEV, but the well-understood XXE attack class combined with the availability of a fix version makes patching straightforward and strongly advisable.

RemediationAI

Upgrade Lucene.Net.Analysis.Common to version 4.8.0-beta00018, which is the vendor-confirmed patched release. Update via NuGet: 'dotnet add package Lucene.Net.Analysis.Common --version 4.8.0-beta00018'. If an immediate upgrade is not feasible, compensating controls include: (1) validating and sanitizing any XML input before passing it to PatternParser, explicitly stripping or rejecting DOCTYPE declarations and ENTITY definitions - note this is error-prone and should not replace patching; (2) configuring the .NET XmlReader with XmlResolver set to null and DtdProcessing set to Prohibit wherever XML is parsed, if the application has direct control over parser instantiation; (3) restricting outbound network access from the application server to limit SSRF blast radius, though this does not address local file read via file:// URIs. Refer to the oss-security advisory at https://seclists.org/oss-sec/2026/q3/15 for further context.

Affected VersionsENISA

Apache Lucene.Net 4.8.0-beta00005 <4.8.0-beta00018

Affected Packages

euvd apache_lucene_net fix: 4.8.0-beta00018

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

Apache Lucene.Net is a .NET port of the Apache Lucene Java search library, widely used for full-text search indexing. The vulnerable component is PatternParser within the Lucene.Net.Analysis.Common library, which parses XML-formatted pattern definitions used to configure text analysis pipelines (e.g., custom tokenizers, synonym filters, and stop-word lists). CWE-611 (Improper Restriction of XML External Entity Reference) describes the root cause: the XML parser was not configured to disable DOCTYPE declarations or external entity resolution. When an XML document containing an entity reference such as <!ENTITY xxe SYSTEM 'file:///etc/passwd'> is processed, the parser resolves the reference and includes the content in the parsed result. This can leak local file contents or cause the server to issue outbound HTTP/SMB requests, enabling SSRF. Affected CPE: cpe:2.3:a:apache:lucene.net.analysis.common:4.8.0-beta00005 through 4.8.0-beta00017.

Know when Lucene Net 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 (CNA) PRIMARY 4.0 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N
vuln.today AI 8.5 HIGH

Network vector for typical API/web deployment; PR:L because supplying XML patterns to PatternParser generally requires at least application-level access; S:C and C:H for cross-boundary file read; A:L for potential entity-expansion DoS.

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

Primary rating from Vendor (CNA).

CVSS VectorVendor

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

Lifecycle Timeline

2
Patch available
Jul 03, 2026 - 09:01 EUVD
CVSS changed
Jul 03, 2026 - 08:22 NVD
4.0 (MEDIUM)

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche .NET search library, currently beta-only release
Social Media
2
Sightings
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
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.

Related Vulnerabilities in Apache Lucene.Net File Access and XXE Vulnerabilities

View all 3

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