USN-5638-2

Source
https://ubuntu.com/security/notices/USN-5638-2
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5638-2.json
JSON Data
https://api.test.osv.dev/v1/vulns/USN-5638-2
Upstream
Related
Published
2022-11-17T09:56:58.194026Z
Modified
2025-10-13T04:36:05Z
Summary
expat vulnerabilities
Details

USN-5638-1 fixed a vulnerability in Expat. This update provides the corresponding updates for Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.

It was discovered that Expat incorrectly handled memory in out-of-memory situations. An attacker could possibly use this issue to cause a crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 18.04 LTS. (CVE-2022-43680)

Original advisory details:

Rhodri James discovered that Expat incorrectly handled memory when processing certain malformed XML files. An attacker could possibly use this issue to cause a crash or execute arbitrary code.

References

Affected packages

Ubuntu:18.04:LTS / expat

Package

Name
expat
Purl
pkg:deb/ubuntu/expat@2.2.5-3ubuntu0.8?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.5-3ubuntu0.8

Affected versions

2.*

2.2.3-1
2.2.3-2
2.2.5-0ubuntu2
2.2.5-3
2.2.5-3ubuntu0.1
2.2.5-3ubuntu0.2
2.2.5-3ubuntu0.4
2.2.5-3ubuntu0.7

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "2.2.5-3ubuntu0.8",
            "binary_name": "expat"
        },
        {
            "binary_version": "2.2.5-3ubuntu0.8",
            "binary_name": "libexpat1"
        },
        {
            "binary_version": "2.2.5-3ubuntu0.8",
            "binary_name": "libexpat1-dev"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:18.04:LTS",
    "cves": [
        {
            "id": "CVE-2022-40674",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2022-43680",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}

Ubuntu:20.04:LTS / expat

Package

Name
expat
Purl
pkg:deb/ubuntu/expat@2.2.9-1ubuntu0.5?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.9-1ubuntu0.5

Affected versions

2.*

2.2.7-2
2.2.9-1
2.2.9-1build1
2.2.9-1ubuntu0.2
2.2.9-1ubuntu0.4

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "2.2.9-1ubuntu0.5",
            "binary_name": "expat"
        },
        {
            "binary_version": "2.2.9-1ubuntu0.5",
            "binary_name": "libexpat1"
        },
        {
            "binary_version": "2.2.9-1ubuntu0.5",
            "binary_name": "libexpat1-dev"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:20.04:LTS",
    "cves": [
        {
            "id": "CVE-2022-40674",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}

Ubuntu:22.04:LTS / expat

Package

Name
expat
Purl
pkg:deb/ubuntu/expat@2.4.7-1ubuntu0.1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.7-1ubuntu0.1

Affected versions

2.*

2.4.1-2
2.4.1-3
2.4.2-1
2.4.3-1
2.4.3-2
2.4.4-1
2.4.6-1
2.4.7-1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "2.4.7-1ubuntu0.1",
            "binary_name": "expat"
        },
        {
            "binary_version": "2.4.7-1ubuntu0.1",
            "binary_name": "libexpat1"
        },
        {
            "binary_version": "2.4.7-1ubuntu0.1",
            "binary_name": "libexpat1-dev"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:22.04:LTS",
    "cves": [
        {
            "id": "CVE-2022-40674",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}