USN-4991-1

Source
https://ubuntu.com/security/notices/USN-4991-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-4991-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-4991-1
Upstream
Related
Published
2021-06-17T14:59:21.897148Z
Modified
2025-10-13T04:35:32Z
Summary
libxml2 vulnerabilities
Details

Yunho Kim discovered that libxml2 incorrectly handled certain error conditions. A remote attacker could exploit this with a crafted XML file to cause a denial of service, or possibly cause libxml2 to expose sensitive information. This issue only affected Ubuntu 14.04 ESM, and Ubuntu 16.04 ESM. (CVE-2017-8872)

Zhipeng Xie discovered that libxml2 incorrectly handled certain XML schemas. A remote attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 ESM, Ubuntu 16.04 ESM, and Ubuntu 18.04 LTS. (CVE-2019-20388)

It was discovered that libxml2 incorrectly handled invalid UTF-8 input. A remote attacker could possibly exploit this with a crafted XML file to cause libxml2 to crash, resulting in a denial of service. This issue only affected Ubuntu 14.04 ESM, Ubuntu 16.04 ESM, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 20.10. (CVE-2020-24977)

It was discovered that libxml2 incorrectly handled invalid UTF-8 input. A remote attacker could possibly exploit this with a crafted XML file to cause libxml2 to crash, resulting in a denial of service. (CVE-2021-3517)

It was discovered that libxml2 did not properly handle certain crafted XML files. A local attacker could exploit this with a crafted input to cause libxml2 to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2021-3516, CVE-2021-3518)

It was discovered that libxml2 incorrectly handled error states. A remote attacker could exploit this with a crafted XML file to cause libxml2 to crash, resulting in a denial of service. (CVE-2021-3537)

Sebastian Pipping discovered that libxml2 did not properly handle certain crafted XML files. A remote attacker could exploit this with a crafted XML file to cause libxml2 to crash, resulting in a denial of service. This issue only affected Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-3541)

References

Affected packages

Ubuntu:Pro:14.04:LTS / libxml2

Package

Name
libxml2
Purl
pkg:deb/ubuntu/libxml2@2.9.1+dfsg1-3ubuntu4.13+esm2?arch=source&distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.1+dfsg1-3ubuntu4.13+esm2

Affected versions

2.*

