OESA-2026-3153

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2026-3153
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2026-3153.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2026-3153
Upstream
Published
2026-07-24T03:27:58Z
Modified
2026-07-24T03:45:15.838153926Z
Summary
log4j security update
Details

Log4j is a tool to help the programmer output log statements to a variety of output targets.

Security Fix(es):

Apache Log4j's JsonTemplateLayout in versions up to and including 2.25.3 produces invalid JSON output when log events contain non-finite floating-point values (NaN, Infinity, or -Infinity), which are prohibited by RFC 8259. This may cause downstream log processing systems to reject or fail to index affected records. An attacker can exploit this issue only if both of the following conditions are met: 1) The application uses JsonTemplateLayout; 2) The application logs a MapMessage containing an attacker-controlled floating-point value.(CVE-2026-34481)

Improper encoding of non-finite floating-point values during MapMessage JSON serialization in Apache Log4j API produces output that is not valid JSON. This issue affects Apache Log4j API versions 2.13.1 through 2.25.4 and version 2.26.0.

The fix for CVE-2026-34481 did not cover all code paths: when a MapMessage contains a non-finite IEEE 754 value (NaN, Infinity, or -Infinity), MapMessage.asJson() emits the corresponding bare token. RFC 8259 does not permit these tokens, so a conformant parser rejects the resulting document.

The defect is reachable only when both of the following conditions hold:

  • The application uses the message resolver https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#event-template-resolver-message of JsonTemplateLayout or any other layout that relies on MapMessage.asJson() or MapMessage.getFormattedMessage(new String[]{"JSON"}).
  • The application logs a MapMessage that contains an attacker-controlled floating-point value.

An attacker who can supply a non-finite value can cause the affected layout to emit malformed JSON, which may corrupt the enclosing log record or disrupt downstream log ingestion and parsing.

Users are advised to upgrade to Apache Log4j API 2.25.5 or 2.26.1, both of which emit RFC 8259-compliant JSON for non-finite values.(CVE-2026-49844)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:20.03-LTS-SP4
log4j

Package

Name
log4j
Purl
pkg:rpm/openEuler/log4j&distro=openEuler-20.03-LTS-SP4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.17.0-5.oe2003sp4

Ecosystem specific

{
    "src": [
        "log4j-2.17.0-5.oe2003sp4.src.rpm"
    ],
    "noarch": [
        "log4j-2.17.0-5.oe2003sp4.noarch.rpm",
        "log4j-bom-2.17.0-5.oe2003sp4.noarch.rpm",
        "log4j-help-2.17.0-5.oe2003sp4.noarch.rpm",
        "log4j-jcl-2.17.0-5.oe2003sp4.noarch.rpm",
        "log4j-jmx-gui-2.17.0-5.oe2003sp4.noarch.rpm",
        "log4j-slf4j-2.17.0-5.oe2003sp4.noarch.rpm",
        "log4j-taglib-2.17.0-5.oe2003sp4.noarch.rpm",
        "log4j-web-2.17.0-5.oe2003sp4.noarch.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3153.json"
openEuler:22.03-LTS-SP4
log4j

Package

Name
log4j
Purl
pkg:rpm/openEuler/log4j&distro=openEuler-22.03-LTS-SP4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.17.2-2.oe2203sp4

Ecosystem specific

{
    "src": [
        "log4j-2.17.2-2.oe2203sp4.src.rpm"
    ],
    "noarch": [
        "log4j-2.17.2-2.oe2203sp4.noarch.rpm",
        "log4j-bom-2.17.2-2.oe2203sp4.noarch.rpm",
        "log4j-help-2.17.2-2.oe2203sp4.noarch.rpm",
        "log4j-jcl-2.17.2-2.oe2203sp4.noarch.rpm",
        "log4j-jmx-gui-2.17.2-2.oe2203sp4.noarch.rpm",
        "log4j-slf4j-2.17.2-2.oe2203sp4.noarch.rpm",
        "log4j-taglib-2.17.2-2.oe2203sp4.noarch.rpm",
        "log4j-web-2.17.2-2.oe2203sp4.noarch.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3153.json"
openEuler:24.03-LTS-SP1
log4j

Package

Name
log4j
Purl
pkg:rpm/openEuler/log4j&distro=openEuler-24.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.17.2-2.oe2403sp1

Ecosystem specific

{
    "src": [
        "log4j-2.17.2-2.oe2403sp1.src.rpm"
    ],
    "noarch": [
        "log4j-2.17.2-2.oe2403sp1.noarch.rpm",
        "log4j-bom-2.17.2-2.oe2403sp1.noarch.rpm",
        "log4j-help-2.17.2-2.oe2403sp1.noarch.rpm",
        "log4j-jcl-2.17.2-2.oe2403sp1.noarch.rpm",
        "log4j-jmx-gui-2.17.2-2.oe2403sp1.noarch.rpm",
        "log4j-slf4j-2.17.2-2.oe2403sp1.noarch.rpm",
        "log4j-taglib-2.17.2-2.oe2403sp1.noarch.rpm",
        "log4j-web-2.17.2-2.oe2403sp1.noarch.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3153.json"
openEuler:24.03-LTS-SP3
log4j

Package

Name
log4j
Purl
pkg:rpm/openEuler/log4j&distro=openEuler-24.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.17.2-2.oe2403sp3

Ecosystem specific

{
    "src": [
        "log4j-2.17.2-2.oe2403sp3.src.rpm"
    ],
    "noarch": [
        "log4j-2.17.2-2.oe2403sp3.noarch.rpm",
        "log4j-bom-2.17.2-2.oe2403sp3.noarch.rpm",
        "log4j-help-2.17.2-2.oe2403sp3.noarch.rpm",
        "log4j-jcl-2.17.2-2.oe2403sp3.noarch.rpm",
        "log4j-jmx-gui-2.17.2-2.oe2403sp3.noarch.rpm",
        "log4j-slf4j-2.17.2-2.oe2403sp3.noarch.rpm",
        "log4j-taglib-2.17.2-2.oe2403sp3.noarch.rpm",
        "log4j-web-2.17.2-2.oe2403sp3.noarch.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3153.json"
openEuler:24.03-LTS-SP4
log4j

Package

Name
log4j
Purl
pkg:rpm/openEuler/log4j&distro=openEuler-24.03-LTS-SP4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.17.2-2.oe2403sp4

Ecosystem specific

{
    "src": [
        "log4j-2.17.2-2.oe2403sp4.src.rpm"
    ],
    "noarch": [
        "log4j-2.17.2-2.oe2403sp4.noarch.rpm",
        "log4j-bom-2.17.2-2.oe2403sp4.noarch.rpm",
        "log4j-help-2.17.2-2.oe2403sp4.noarch.rpm",
        "log4j-jcl-2.17.2-2.oe2403sp4.noarch.rpm",
        "log4j-jmx-gui-2.17.2-2.oe2403sp4.noarch.rpm",
        "log4j-slf4j-2.17.2-2.oe2403sp4.noarch.rpm",
        "log4j-taglib-2.17.2-2.oe2403sp4.noarch.rpm",
        "log4j-web-2.17.2-2.oe2403sp4.noarch.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3153.json"