# CVE-2022-24675: golang-1.18: encoding/pem in Go before 1.17.9 and 1.18.x before 1.18.1 has a Decode stack overflow via a large amount of PEM data.

CVE-2022-24675 is fixed in 21 products on 1 platform, first by golang-1.18 1.18.1-1ubuntu1~18.04.3, released April 20, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-24675
- Priority: High
- CVSS: 7.5 (Medium)
- EPSS: 0.0995
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 20, 2022

## Description

encoding/pem in Go before 1.17.9 and 1.18.x before 1.18.1 has a Decode stack overflow via a large amount of PEM data.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | compat-golang-github-cpuguy83-md2man-2-devel amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | delve RHEL 8 | 0:1.7.2-1.module+el8.6.0+12972+ebab5911 | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | delve ol 8 | 0:1.8.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | delve rocky 8 | 0:1.7.2-1.module+el8.6.0+824+8e984c20 | [RLSA-2022:5337](https://patchblox.com/security/data/fix/linux/rlsa-2022-5337.md) | Jun 28, 2022 |
| Linux | go-toolset RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | go-toolset RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | go-toolset ol 8 | 0:1.18.3-1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | go-toolset rocky 8 | 0:1.17.10-1.module+el8.6.0+986+efe4cea4 | [RLSA-2022:5337](https://patchblox.com/security/data/fix/linux/rlsa-2022-5337.md) | Jun 28, 2022 |
| Linux | go-toolset rocky 9 | 0:1.17.12-1.el9_0 | [RLSA-2022:5799](https://patchblox.com/security/data/fix/linux/rlsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang rocky 8 | 0:1.17.10-1.module+el8.6.0+986+efe4cea4 | [RLSA-2022:5337](https://patchblox.com/security/data/fix/linux/rlsa-2022-5337.md) | Jun 28, 2022 |
| Linux | golang rocky 9 | 0:1.17.12-1.el9_0 | [RLSA-2022:5799](https://patchblox.com/security/data/fix/linux/rlsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-1.18 Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.3 | [golang-1.18 1.18.1-1ubuntu1~18.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.18-1.18.1-1ubuntu1-18.04.3.md) | Apr 20, 2022 |
| Linux | golang-1.18 Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.1 | [golang-1.18 1.18.1-1ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.18-1.18.1-1ubuntu1-20.04.1.md) | Apr 20, 2022 |
| Linux | golang-1.18 Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1 | [golang-1.18 1.18.1-1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-golang-1.18-1.18.1-1ubuntu1.md) | Apr 20, 2022 |
| Linux | golang-1.18-go Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.3 | [golang-1.18-go 1.18.1-1ubuntu1~18.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.18-go-1.18.1-1ubuntu1-18.04.3.md) | Apr 20, 2022 |
| Linux | golang-1.18-go Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.1 | [golang-1.18-go 1.18.1-1ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.18-go-1.18.1-1ubuntu1-20.04.1.md) | Apr 20, 2022 |
| Linux | golang-1.18-go Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1 | [golang-1.18-go 1.18.1-1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-golang-1.18-go-1.18.1-1ubuntu1.md) | Apr 20, 2022 |
| Linux | golang-1.18-src Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.3 | [golang-1.18-src 1.18.1-1ubuntu1~18.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.18-src-1.18.1-1ubuntu1-18.04.3.md) | Apr 20, 2022 |
| Linux | golang-1.18-src Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.1 | [golang-1.18-src 1.18.1-1ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.18-src-1.18.1-1ubuntu1-20.04.1.md) | Apr 20, 2022 |
| Linux | golang-1.18-src Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1 | [golang-1.18-src 1.18.1-1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-golang-1.18-src-1.18.1-1ubuntu1.md) | Apr 20, 2022 |
| Linux | golang-bin RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-bin RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-bin amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-bin ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-docs RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-docs RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-docs amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-docs ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-github-cpuguy83-md2man amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | golang-github-cpuguy83-md2man-debuginfo amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | golang-github-cpuguy83-md2man-debugsource amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | golang-github-cpuguy83-md2man-devel amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | golang-misc RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-misc RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-misc amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-misc ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-race RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-race RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-race amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-race ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-shared amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-src RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-src RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-src amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-src ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-tests RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-tests RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-tests amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-tests ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golist amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |
| Linux | golist-debuginfo amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |
| Linux | golist-debugsource amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
