# CVE-2018-1285: XML External Entity attack in log4net

Source: https://junglewise.ai/threats/cve-2018-1285-xml-external-entity-attack-in-log4net  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-01-29  
License: CC BY 4.0 with a link back

CVE-2018-1285 · Severity: low · CVSS 3.1 · Published 2021-01-29

XML External Entity attack in log4net

Technologies: [log4net (NuGet)](https://junglewise.ai/threats/technologies/nuget-log4net). Vendors: [NuGet](https://junglewise.ai/threats/vendors/nuget).

## Quick answers

**Is CVE-2018-1285 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-1285 being exploited in the wild.

**How severe is CVE-2018-1285?** Low severity, with a CVSS score of 3.1, published 29 January 2021.

**Which products and versions are affected?** log4net (NuGet) ECOSYSTEM:introduced=0,fixed=2.0.10.

**Is there a fix for CVE-2018-1285?** Yes. log4net (NuGet): upgrade to 2.0.10 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2018-1285?** Check whether you run log4net (NuGet) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- log4net (NuGet): upgrade to 2.0.10 or later

  ```sh
  dotnet add package log4net --version 2.0.10
  ```


## Affected products

- log4net (NuGet) ECOSYSTEM:introduced=0,fixed=2.0.10

## Identifiers

- CVE-2018-1285
- GHSA-2cwj-8chv-9pp9

## Related threats

- [Apache Log4net log suppression in XmlLayout](https://junglewise.ai/threats/cve-2026-40021-apache-log4net-log-suppression-in-xmllayout)
- [Apache log4net format string vulnerability causes DoS](https://junglewise.ai/threats/cve-2006-0743-apache-log4net-format-string-vulnerability-causes-dos)
