Skip to content

Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs) #90950

Closed

Description

@hartwork
mannequin
BPO 46794
Nosy @ned-deily, @ambv, @mgorny, @mattip, @hartwork, @corona10, @miss-islington
PRs
  • bpo-46794: Bump up the libexpat version into 2.4.6 #31487
  • bpo-46794: Bump up the libexpat version into 2.4.6 #31487
  • [3.10] bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) #31518
  • [3.9] bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) #31519
  • [3.8] bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) #31520
  • [3.7] bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) #31521
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/corona10'
    closed_at = <Date 2022-03-02.09:20:33.019>
    created_at = <Date 2022-02-18.23:36:28.648>
    labels = ['type-security', '3.8', '3.9', '3.10', '3.11', 'expert-XML', '3.7']
    title = 'Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs)'
    updated_at = <Date 2022-03-05.16:57:31.480>
    user = 'https://github.com/hartwork'

    bugs.python.org fields:

    activity = <Date 2022-03-05.16:57:31.480>
    actor = 'mattip'
    assignee = 'corona10'
    closed = True
    closed_date = <Date 2022-03-02.09:20:33.019>
    closer = 'corona10'
    components = ['XML']
    creation = <Date 2022-02-18.23:36:28.648>
    creator = 'sping'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46794
    keywords = ['patch']
    message_count = 14.0
    messages = ['413517', '413587', '413596', '413597', '413598', '413606', '413762', '413765', '413766', '413862', '414333', '414525', '414537', '414587']
    nosy_count = 7.0
    nosy_names = ['ned.deily', 'lukasz.langa', 'mgorny', 'mattip', 'sping', 'corona10', 'miss-islington']
    pr_nums = ['31487', '31487', '31518', '31519', '31520', '31521']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'security'
    url = 'https://bugs.python.org/issue46794'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']

    Activity

    1. hartwork commented on Feb 18, 2022

      hartworkmannequin
      MannequinAuthor
    2. added
      3.7 (EOL)
      3.8 (EOL)
      3.9 (EOL)
      3.10 (EOL)
      3.11
      type-security
      on Feb 18, 2022
    3. 5 remaining items

    4. hartwork commented on Feb 20, 2022

      hartworkmannequin
      MannequinAuthor

      I'm busy with the release upstream at the moment. I'll see what I can do.

    5. hartwork commented on Feb 20, 2022

      hartworkmannequin
      MannequinAuthor

      I have created a dedicated ticket bpo-46811 now, test suite pull request upcoming.

    6. corona10 commented on Feb 23, 2022

      @corona10
      Member

      New changeset 1935e1c by Dong-hee Na in branch 'main':
      bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)
      1935e1c

    7. miss-islington commented on Feb 23, 2022

      @miss-islington
      Contributor

      New changeset 4955a9e by Miss Islington (bot) in branch '3.10':
      bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)
      4955a9e

    8. miss-islington commented on Feb 23, 2022

      @miss-islington
      Contributor

      New changeset 87cebb1 by Miss Islington (bot) in branch '3.9':
      bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)
      87cebb1

    9. ned-deily commented on Feb 23, 2022

      @ned-deily
      Member

      New changeset 15d7594 by Miss Islington (bot) in branch '3.7':
      bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) (GH-31521)
      15d7594

    10. ambv commented on Mar 2, 2022

      @ambv
      Contributor

      New changeset eb6c840 by Miss Islington (bot) in branch '3.8':
      bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) (GH-31520)
      eb6c840

    11. mattip commented on Mar 4, 2022

      @mattip
      Contributor

      On PyPy, the test test_issue3151 in test_xml_etree.py is failing with libexpat 2.4.6. I think the problem is connected to instantiation of the XMLParser() with parser = expat.ParserCreate(encoding, "}") where "}" is not a valid URI character. In any case, due to libexpat issue 577, libexpat/libexpat#577 they will be releasing a new version 2.4.7 soon.

    12. hartwork commented on Mar 4, 2022

      hartworkmannequin
      MannequinAuthor

      Hi mattip,

      at the core the problem is not the use of non-URI character "}" for a namespace separator but the use of non-URI character "}" in a namespace URI. test_issue3151 is mistaken (meaning that non-URI characters in URIs are malformed XML) and the test has been removed in CPython pull request https://github.com/python/cpython/pull/31453/files . Expat pull request libexpat/libexpat#577 is related but it's about URI characters not about non-URI ones, so it does not change anything about test_issue3151 in PyPy. Does that make sense?

      Best, Sebastian

    13. mattip commented on Mar 5, 2022

      @mattip
      Contributor

      [T]he test has been removed in CPython pull request https://github.com/python/cpython/pull/31453/files

      Thanks, I missed that. Makes sense.

    14. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.10 (EOL)3.113.7 (EOL)3.8 (EOL)3.9 (EOL)topic-XMLtype-security

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions