Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2018-1285 EUVD-2021-0478GHSA-2cwj-8chv-9pp9

XML External Entity attack in log4net

Published May 11, 2020 · Updated Aug 5, 2024 · Assigned by apache

Description

Apache log4net versions before 2.0.10 do not disable XML external entities when parsing log4net configuration files. This allows for XXE-based attacks in applications that accept attacker-controlled log4net configuration files.

Affected products

VendorProductAffectedFixed
— Apache log4net Apache log4net up to 2.0.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 log4net 1.2.10+dfsg-8 —
Debian 13 log4net 1.2.10+dfsg-8 —
Debian 8 log4net 1.2.10+dfsg-6+deb8u1 DLA-2211-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS log4net 1.2.10+dfsg-7ubuntu0.20.04.1 USN-4699-1
Ubuntu 18.04 LTS log4net 1.2.10+dfsg-7ubuntu0.18.04.1 USN-4699-1
Ubuntu 16.04 LTS log4net 1.2.10+dfsg-7ubuntu0.16.04.1 USN-4699-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed log4net 1.2.10-78.1 openSUSE-SU-2024:12311-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
NuGet log4net < 2.0.10 2.0.10 GHSA-2cwj-8chv-9pp9

Advisories 9

References