apache-log4j2 — security advisory
The fix for CVE-2025-68161 https://logging.apache.org/security.html#CVE-2025-68161 was incomplete: it addressed hostname verification only when enabled via the log4j2.sslVerifyHostName https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName system property, but not when configured through the verifyHostName https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName attribute of the element. Although the verifyHostName configuration attribute was introduced in Log4j Core 2.12.0, it was silently ignored in all versions through 2.25.3, leaving TLS connections vulnerable to interception regardless of the configured value. A network-based attacker may be able to perform a man-in-the-middle attack when all of the following conditions are met: * An SMTP, Socket, or Syslog appender is in use. * TLS is configured via a nested element. * The attacker can present a certificate issued by a CA trusted by the appender's configured trust store, or by the default Java trust store if none is configured. This issue does not affect users of the HTTP appender, which uses a separate verifyHostname https://logging.apache.org/log4j/2.x/manual/appenders/network.html#HttpAppender-attr-verifyHostName attribute that was not subject to this bug and verifies host names by default. Users are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue.
- Products
- apache-log4j2
- Affected versions
- 2.10.0-1, 2.10.0-2, 2.10.0-2ubuntu0.1, 2.11.1-2, 2.11.2-1, 2.12.4-0ubuntu0.1, 2.13.3-1, 2.15.0-0.20.04.1, 2.15.0-1, 2.16.0-0.20.04.1, 2.16.0-1, 2.17.0-0.20.04.1, 2.17.0-1, 2.17.1-0.20.04.1, 2.17.1-1, 2.19.0-2, 2.19.0-2build1, 2.2-1, 2.4-1, 2.4-2, 2.4-2ubuntu0.1~esm1, 2.8.2-1, 2.8.2-2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-34477
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:00 UTC · Revision 1
Source evidence
The fix for CVE-2025-68161 https://logging.apache.org/security.html#CVE-2025-68161 was incomplete: it addressed hostname verification only when enabled via the log4j2.sslVerifyHostName https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName system property, but not when configured through the verifyHostName https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName attribute of the element. Although the verifyHostName configuration attribute was introduced in Log4j Core 2.12.0, it was silently ignored in all versions through 2.25.3, leaving TLS connections vulnerable to interception regardless of the configured value. A network-based attacker may be able to perform a man-in-the-middle attack when all of the following conditions are met: * An SMTP, Socket, or Syslog appender is in use. * TLS is configured via a nested element. * The attacker can present a certificate issued by a CA trusted by the appender's configured trust store, or by the default Java trust store if none is configured. This issue does not affect users of the HTTP appender, which uses a separate verifyHostname https://logging.apache.org/log4j/2.x/manual/appenders/network.html#HttpAppender-attr-verifyHostName attribute that was not subject to this bug and verifies host names by default. Users are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue.
osv:UBUNTU-CVE-2026-34477
apache-log4j2
Fixed versions: Not specified
apache-log4j2
Fixed versions: Not specified
apache-log4j2
Fixed versions: Not specified
apache-log4j2
Fixed versions: Not specified
apache-log4j2
Fixed versions: Not specified
apache-log4j2
Fixed versions: Not specified
apache-log4j2
Fixed versions: Not specified
apache-log4j2
Fixed versions: Not specified
Complete source record
{
"id": "00afda5719aca80aa56e0e6ae56d65b295c32266204e6ea5b9c9bb7b4b2d15bc",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-34477",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-34477",
"summary": "The fix for CVE-2025-68161 https://logging.apache.org/security.html#CVE-2025-68161 was incomplete: it addressed hostname verification only when enabled via the log4j2.sslVerifyHostName https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName system property, but not when configured through the verifyHostName https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName attribute of the element. Although the verifyHostName configuration attribute was introduced in Log4j Core 2.12.0, it was silently ignored in all versions through 2.25.3, leaving TLS connections vulnerable to interception regardless of the configured value. A network-based attacker may be able to perform a man-in-the-middle attack when all of the following conditions are met: * An SMTP, Socket, or Syslog appender is in use. * TLS is configured via a nested element. * The attacker can present a certificate issued by a CA trusted by the appender's configured trust store, or by the default Java trust store if none is configured. This issue does not affect users of the HTTP appender, which uses a separate verifyHostname https://logging.apache.org/log4j/2.x/manual/appenders/network.html#HttpAppender-attr-verifyHostName attribute that was not subject to this bug and verifies host names by default. Users are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue.",
"evidence": "osv:UBUNTU-CVE-2026-34477",
"products": [
{
"name": {
"value": "apache-log4j2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.4-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.4-2",
"evidence": "/affected/0/versions"
},
{
"value": "2.4-2ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "apache-log4j2",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.8.2-2",
"evidence": "/affected/1/versions"
},
{
"value": "2.10.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.10.0-2",
"evidence": "/affected/1/versions"
},
{
"value": "2.10.0-2ubuntu0.1",
"evidence": "/affected/1/versions"
},
{
"value": "2.12.4-0ubuntu0.1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "apache-log4j2",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.11.1-2",
"evidence": "/affected/2/versions"
},
{
"value": "2.11.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.15.0-0.20.04.1",
"evidence": "/affected/2/versions"
},
{
"value": "2.16.0-0.20.04.1",
"evidence": "/affected/2/versions"
},
{
"value": "2.17.0-0.20.04.1",
"evidence": "/affected/2/versions"
},
{
"value": "2.17.1-0.20.04.1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "apache-log4j2",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.13.3-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.15.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.16.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.17.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.17.1-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "apache-log4j2",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.19.0-2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "apache-log4j2",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.19.0-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "apache-log4j2",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.19.0-2build1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "apache-log4j2",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.19.0-2",
"evidence": "/affected/7/versions"
},
{
"value": "2.19.0-2build1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-34477",
"aliases": [
"UBUNTU-CVE-2026-34477"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-log4j2",
"purl": "pkg:deb/ubuntu/apache-log4j2?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"2.2-1",
"2.4-1",
"2.4-2",
"2.4-2ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34477.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4j2-java",
"binary_version": "2.4-2ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-log4j2",
"purl": "pkg:deb/ubuntu/apache-log4j2?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"2.8.2-1",
"2.8.2-2",
"2.10.0-1",
"2.10.0-2",
"2.10.0-2ubuntu0.1",
"2.12.4-0ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34477.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4j2-java",
"binary_version": "2.12.4-0ubuntu0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-log4j2",
"purl": "pkg:deb/ubuntu/apache-log4j2?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.11.1-2",
"2.11.2-1",
"2.15.0-0.20.04.1",
"2.16.0-0.20.04.1",
"2.17.0-0.20.04.1",
"2.17.1-0.20.04.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34477.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4j2-java",
"binary_version": "2.17.1-0.20.04.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-log4j2",
"purl": "pkg:deb/ubuntu/apache-log4j2?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.13.3-1",
"2.15.0-1",
"2.16.0-1",
"2.17.0-1",
"2.17.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34477.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4j2-java",
"binary_version": "2.17.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-log4j2",
"purl": "pkg:deb/ubuntu/apache-log4j2?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.19.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34477.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4j2-java",
"binary_version": "2.19.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-log4j2",
"purl": "pkg:deb/ubuntu/apache-log4j2?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.19.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34477.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4j2-java",
"binary_version": "2.19.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-log4j2",
"purl": "pkg:deb/ubuntu/apache-log4j2?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.19.0-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34477.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4j2-java",
"binary_version": "2.19.0-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-log4j2",
"purl": "pkg:deb/ubuntu/apache-log4j2?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.19.0-2",
"2.19.0-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34477.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4j2-java",
"binary_version": "2.19.0-2build1"
}
]
}
}
],
"modified": "2026-10-17T13:00:01.939080984Z",
"provider": "osv",
"upstream": [
"CVE-2026-34477"
],
"references": [
"https://ubuntu.com/security/CVE-2026-34477",
"https://www.cve.org/CVERecord?id=CVE-2026-34477",
"https://lists.apache.org/thread/lkx8cl46t2bvkcwfcb2pd43ygc097lq4",
"https://logging.apache.org/security.html#CVE-2026-34477",
"https://github.com/apache/logging-log4j2/pull/4075",
"https://logging.apache.org/cyclonedx/vdr.xml",
"https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName"
]
},
"related_cves": [
{
"value": "CVE-2026-34477",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360152,
"published_at": "2026-04-10T16:16:00+00:00"
}