2.9.1+dfsg1-3ubuntu2
2.9.1+dfsg1-3ubuntu3
2.9.1+dfsg1-3ubuntu4
2.9.1+dfsg1-3ubuntu4.1
2.9.1+dfsg1-3ubuntu4.2
2.9.1+dfsg1-3ubuntu4.3
2.9.1+dfsg1-3ubuntu4.4
2.9.1+dfsg1-3ubuntu4.5
2.9.1+dfsg1-3ubuntu4.6
2.9.1+dfsg1-3ubuntu4.7
2.9.1+dfsg1-3ubuntu4.8
2.9.1+dfsg1-3ubuntu4.9
2.9.1+dfsg1-3ubuntu4.10
2.9.1+dfsg1-3ubuntu4.11
2.9.1+dfsg1-3ubuntu4.12
2.9.1+dfsg1-3ubuntu4.13
2.9.1+dfsg1-3ubuntu4.13+esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.9.1+dfsg1-3ubuntu4.13+esm2",
            "binary_name": "libxml2"
        },
        {
            "binary_version": "2.9.1+dfsg1-3ubuntu4.13+esm2",
            "binary_name": "libxml2-dev"
        },
        {
            "binary_version": "2.9.1+dfsg1-3ubuntu4.13+esm2",
            "binary_name": "libxml2-utils"
        },
        {
            "binary_version": "2.9.1+dfsg1-3ubuntu4.13+esm2",
            "binary_name": "python-libxml2"
        }
    ],
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:Pro:14.04:LTS",
    "cves": [
        {
            "id": "CVE-2017-8872",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2019-20388",
            "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": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2020-24977",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2021-3516",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3517",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3518",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3537",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}

Ubuntu:Pro:16.04:LTS / libxml2

Package

Name
libxml2
Purl
pkg:deb/ubuntu/libxml2@2.9.3+dfsg1-1ubuntu0.7+esm1?arch=source&distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.3+dfsg1-1ubuntu0.7+esm1

Affected versions

2.*

2.9.2+zdfsg1-4
2.9.2+zdfsg1-4ubuntu1
2.9.2+zdfsg1-4ubuntu2
2.9.2+zdfsg1-4ubuntu3
2.9.3+dfsg1-1
2.9.3+dfsg1-1ubuntu0.1
2.9.3+dfsg1-1ubuntu0.2
2.9.3+dfsg1-1ubuntu0.3
2.9.3+dfsg1-1ubuntu0.4
2.9.3+dfsg1-1ubuntu0.5
2.9.3+dfsg1-1ubuntu0.6
2.9.3+dfsg1-1ubuntu0.7

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.9.3+dfsg1-1ubuntu0.7+esm1",
            "binary_name": "libxml2"
        },
        {
            "binary_version": "2.9.3+dfsg1-1ubuntu0.7+esm1",
            "binary_name": "libxml2-dev"
        },
        {
            "binary_version": "2.9.3+dfsg1-1ubuntu0.7+esm1",
            "binary_name": "libxml2-utils"
        },
        {
            "binary_version": "2.9.3+dfsg1-1ubuntu0.7+esm1",
            "binary_name": "python-libxml2"
        }
    ],
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:Pro:16.04:LTS",
    "cves": [
        {
            "id": "CVE-2017-8872",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2019-20388",
            "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": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2020-24977",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2021-3516",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3517",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3518",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3537",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}

Ubuntu:18.04:LTS / libxml2

Package

Name
libxml2
Purl
pkg:deb/ubuntu/libxml2@2.9.4+dfsg1-6.1ubuntu1.4?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.4+dfsg1-6.1ubuntu1.4

Affected versions

2.*

2.9.4+dfsg1-4ubuntu1
2.9.4+dfsg1-5ubuntu1
2.9.4+dfsg1-5ubuntu2
2.9.4+dfsg1-5.1ubuntu1
2.9.4+dfsg1-5.2ubuntu1
2.9.4+dfsg1-6.1ubuntu1
2.9.4+dfsg1-6.1ubuntu1.2
2.9.4+dfsg1-6.1ubuntu1.3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.9.4+dfsg1-6.1ubuntu1.4",
            "binary_name": "libxml2"
        },
        {
            "binary_version": "2.9.4+dfsg1-6.1ubuntu1.4",
            "binary_name": "libxml2-dev"
        },
        {
            "binary_version": "2.9.4+dfsg1-6.1ubuntu1.4",
            "binary_name": "libxml2-utils"
        },
        {
            "binary_version": "2.9.4+dfsg1-6.1ubuntu1.4",
            "binary_name": "python-libxml2"
        },
        {
            "binary_version": "2.9.4+dfsg1-6.1ubuntu1.4",
            "binary_name": "python3-libxml2"
        }
    ],
    "availability": "No subscription required"
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:18.04:LTS",
    "cves": [
        {
            "id": "CVE-2019-20388",
            "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": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2020-24977",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2021-3516",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3517",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3518",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3537",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}

Ubuntu:20.04:LTS / libxml2

Package

Name
libxml2
Purl
pkg:deb/ubuntu/libxml2@2.9.10+dfsg-5ubuntu0.20.04.1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.10+dfsg-5ubuntu0.20.04.1

Affected versions

2.*

2.9.4+dfsg1-7ubuntu3
2.9.4+dfsg1-7ubuntu5
2.9.4+dfsg1-8ubuntu1
2.9.4+dfsg1-8ubuntu2
2.9.4+dfsg1-8ubuntu3
2.9.10+dfsg-1ubuntu3
2.9.10+dfsg-4build1
2.9.10+dfsg-5

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.1",
            "binary_name": "libxml2"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.1",
            "binary_name": "libxml2-dev"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.1",
            "binary_name": "libxml2-utils"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.1",
            "binary_name": "python-libxml2"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.1",
            "binary_name": "python3-libxml2"
        }
    ],
    "availability": "No subscription required"
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:20.04:LTS",
    "cves": [
        {
            "id": "CVE-2020-24977",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "low"
                }
            ]
        },
        {
            "id": "CVE-2021-3516",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3517",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3518",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3537",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        },
        {
            "id": "CVE-2021-3541",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}