Loading...
Skip to main content

CVE-2018-1285 — XML External Entity attack in log4net — CVE Details

CRITICAL

XML External Entity attack in log4net

Published January 29, 2021Updated March 12, 2024Source: osv

Summary

Apache log4net before 2.0.10 does not disable XML external entities when parsing log4net configuration files. This could allow for XXE-based attacks in applications that accept arbitrary configuration files from users.

Advisory Timeline

  • First published January 29, 2021 (2082 days ago).
  • Last revised March 12, 2024 — 1137 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update log4net to 2.0.10 or later
dotnet add package log4net --version 2.0.10

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: nuget (1).

PackageEcosystemAffectedFixed In
log4net
nuget
1.2.10, 1.2.11, 2.0.0, 2.0.1 (+8 more)2.0.10

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-611
    XML External Entity (XXE)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

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

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

Frequently Asked Questions

What is CVE-2018-1285?
XML External Entity attack in log4net This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2018-1285?
CVE-2018-1285 affects log4net. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-1285 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-2cwj-8chv-9pp9

Related CVEs

  • CVE-2026-75513
    CRITICAL

    Marten's LINQ provider has SQL injection via unescaped string literals

  • CVE-2026-105794
    CRITICAL

    MsQuic: Improper Certificate Validation in Microsoft.Native.Quic.MsQuic.OpenSSL

  • CVE-2026-40021
    MEDIUM

    Apache Log4net: Silent log event loss in XmlLayout and XmlLayoutSchemaLog4J due to unescaped XML 1.0 forbidden characters

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies