p PatchFirst

CVE-2024-8948

CVE-2024-8948 · MicroPython objint.c mpz_as_bytes heap-based overflow

This page contains facts from public vulnerability sources. Check the original advisory before updating.

A vulnerability was found in MicroPython 1.23.0. It has been rated as critical. Affected by this issue is the function mpz_as_bytes of the file py/objint.c. The manipulation leads to heap-based buffer overflow. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The patch is identified as 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894. It is recommended to apply a patch to fix this issue. In micropython objint component, converting zero from int to bytes leads to heap buffer-overflow-write at mpz_as_bytes.

CVSS 6.9 · Medium · EPSS 1.0% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • micropython

    Versions
    • 1.23.0: Affected

    No fix published

  • micropython Debian:13

    Affected ranges
    • ECOSYSTEM: < 1.24.0+ds-1

    Update to 1.24.0+ds-1

  • micropython Debian:14

    Affected ranges
    • ECOSYSTEM: < 1.24.0+ds-1

    Update to 1.24.0+ds-1

  • micropython-copy PyPI

    Versions
    • 0.0.1
    • 0.0.2
    • 3.3.3-2
    • 3.3.3.post3
    Affected ranges
    • ECOSYSTEM: ≤ 3.3.3.post3

    No fix published

  • micropython-io PyPI

    Versions
    • 0.0.1
    • 0.0.2
    • 0.0.3
    • 0.1
    Affected ranges
    • ECOSYSTEM: ≤ 0.1

    No fix published

  • micropython-os PyPI

    Versions
    • 0.2.3
    • 0.2.4
    • 0.3
    • 0.3.1
    • 0.4.1
    • 0.4.2
    • 0.4.3
    • 0.4.4
    • 0.6
    • 0.7
    • 0.7.1
    • 0.8
    Affected ranges
    • ECOSYSTEM: ≤ 0.8

    No fix published

  • micropython-copy PyPI

    Versions
    • 0.0.1
    • 0.0.2
    • 3.3.3-2
    • 3.3.3.post3
    Affected ranges
    • GIT: < 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • micropython-io PyPI

    Versions
    • 0.0.1
    • 0.0.2
    • 0.0.3
    • 0.1
    Affected ranges
    • GIT: < 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • micropython-os PyPI

    Versions
    • 0.2.3
    • 0.2.4
    • 0.3
    • 0.3.1
    • 0.4.1
    • 0.4.2
    • 0.4.3
    • 0.4.4
    • 0.6
    • 0.7
    • 0.7.1
    • 0.8
    • v1.24.0-preview
    • v1.23.0
    • v1.22.0
    • v1.23.0-preview
    • v1.22.0-preview
    • v1.21.0
    • v1.20.0
    • v1.19.1
    • v1.19
    • v1.18
    • v1.17
    • v1.16
    • v1.15
    • v1.14
    • v1.13
    • v1.12
    • v1.11
    • v1.10
    • v1.9.4
    • v1.9.3
    • v1.9.2
    • v1.9.1
    • v1.9
    • v1.8.7
    • v1.8.6
    • v1.8.5
    • v1.8.4
    • v1.8.3
    • v1.8.2
    • v1.8.1
    • v1.8
    • v1.7
    • v1.6
    • v1.5.2
    • v1.5.1
    • v1.5
    • v1.4.6
    • v1.4.5
    • v1.4.4
    • v1.4.3
    • v1.4.2
    • v1.4.1
    • v1.4
    • v1.3.10
    • v1.3.9
    • v1.3.8
    • v1.3.7
    • v1.3.6
    • v1.3.5
    • v1.3.4
    • v1.3.3
    • v1.3.2
    • v1.3.1
    • v1.3
    • v1.2
    • v1.1.1
    • v1.1
    • v1.0.1
    • v1.0
    • v1.0-rc1
    Affected ranges
    • GIT: < 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • micropython Ubuntu:Pro:20.04:LTS

    Versions
    • 1.12-1
    • 1.12-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • micropython Ubuntu:22.04:LTS

    Versions
    • 1.17+ds-1ubuntu1
    • 1.17+ds-1.1
    • 1.17+ds-1.1ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • micropython Ubuntu:24.04:LTS

    Versions
    • 1.19.1+ds-1
    • 1.22.1+ds-1
    • 1.22.1+ds-1build1
    • 1.22.1+ds-1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →